Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save jimratliff/3c961bb0b94bc4cbfe37a1c0f00344d3 to your computer and use it in GitHub Desktop.

Select an option

Save jimratliff/3c961bb0b94bc4cbfe37a1c0f00344d3 to your computer and use it in GitHub Desktop.
Insert graphic file as a figure. Assumes graphic file is located in directory "graphics". #latex #snippet
\begin{figure}[ht]
\centering
\includegraphics[width=\textwidth]{graphics/INSERT_FILE_NAME}
\caption{InsertCaptionHere} %Locate after figure contents to ensure caption is rendered below the figure
%\label{fig:INSERT_LABEL_HERE}
\end{figure}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment