I have a class file which declares some options. One of them is called draft. This places a watermark on all pages that says DRAFT.
\DeclareOption{draft}{
\RequirePackage{draftwatermark}
\SetWatermarkText{\textbf{DRAFT}}
}
I include the following line because I thought that it stops any declared options getting passed along when I call \LoadClass
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
Followed by
\ProcessOptions\relax
\LoadClass[a4paper, 12pt]{article}
However, whenever I pass the class my draft argument, it is getting passed to article, and getting rid of all my figures.
What am I doing wrong ?
\documentclassline is passed to all packages loaded afterwards, includinggraphicx. You can avoid it by saying\usepackage[final]{graphicx}– egreg Oct 04 '12 at 12:45