Texmaker and TeXstudioProblem with Inserting Pictures.

Information and discussion about Texmaker, an integrated LaTeX environment for several platforms, and the related TeXstudio
Post Reply
ly4
Posts: 1
Joined: Tue Jun 03, 2014 9:29 pm

Problem with Inserting Pictures.

Post by ly4 »

I have just been starting to use Texmaker on windows 8.
Here is a snippet of my code:

Code: Select all

\begin{figure}[hbtp]
\centering
\includegraphics[scale=1]{sadf.pdf}
\caption{Figure 1}
\end{figure}
The \includegraphics command always brings up this error message:

Undefined control sequence. \includegraphics

Does anyone have any idea why this simple command always results in an error?

I just need to embed pictures and put captions on them.
Last edited by Stefan Kottwitz on Tue Jun 03, 2014 10:29 pm, edited 1 time in total.

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Problem with Inserting Pictures.

Post by Stefan Kottwitz »

Hello,

welcome to the forum!

You need to load the graphicx package. Add this line to your preamble:

\usepackage{graphicx}

Stefan
LaTeX.org admin
Post Reply