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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10359
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