对齐 4 个数字

对齐 4 个数字

我用美商模板。我想将 4 个图形对齐为相同大小,这样前两个图形将位于同一行。但是,起始位置和大小以及标题位置略有变化。我该如何修复? 在此处输入图片描述

这是我的代码:

\usepackage{booktabs,makecell,tabularx}
\renewcommand\theadfont{\small}
\newcolumntype{L}{>{\raggedright\arraybackslash}X}
\usepackage{siunitx}
%\documentclass{article}
\usepackage{adjustbox}
\usepackage{array,booktabs}

\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}


\newcommand{\tvar}[2]{%
    \mathrm{#1}_{\mathrm{#2}}%
}

\documentclass{amcs}
\begin{document}
\begin{figure}
    \includegraphics [scale=0.6]{Figure5Graph1.png}
    \caption{DS1: PKsd saklsajlslak lska dfkjlsdkfj fdgdffjdsl lkllk sdfsfdfs dsgsd}
    \label{fig:DS1}
 \end{figure}

 \begin{figure}
    \includegraphics [scale=0.6]{Figure6Graph2.png}
    \caption{DS2: Ksd saklsajlslak lska dfkjlsdkfj fdgdffjdsl lkllk sdfsfdfs dsgsd}
    \label{fig:DS2}
\end{figure}

 \begin{figure}
    \includegraphics [scale=0.6]{Figure7Graph3.png}
    \caption{DS3: Ksd saklsajlslak lska dfkjlsdkfj fdgdffjdsl lkllk sdfsfdfs dsgsd}
    \label{fig:DS3}
\end{figure}

\begin{figure}
    \includegraphics [scale=0.6]{Figure8Graph4.png}
    \caption{DS4: Ksd saklsajlslak lska dfkjlsdkfj fdgdffjdsl lkllk}
    \label{fig:DS4}
\end{figure}
\begin{document}

答案1

\usepackage{subfig}在您的序言和正文中添加以下内容:

\begin{figure}[htbp]
\centering
\subfloat[subtitle of subfigure a]{\label{fig:a}\includegraphics[width=0.45\linewidth]{figures/subfig_a}}\qquad
\subfloat[subtitle of subfigure b]{\label{fig:b}\includegraphics[width=0.45\linewidth]{figures/subfig_b}}\\
\subfloat[subtitle of subfigure c]{\label{fig:c}\includegraphics[width=0.45\textwidth]{figures/subfig_c}}\qquad%
\subfloat[subtitle of subfigure d]{\label{fig:d}\includegraphics[width=0.45\textwidth]{figures/subfig_d}}%
\caption{My beautiful multifigure ((a) subfig a; (b) subfig b; (c) subfig c; (d) subfig d)}
\label{fig:myfig}
\end{figure}

相关内容