Answers for "latex reference figure"

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
1

latex width figure

\documentclass{report}
\usepackage[english]{babel}
\usepackage{graphicx}

\begin{document}
\includegraphics[height=3cm]{example-image-b}
\includegraphics[width=5cm]{example-image-b}

\includegraphics[height=3cm, width=3cm]{example-image-b}
\includegraphics[height=3cm, width=6cm]{example-image-b}
\includegraphics[keepaspectratio,height=3cm, width=6cm]{example-image-b}
\end{document}
Posted by: Guest on June-03-2020
1

figure reference latex

\ref{marker}
This prints the number assigned to the object labeled by marker
Posted by: Guest on July-07-2020

Browse Popular Code Answers by Language