I Add the line as below:
\usepackage{graphicx}
But it appears a error message as the attached picture:
LaTex Error: option clash for package graphicx.
My report project is a new project that just add the line of " \usepackage{graphicx} " and " \includegraphics[width=\textwidth , bb= 20 20 575 575]{test.jpg}".
I compress my report project to test1.zip include all files.
Please somebody could download it and help me to solve this problem.
Document Classes ⇒ Option clash for package graphicx
Option clash for package graphicx
- Attachments
-
- Test1.rar
- Test1 is my new report project and add two line commands
- (53.49 KiB) Downloaded 721 times
-
- \usepackage{graphicx}
- latex usepage graphicx.JPG (8.51 KiB) Viewed 63715 times
NEW: TikZ book now 40% off at Amazon.com for a short time.
Option clash for package graphicx
Probably you have another package or your document class that loads graphicx with an option. What is your preamble?
B.A.
B.A.
Option clash for package graphicx
You are loading the graphicx package twice, the first one right after \documentclass and the second one here:
By the way, you are using obsolete patterns. LaTeX can detect automatically if compilation is done via pdfLaTeX or via normal LaTeX. So graphicx is loaded with the appropriate driver. The \ifpdf conditional is not really necessary. If you do want to keep it, at least replace this
by this
You don't need the \DeclareGraphicsExtensions command too... Or \pagestyle{empty} before \maketitle.
Code: Select all
\ifpdf %%Einbindung von Grafiken mittels \includegraphics{datei}
\usepackage[pdftex]{graphicx} %%Grafiken in pdfLaTeX
\else
\usepackage[dvips]{graphicx} %%Grafiken und normales LaTeX
\fi
Code: Select all
\newif\ifpdf
\ifx\pdfoutput\undefined
\pdffalse %%normales LaTeX wird ausgef¸hrt
\else
\pdfoutput=1
\pdftrue %%pdfLaTeX wird ausgef¸hrt
\fi
Code: Select all
\usepackage{ifpdf}
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
Option clash for package graphicx
Thank you! I had solved this problem.
I remove the line of " \usepackage{graphicx} ", then no error appears.
I remove the line of " \usepackage{graphicx} ", then no error appears.