
我需要做 3X1 子圖,也就是 3 行 X 1 列,這裡有人知道怎麼做嗎?任何幫助將不勝感激。先致謝
答案1
即將推出一種表格解決方案:
\documentclass[a4paper]{article}
\usepackage{graphicx}
\usepackage{mwe}
\begin{document}
\begin{figure}%
\centering\begin{tabular}{c}
\includegraphics[scale=0.5]{example-image-a}\\
A\\[3ex]% add a little extra space
\includegraphics[scale=0.5]{example-image-b}\\
B\\[3ex]
\includegraphics[scale=0.5]{example-image-c}\\
C
\end{tabular}
\caption{Here are three figures.}%
\label{fig:cont}%
\end{figure}
\end{document}
為什麼首先開發 subfigure 超出了我的理解。
答案2
從文件subfig
,第5頁,稍微修改(添加\par
)以將它們放置在三行中:
\documentclass[a4paper]{article}
\usepackage{subfig}
\begin{document}
\begin{figure}%
\centering
\subfloat[][]{...figure code...}\par
\subfloat[][]{...figure code...}\par
\subfloat[][]{...figure code...}
\caption{Here are three figures.}%
\label{fig:cont}%
\end{figure}
\end{document}