I would like to dedicate a whole page to two figures, which I wish to place side by side in the horizontal layout.
What is the best way to achieve this? Thanks in advance!
This is what I have already tried:
\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{caption}
\usepackage{subcaption}
\begin{document}
\begin{turn}{90}
\begin{minipage}{\textheight}
\begin{figure}
\centering
\begin{subfigure}
\centering
\includegraphics[width=5]{image1}
\end{subfigure}
\begin{subfigure}
\centering
\includegraphics[width=5]{image1}
\caption{A subfigure}
\label{fig:sub2}
\end{subfigure}
\end{figure}
\end{minipage}
\end{turn}
\end{document}
However, I am getting error messages which unfortunately I don't understand.
Best Answer
You like to have landscape oriented figure? Something like following figure?
It is obtained with following MWE:
Cause of errors in your MWE is missing width of subfigures, correct syntax is
\begin{subfigure}{<width>}
and probably missing packagerotating
, which besidesideways
(figure, table) also define macrosrotatebox
,turn
, etc. For details see package documentation.Edit: One errors was caused by use of
float
environment inside of (non-float)minipage
(what is forbidden), as pointed Gonzalo Medina in his comment.