到目前为止,我对 subfigure 包的结果非常满意。但现在我需要按从上到下的顺序进行排序。
a d
b e
c f
怎么做?
该代码产生了整洁无错误的结果,但子图首先从左到右排列。
\begin{figure}[h]
\centering
\subfigure[]
{\includegraphics[width=0.42\textwidth]{figures/placeholder}
\label{fig:placeholder1}}
\subfigure[]
{\includegraphics[width=0.42\textwidth]{figures/placeholder}
\label{fig:placeholder2}}
\subfigure[]
{\includegraphics[width=0.42\textwidth]{figures/placeholder}
\label{fig:placeholder3}}
\subfigure[]
{\includegraphics[width=0.42\textwidth]{figures/placeholder}
\label{fig:placeholder4}}
\subfigure[]
{\includegraphics[width=0.42\textwidth]{figures/placeholder}
\label{fig:placeholder5}}
\subfigure[]
{\includegraphics[width=0.42\textwidth]{figures/placeholder}
\label{fig:placeholder6}}
\caption[faafasfasf.]{affffafasfsfsfssfs.}
\label{fig:ffsfsfssff}
\end{figure}
答案1
那么像这样的迷你页面怎么样:
\documentclass{article}
\usepackage{graphicx,subfigure}
\begin{document}
\begin{figure}
\begin{minipage}[b]{.5\textwidth}
\subfigure[Figure A]{\label{fig:a}\includegraphics[width=60mm]{example-image-a}}
\subfigure[Figure B]{\label{fig:b}\includegraphics[width=60mm]{example-image-a}}
\subfigure[Figure C]{\label{fig:c}\includegraphics[width=60mm]{example-image-a}}
\end{minipage}
\hspace{0.5cm}
\begin{minipage}[b]{.5\textwidth}
\subfigure[Figure D]{\label{fig:d}\includegraphics[width=60mm]{example-image-a}}
\subfigure[Figure E]{\label{fig:e}\includegraphics[width=60mm]{example-image-a}}
\subfigure[Figure F]{\label{fig:f}\includegraphics[width=60mm]{example-image-a}}
\end{minipage}
\caption{my caption}
\end{figure}
\end{document}
答案2
或者使用multicol
。注释行用于subcaption
包。
\documentclass{article}
\usepackage{graphicx}
%\usepackage{subcaption}
\usepackage{subfigure}
\usepackage{multicol}
\begin{document}
\begin{figure}
\begin{multicols}{2}
% \begin{subfigure}[b]{\linewidth}
% \includegraphics[width=.95\linewidth]{example-image-a}
% \caption{A subfigure}\label{fig:a}
% \end{subfigure}
% \begin{subfigure}[b]{.45\linewidth}
% \includegraphics[width=.95\linewidth]{example-image-b}
% \caption{B subfigure}\label{fig:b}
% \end{subfigure}
% \begin{subfigure}[b]{.45\linewidth}
% \includegraphics[width=.95\linewidth]{example-image-c}
% \caption{C subfigure}\label{fig:c}
% \end{subfigure}
% \begin{subfigure}[b]{\linewidth}
% \includegraphics[width=.95\linewidth]{example-image-a}
% \caption{A subfigure}\label{fig:a}
% \end{subfigure}
% \begin{subfigure}[b]{\linewidth}
% \includegraphics[width=.95\linewidth]{example-image-b}
% \caption{B subfigure}\label{fig:b}
% \end{subfigure}
% \begin{subfigure}[b]{\linewidth}
% \includegraphics[width=.95\linewidth]{example-image-c}
% \caption{C subfigure}\label{fig:c}
% \end{subfigure}
\subfigure[Figure A]{\label{fig:a}\includegraphics[width=\linewidth]{example-image-a}}
\subfigure[Figure B]{\label{fig:b}\includegraphics[width=\linewidth]{example-image-b}}
\subfigure[Figure C]{\label{fig:c}\includegraphics[width=\linewidth]{example-image-c}}
\subfigure[Figure D]{\label{fig:d}\includegraphics[width=\linewidth]{example-image-a}}
\subfigure[Figure E]{\label{fig:e}\includegraphics[width=\linewidth]{example-image-b}}
\subfigure[Figure F]{\label{fig:f}\includegraphics[width=\linewidth]{example-image-c}}
\end{multicols}
\caption{my caption}
\end{figure}
\end{document}