I read all the following articles and they all have different combinations of width (for the subfigure and includegraphics) -- some use textwidth, some use linewidth. I even tried columnwidth. None worked.
http://tug.org/TUGboat/tb34-1/tb106thurnherr.pdf
http://tex.stackexchange.com/questions/ ... de-figures
http://tex.stackexchange.com/questions/ ... de-by-side
http://blog.pengyifan.com/the-best-way- ... -in-latex/
I don't want to use absolute units such as 3in.
Code: Select all
\begin{figure}[tp]
\centering%
\begin{subfigure}[a]{0.45\columnwidth}%
\centering%
\includegraphics[width=0.9\columnwidth]{symmetric}%
\caption{Symmetric}
\label{fig:fig_a}
\end{subfigure}%
%\quad%
\begin{subfigure}[b]{0.45\columnwidth}%
\centering%
\includegraphics[width=0.9\columnwidth]{asymmetric}%
\caption{Asymmetric}
\label{fig:fig_b}
\end{subfigure}%
\caption[mycaption]{mycaption.}
\label{fig:myfig}
\end{figure}