答案1
有很多可能性,看看两个并排的身影或者LaTeX 图表并排显示 [重复].例如floatrow
(第 99 页) 包装:
\documentclass{article}
\usepackage{caption}
\usepackage[style=plain]{floatrow}
\usepackage{graphicx}
\begin{document}
\begin{figure}[H]
\CommonHeightRow{%
\begin{floatrow}[2]%
\ffigbox[\FBwidth]
{\includegraphics[height=\CommonHeight]{example-image-a}}
{\caption{Energy Vs Photon Count graph for day 44.6}}
\ffigbox[\FBwidth]
{\includegraphics[height=\CommonHeight]{example-image-b}}
{\caption{Energy Vs Photon Count graph for day 45.9}}
\end{floatrow}}%
\end{figure}
\end{document}
输出:
如果要删除标题标签,可以使用命令\caption*{}
或\captionsetup{labelformat=empty}
在序言中输入:
\documentclass{article}
\usepackage{caption}
\usepackage[style=plain]{floatrow}
\usepackage{graphicx}
%\captionsetup{labelformat=empty}
\begin{document}
\begin{figure}[H]
\CommonHeightRow{%
\begin{floatrow}[2]%
\ffigbox[\FBwidth]
{\includegraphics[height=\CommonHeight]{example-image-a}}
{\caption*{Energy Vs Photon Count graph for day 44.6}}
\ffigbox[\FBwidth]
{\includegraphics[height=\CommonHeight]{example-image-b}}
{\caption*{Energy Vs Photon Count graph for day 45.9}}
\end{floatrow}}%
\end{figure}
\end{document}