LaTeX 多图排版

图片排版

两图并排

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
\documentclass{ctexart}
\usepackage{coffeelize}
\usepackage{graphicx}
\usepackage{subfigure}

\begin{document}

\begin{figure}[htbp]
\centering
\subfigure[subfig:1]{
\includegraphics[width=0.48\textwidth]{example-image-A}
}
\subfigure[subfig:2]{
\includegraphics[width=0.48\textwidth]{example-image-A}
}
\caption{两张图片并列}
\label{fig:subfigure_example1}
\end{figure}

\end{document}

01-两图并排.png

三图并排

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
\documentclass{ctexart}
\usepackage{coffeelize}
\usepackage{graphicx}
\usepackage{subfigure}

\begin{document}

\begin{figure}[htbp]
\centering
\subfigure[subfig:1]{
\includegraphics[width=0.3\textwidth]{example-image-A}
}
\subfigure[subfig:2]{
\includegraphics[width=0.3\textwidth]{example-image-A}
}
\subfigure[subfig:3]{
\includegraphics[width=0.3\textwidth]{example-image-A}
}
\caption{两张图片并列}
\label{fig:subfigure_example1}
\end{figure}

\end{document}

02-三图并排.png

四图并排

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
\documentclass{ctexart}
\usepackage{coffeelize}
\usepackage{graphicx}
\usepackage{subfigure}

\begin{document}

\begin{figure}[htbp]
\centering
\subfigure[subfig:1]{
\includegraphics[width=0.2\textwidth]{example-image-A}
}
\subfigure[subfig:2]{
\includegraphics[width=0.2\textwidth]{example-image-A}
}
\subfigure[subfig:3]{
\includegraphics[width=0.2\textwidth]{example-image-A}
}
\subfigure[subfig:4]{
\includegraphics[width=0.2\textwidth]{example-image-A}
}
\caption{两张图片并列}
\label{fig:subfigure_example1}
\end{figure}

\end{document}

03-四图并排.png

两行四图并排

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
\documentclass{ctexart}
\usepackage{coffeelize}
\usepackage{graphicx}
\usepackage{subfigure}

\begin{document}

\begin{figure}[htbp]
\centering
\subfigure[图1]{\includegraphics[width=0.48\linewidth]{example-image-A}}\quad
\subfigure[图2]{\includegraphics[width=0.48\linewidth]{example-image-A}}
\\
\subfigure[图3]{\includegraphics[width=0.48\linewidth]{example-image-A}}\quad
\subfigure[图4]{\includegraphics[width=0.48\linewidth]{example-image-A}}
\caption{两列并排的四张小图}
\label{fig:subfigure_example4}
\end{figure}

\end{document}

04-两行四图并排.png

两行六图并排

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
\documentclass{ctexart}
\usepackage{coffeelize}
\usepackage{graphicx}
\usepackage{subfigure}

\begin{document}

\begin{figure}[htbp]
\centering
\subfigure[图1]{\includegraphics[width=0.3\linewidth]{example-image-A}}\quad
\subfigure[图2]{\includegraphics[width=0.3\linewidth]{example-image-A}}\quad
\subfigure[图3]{\includegraphics[width=0.3\linewidth]{example-image-A}}
\\
\subfigure[图4]{\includegraphics[width=0.3\linewidth]{example-image-A}}\quad
\subfigure[图5]{\includegraphics[width=0.3\linewidth]{example-image-A}}\quad
\subfigure[图6]{\includegraphics[width=0.3\linewidth]{example-image-A}}
\caption{两列并排的六张小图}
\label{fig:subfigure_example4}
\end{figure}

\end{document}

05-两行六图并排.png