meho_r wrote:So, have you tried to compile your document from Command Prompt directly or by using another editor (e.g.
TeXWorks,
Texmaker or any other)?
As you can see from
here, graphicx is part of graphics bundle, so you should have it installed.
I'm using LaTex Editor (LEd build 0.536501) as editor.
I tried both compling from Command Prompt & the editor. The results are the same T_T
The code should work because I just retype it from a book, so I guess the problem is my installations.
I first installed MiKTex 2.8, and then LEd (last version). When the \includegraphics command is not recognized, I tried remove and reinstalled the package graphics using MiKTeX Package Manager. Could you think of anything wrong that might happen in my installations?
Another question: Did you guys ever have to install graphics package manually, or it was already included in your program and worked properly?
*** Problem solved ***
Thanks guys, it turned out that it was not my MiKTeX or LEd or any package installation's problem. It was the problem of
configuring DVI viewer in LEd. I found the solution
here.
In sum, everything was actually OK, the figure was inserted; the command \includegraphics was not recognized because I did not tick the option for
TeX/LaTeX - Packages graphics and graphicx in the
Options>
Application>
Group definitions; the figure was not shown on the DVI viewer built in LEd, but could be seen on the DVI viewer provided by MiKTeX or when printed into PDF, which can be fixed by following the link above.