Placement Specifiers

\begin{⟨float environment⟩}[⟨placement specifiers⟩]
\end{⟨float environment⟩}
SpecifierNameAdd placement option
empty
tbp
defaultPut if at the top, bottom of the next available page or on a floats-only page.
!forceForce the following settings, without considerung most of the internal parameter.
hherePut it exactly where we say it should go.
ttopPut it at the top of the next available page.
bbottomPut it at the bottom of the next available page.
ppagePut it on a special page containing only floats.

Example

\begin{figure}[htbp]
\end{figure}

Images

\begin{figure}  % or \begin{figure}[⟨placement specifiers⟩]
    \centering
    \caption{⟨caption⟩}  % or \caption[⟨listoftables caption⟩]{⟨caption⟩}
    \label{fig:label⟩}
    \includegraphics[width=0.75\columnwidth]{⟨filename⟩}
\end{figure}
  • ⟨caption⟩: displayed name of the figure
  • ⟨listoftables caption⟩: (optional) replaces the entry in the list of figures with a shorter version
  • ⟨label⟩: label to reference the figure using \ref{fig:⟨label⟩}
  • ⟨filename⟩: file path (with extension) of the image

Source Code Listings

\begin{figure}  % or \begin{figure}[⟨placement⟩]
    \centering
    \lstset{caption = {⟨caption⟩}}
    \lstset{label = code:⟨label⟩}
    \lstinputlisting[language = matlab]{⟨filename⟩}
\end{figure}

Directories

\listoftables       % Tabellenverzeichnis
\listoffigures      % Abbildungsverzeichnis
\lstlistoflistings  % Codelistenverzeichnis

TODO: Tufte Design floats in separate columns next to main content


Sources:

Related:

Tags:
Graphical elements - Standardize tables, images, plots