\usepackage[draft]{foo} ! LaTeX Error: Option clash for package foo.
( foo)
\usepackage[dvips]{graphics} \usepackage[draft]{graphics} \usepackage[dvips,draft]{graphics} graphics package is loaded in the foo package, the log will look something like this (/foo.sty ... ... (/graphics.sty ... ...) ... ) graphics package are enclosed in brackets for the foo package. In the case of the bar class, the message will be exactly the same, only the first line will bar.cls path to the bar.cls file. \usepackage{foo} \usepackage[draft]{graphics} \PassOptionsToPackage{draft}{graphics} \usepackage{foo} \PassOptionsToPackage Requests behave during the final package loading as if its parameters were specified as options during the final package loading. The name of the \PassOptionsToPackage shows that several options can be specified at once. \documentclass[...]{bar} \usepackage[draft]{graphics} \PassOptionsToPackage command before the \documentclass command: \PassOptionsToPackage{draft}{graphics} \documentclass[...]{bar} foo package or bar class the graphics package is loaded with an option that conflicts with the one we would like to specify. \PassOptionsToPackage{draft}{graphics} \usepackage[final]{graphics} final option to be set after the options passed from the outside, and the draft will simply be dropped. In some cases, the package may display an error message (but the graphics not one of those, and the draft option will be dropped without any diagnostics). %clash.tex \documentclass{article} \usepackage[dvips]{graphics} \usepackage[draft]{graphics} \begin{document} \end{document} $ latex clash.tex
...
! LaTeX Error: Option clash for package graphics.
See the LaTeX manual or LaTeX Companion for explanation.
Type H for immediate help.
...
l.5
? h
The package graphics has already been loaded with options:
[dvips]
There has now been an attempt to load it with options
[draft]
Adding the global options:
dvips,draft
to your \documentclass declaration may fix this.
Try typing to proceed.
TeXstudio , the latex -interaction=nonstopmode ... , and you should look for such latex -interaction=nonstopmode ... in the “basement” section of the Log - Log File .\PreventPackageFromLoading command \PreventPackageFromLoading scrlfile .Source: https://habr.com/ru/post/348774/
All Articles