I am having trouble inserting pictures into my latex document at a specific point. Currently I have the two figure environments in the text but they are printed at the back of the document, after the bibliography. Am I missing something?
The pictures are both supposed to be full page-sized rather than a traditional smaller figure or float. I might be wrong in using the figure environment in this case, but I am not sure.
\documentclass[12pt, a4paper, twoside]{article}
\usepackage[margin=1in,bindingoffset=15.5mm,heightrounded]{geometry}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\begin{document}
I have some text here. Then pics.
\newpage
\begin{figure}[ht!]
\centering
\includegraphics[scale=0.75, angle=90, width=\textwidth]{hamlet.jpg}
\caption{cool picture}
\end{figure}
\newpage
\begin{figure}[ht!]
\centering
\includegraphics[scale=0.75, angle=270, width=\textwidth]{kinglear.jpg}
\caption{cool picture 2}
\end{figure}
\newpage
some more text here
\end{document}
Best Answer
Since the images must go at a specific position, it's not convenient to use a floating environment; you can use
\captionof
from thecapt-of
orcaption
packages to give your figures a caption:The
demo
option forgraphicx
simply replaces actual figures with black rectangles; do not use that option in your actual document.Depending on how tou are controlling the size for the images, you could additionally wrap each image and its caption using a
minipage
to prevent an undesired page break; something like