Created
January 31, 2016 04:10
-
-
Save takuma7/f793ebb22c6720f3ba32 to your computer and use it in GitHub Desktop.
Revisions
-
takuma7 created this gist
Jan 31, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ %%%% Preamble >>> \usepackage{subcaption} \newlength{\twosubht} \newsavebox{\twosubbox} %%%%% <<< \begin{figure}[htp] % preliminary \sbox\twosubbox{% \resizebox{\dimexpr.99\textwidth-1em}{!}{% {(num of image)-1}em \includegraphics[height=100cm]{first-image}% \includegraphics[height=100cm]{second-image}% }% } \setlength{\twosubht}{\ht\twosubbox} % typeset \centering \subcaptionbox{\label{fig:first}}{% \includegraphics[height=\twosubht]{first-image}% }\quad \subcaptionbox{\label{fig:second}}{% \includegraphics[height=\twosubht]{second-image}% } \caption{(\subref{fig:first}) First. (\subref{fig:second}) Second.} \label{fig:two-images-same-height} \end{figure}