LaTeX_Examples/EmbeddingImages/EmbeddingImages.tex

96 lines
2.4 KiB
TeX
Raw Normal View History

2024-08-05 21:02:37 +00:00
\documentclass{article}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{hyperref}
\setlength{\parindent}{0pt}
\hypersetup{
colorlinks=true,
linkcolor=blue,
citecolor=blue,
filecolor=magenta,
urlcolor=blue,
}
\begin{document}
% Insert Image at specified Position
The following \autoref{image0} is inserted at the specified position.
\begin{figure}[h]
\centering
\includegraphics[width=0.7\textwidth]{../../Figures/dependency_2x.png}
\caption{This is xkcd 2347}
\label{image0}
\end{figure}
This Reference to \autoref{image0} was inserted below the figure at the specified position.
% Insert an Array of Images
\newpage
The following \autoref{all_images} is inserted at the specified position. It contains six images, see \autoref{image1}, \autoref{image2}, \autoref{image3}, \autoref{image4}, \autoref{image5} and \autoref{image6}.
\begin{figure}[h]
\centering
\begin{subfigure}[b]{0.3\textwidth}
\centering
\includegraphics[width=\textwidth]{../../Figures/dependency_2x.png}
\caption{image}
\label{image1}
\end{subfigure}
\hfill
\begin{subfigure}[b]{0.3\textwidth}
\centering
\includegraphics[width=\textwidth]{../../Figures/dependency_2x.png}
\caption{image}
\label{image2}
\end{subfigure}
\hfill
\begin{subfigure}[b]{0.3\textwidth}
\centering
\includegraphics[width=\textwidth]{../../Figures/dependency_2x.png}
\caption{image}
\label{image3}
\end{subfigure}
\vspace{0.2cm}
\begin{subfigure}[b]{0.3\textwidth}
\centering
\includegraphics[width=\textwidth]{../../Figures/dependency_2x.png}
\caption{image}
\label{image4}
\end{subfigure}
\hfill
\begin{subfigure}[b]{0.3\textwidth}
\centering
\includegraphics[width=\textwidth]{../../Figures/dependency_2x.png}
\caption{image}
\label{image5}
\end{subfigure}
\hfill
\begin{subfigure}[b]{0.3\textwidth}
\centering
\includegraphics[width=\textwidth]{../../Figures/dependency_2x.png}
\caption{image}
\label{image6}
\end{subfigure}
\caption{All images}
\label{all_images}
\end{figure}
This Reference to \autoref{all_images} was inserted below the figure at the specified position.
\pagebreak
\listoffigures
\end{document}