I want to use the draft mode in memoir, but would like to see the
figures. I have therefore in the preamble
\documentclass[draft]{memoir}
.
.
.
\usepackage[final]{graphicx}
.
.
.
I get this error:
! LaTeX Error: Option clash for package graphicx.
In the manual of graphicx it says that the draft or final option
overrides the option given in the documentclass...
Any suggestions?
/Troels
> In the manual of graphicx it says that the draft or final option
> overrides the option given in the documentclass...
>
> Any suggestions?
\PassOptionsToPackage{final}{graphicx}
\documentclass[draft]{memoir}
\usepackage{graphicx}
But I think you should report this to Peter Wilson, the author of
memoir.
> Hi all
>
> I want to use the draft mode in memoir, but would like to see the
> figures. I have therefore in the preamble
>
> \documentclass[draft]{memoir}
> \usepackage[final]{graphicx}
> I get this error:
> ! LaTeX Error: Option clash for package graphicx.
\documentclass[draft]{memoir}
\usepackage[final]{graphicx}
\begin{document}
x
\end{document}
works fine for me. So I guess the clash is somewhere else.
--
Ulrike Fischer
> But I think you should report this to Peter Wilson, the author of
> memoir.
Maybe not. I think memoir is working correctly but you are
loading some package that loads graphicx before you pass the
final option
For example:
\documentclass[draft]{memoir} % or book, or...
%\usepackage[final]{graphicx} % works
\usepackage{overpic} % loads graphicx
\usepackage[final]{graphicx} % throws an error
\begin{document}
Foo
\end{document}
> I want to use the draft mode in memoir, but would like to see the
> figures. I have therefore in the preamble
>
> \documentclass[draft]{memoir}
> .
> .
> .
> \usepackage[final]{graphicx}
> I get this error:
> ! LaTeX Error: Option clash for package graphicx.
memoir doesn't load package graphicx (version 2008/07/23
v1.6180339). Probably you are using an other package in
between that loads graphicx (see your .log file).
> In the manual of graphicx it says that the draft or final option
> overrides the option given in the documentclass...
But if the package is already loaded with the wrong option,
LaTeX doesn't load it twice, it just checks the options for
clashes.
> Any suggestions?
Load graphicx earlier:
\documentclass[draft]{memoir}
\usepackage[final]{graphicx}
Or use Martin Heller's idea with \PassOptionsToPackage.
Yours sincerely
Heiko <ober...@uni-freiburg.de>
Thanks Ulrike!
By accident I also loaded the epsfig package somewhere before I loaded
graphics. epsfig uses the draft option which apparantly affects graphicx.
As usual the error is never where you think it is ;-)
Thanks again
/Troels
epsfig is just a compatibility interface to graphicx
--
/daleif (remove RTFSIGNATURE from email address)
LaTeX FAQ: http://www.tex.ac.uk/faq
LaTeX book: http://www.imf.au.dk/system/latex/bog/ (in Danish)
Remember to post minimal examples, see URL below
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl
http://www.minimalbeispiel.de/mini-en.html
/Troels
it is quite a good idea to keep these preambles cleanup and documented
or a "serious nuisance" (as i like to think of it).
>I know that- but I did not spot the \includepackage{epsfig} in my
>titanic preamble. Apparently epsfig used the draft option whereas
>graphicx used the final option.
in fact, the rule is that you mayn't specify any option that isn't in
the stored list for the package. thus you get the error if you say:
\usepackage{graphicx}
\usepackage[final]{graphicx}
even though the first load used 'final' because it's the default.
--
Robin Fairbairns, Cambridge
For the record, this particular problem has solved now.
/Troels
tell me about it.
might have been better to use pdfpages or the combine class. Then each
document could be prepared on its own and then combined, a bit easier
than trying to merge 50 contributions.
especially if one author uses \R for one thing, and another uses it for
something completely different.
Out of interest, what are you creating since it has EU requirements?
> especially if one author uses \R for one thing, and another uses it for
> something completely different.
Luckily this gives a compilation error (been there done that ;-)
>
> Out of interest, what are you creating since it has EU requirements?
>
A deliverable for an EU financed project.
/Troels