我正在尝试在 LaTeX 中获取以下三个图形的布局
然而,到目前为止,我还没有取得任何进展。我找到了一种将它们放在一起的方法,但它们太大了,无法并排放置。我用
\begin{figure}
\centering
\begin{subfigure}{0.33\textwidth}
\centering
\includegraphics[height=1.7in]{something.eps}
\caption{}
\end{subfigure}%
~
\begin{subfigure}{0.33\textwidth}
\centering
\includegraphics[height=1.7in]{something.eps}
\caption{}
\end{subfigure}%
~
\begin{subfigure}{0.5\textwidth}
\centering
\includegraphics[height=1.7in]{something.eps}
\caption{}
\end{subfigure}
\caption{Some caption}
\label{label}
\end{figure}
但这只是将它们水平放置。有人能帮我弄清楚如何将图形放在上面的布局中吗?
答案1
\documentclass{article}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption,array}
\begin{document}
\begin{figure}
\centering
\begin{tabular}{cc}
\begin{subfigure}{0.33\textwidth}
\centering
\includegraphics[height=1.7in]{figure-1}
\caption{}
\end{subfigure}%
&
\begin{subfigure}{0.33\textwidth}
\centering
\includegraphics[height=1.7in]{figure-1}
\caption{}
\end{subfigure}%
\\
% uncomment next line
% \multicolumn{x}{c}{%
\begin{subfigure}{0.5\textwidth}
\centering
\includegraphics[height=1.7in]{figure-1}
\caption{}
\end{subfigure}%}// <- uncomment
% comment next line
& \\
\end{tabular}
\caption{Some caption}
\label{label}
\end{figure}
\end{document}