Answers for "make figure in latex"

4

latex figure

\usepackage{graphicx}
% inside document:

\begin{figure}
	\centering
	\includegraphics[scale=1]{name_of_file_inside_directory}
	\caption{Your caption}
	\label{given_label_that_used_to_reference_figure_in_the_future}
\end{figure}

% use float option [H] after {figure} to place figure exactly as positioned in LeTeX code
% preferably place file of image inside directory of tex file
Posted by: Guest on May-27-2021
0

insert figure latex

%...
\begin{figure}[h!]
  \centering
  \begin{subfigure}[b]{0.2\linewidth}
    \includegraphics[width=\linewidth]{coffee.jpg}
     \caption{Coffee.}
  \end{subfigure}
  \begin{subfigure}[b]{0.2\linewidth}
    \includegraphics[width=\linewidth]{coffee.jpg}
    \caption{More coffee.}
  \end{subfigure}
  \begin{subfigure}[b]{0.2\linewidth}
    \includegraphics[width=\linewidth]{coffee.jpg}
    \caption{Tasty coffee.}
  \end{subfigure}
  \begin{subfigure}[b]{0.5\linewidth}
    \includegraphics[width=\linewidth]{coffee.jpg}
    \caption{Too much coffee.}
  \end{subfigure}
  \caption{The same cup of coffee. Multiple times.}
  \label{fig:coffee3}
\end{figure}
%...
Posted by: Guest on November-21-2020

Browse Popular Code Answers by Language