CamteX
All guides

Figure in LaTeX

An image is inserted with \includegraphics from the graphicx package. The figure environment adds a caption and a number, and lets LaTeX place the figure wherever it fits on the page.

Figure with a caption

\begin{figure}[h]
  \centering
  \includegraphics[width=0.7\textwidth]{chart.png}
  \caption{Period as a function of pendulum length}
  \label{fig:chart}
\end{figure}

Common mistakes

See also

Don't want to memorize commands?

Draw a formula or paste a screenshot, and CamteX turns it into ready LaTeX.

Try it free