副标题右侧不齐

副标题右侧不齐

如何使子标题仅在一个图形环境中正确排列,而不是整个文档?我需要这个功能用于包含 20 个小图形的图像网格,我正在使用\subcaptionbox

\begin{figure}
\captionsetup[subfigure]{justification=raggedright}
\subcaptionbox*{0,1 s}{\includegraphics[width=1.2in,height=1.2in]{25.png}}\hspace{1em}
\subcaptionbox*{25 s}{\includegraphics[width=1.2in,height=1.2in]{26.png}}\hspace{1em}
\subcaptionbox*{750 s}{\includegraphics[width=1.2in,height=1.2in]{27.png}}\hspace{1em}
\subcaptionbox*{1618,55 s}{\includegraphics[width=1.2in,height=1.2in]{28.png}}\hspace{1em}
\subcaptionbox*{Al}{\includegraphics[width=0.15in,height=1.2in]{29.png}}\\
\subcaptionbox*{0,1 s}{\includegraphics[width=1.2in,height=1.2in]{30.png}}\hspace{1em}
\subcaptionbox*{25 s}{\includegraphics[width=1.2in,height=1.2in]{31.png}}\hspace{1em}
\subcaptionbox*{750 s}{\includegraphics[width=1.2in,height=1.2in]{32.png}}\hspace{1em}
\subcaptionbox*{1618,55 s}{\includegraphics[width=1.2in,height=1.2in]{33.png}}\hspace{1em}
\subcaptionbox*{Re}{\includegraphics[width=0.15in,height=1.2in]{34.png}}\\
\subcaptionbox*{0,1 s}{\includegraphics[width=1.2in,height=1.2in]{35.png}}\hspace{1em}
\subcaptionbox*{25 s}{\includegraphics[width=1.2in,height=1.2in]{36.png}}\hspace{1em}
\subcaptionbox*{750 s}{\includegraphics[width=1.2in,height=1.2in]{37.png}}\hspace{1em}
\subcaptionbox*{1618,55 s}{\includegraphics[width=1.2in,height=1.2in]{38.png}}\hspace{1em}
\subcaptionbox*{Ta}{\includegraphics[width=0.15in,height=1.2in]{39.png}}\\
\subcaptionbox*{0,1 s}{\includegraphics[width=1.2in,height=1.2in]{40.png}}\hspace{1em}
\subcaptionbox*{25 s}{\includegraphics[width=1.2in,height=1.2in]{41.png}}\hspace{1em}
\subcaptionbox*{750 s}{\includegraphics[width=1.2in,height=1.2in]{42.png}}\hspace{1em}
\subcaptionbox*{1618,55 s}{\includegraphics[width=1.2in,height=1.2in]{43.png}}\hspace{1em}
\subcaptionbox*{W [wt\%]}{\includegraphics[width=0.15in,height=1.2in]{44.png}}\\
\end{figure}  

答案1

添加

\captionsetup[subfigure]{justification=raggedright}

在环境内部figure。如果这也适用于仅包含一行的短字幕,则singlelinecheck=off必须添加,

\captionsetup[subfigure]{singlelinecheck=off,justification=raggedright}

相关内容