# Graphics with Figure Environments and Subfigures

Using graphics and optionally with subfigures. "subfig" is a newer version of the older "subfigure" package. It has different macros.

Note that you should not write a file suffix in includegraphics. Hence you should write "images/pic1" instead of "images/pic1.png". Try to use PDF images as they are vector images and have better quality. Use tools like "pdfcrop" to cut a big A4 page down to the single image.

\documentclass{article}

\usepackage{graphicx}
\usepackage{subfig}

\usepackage{hyperref} % supports autoref

% define displayed strings for autoref
\def\figureautorefname{Fig.\xspace}
\newcommand{\subfigureautorefname}{\figureautorefname}

\begin{document}

\section{A simple Figure}

\begin{figure}[t] % t=top, b=bottom, h=here, p=separate page
\begin{center}
\includegraphics[width=\textwidth]{images/texlipse}
\caption[Texlipse]{Texlipse is super!}
\label{fig:texlipse}
\end{center}
\end{figure}

I love Texlipse as shown in \autoref{fig:texlipse}.

\subsection{Subfigures}

\begin{figure*}
\centering
\subfloat[My first subfigure.]{
\includegraphics[width=.9\linewidth]{images/kieler-logo}
\label{fig:kieler2}}
\\
\subfloat[My second subfigure.]{
\includegraphics[width=0.35\linewidth]{images/structure01}
\label{fig:structure1}}
\hfill
\subfloat[My third subfigure.]{
\includegraphics[width=0.35\linewidth]{images/structure02}
\label{fig:structure2}
}
\caption{These are multiple figures.}
\label{fig:mysubfig}
\end{figure*}

Now I can reference also the other figures: \autoref{fig:mysubfig} or
\autoref{fig:structure1}.

\end{document}