Graphics, Figures & Tableserror with command includegraphics

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
latexuser
Posts: 1
Joined: Fri Jan 23, 2009 2:09 pm

error with command includegraphics

Post by latexuser »

i am using miktex-2.7.3248(2).while including figures am getting error with the command "includegraphics".it is showing that it is unknown command.am using \usepackage[pdftex]{graphicx} package.should i install any other package or software?
thanx in advance........

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

marco_d
Posts: 57
Joined: Tue Jan 20, 2009 7:49 pm

Re: error with command includegraphics

Post by marco_d »

Hello,

you are using pdflatex? Which format of the picture are you trying to include?
Pdflatex is able to include pdf,png and jpg.
Converting by latex you can include only eps-files.
For more Informations make a minimal example.

regards
Marco
i am German. I can not use difficult words. :-)
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

error with command includegraphics

Post by localghost »

latexuser wrote:[...] while including figures am getting error with the command "includegraphics".it is showing that it is unknown command.am using \usepackage[pdftex]{graphicx} package. [...]
I addition to the minimal working example (MWE) requested by Marco you should give the exact error message. And omit the driver option for the graphicx package. It is enough to load the package without any options.

Code: Select all

\usepackage{graphicx}
It will detect on its own which compiler is running and load the appropriate driver.


Best regards
Thorsten¹
Post Reply