-
子图标题与子图之间的间距相较于word的单倍行距过大。 \begin{figure}[ht]
\centering
\subfloat[]{\includegraphics[width=2.8cm]{source/1.jpg}}
\subfloat[]{\includegraphics[width=2.8cm]{source/1.jpg}}
\subfloat[]{\includegraphics[width=2.8cm]{source/1.jpg}}
\\
\subfloat[]{\includegraphics[width=2.8cm]{source/1.jpg}}
\subfloat[]{\includegraphics[width=2.8cm]{source/1.jpg}}
\subfloat[]{\includegraphics[width=2.8cm]{source/1.jpg}}
\caption{小狗图}
\label{fig.work1_fig10}
\end{figure} latex生成的图片布局如下所示:
|
Beta Was this translation helpful? Give feedback.
Answered by
note286
Feb 26, 2023
Replies: 1 comment
-
首先,没必要刻意模仿Microsoft Word。 其次, 此外,我在 #40 中给了示例,推荐使用 \documentclass{xdupgthesis}
\usepackage{subcaption}
\captionsetup[subfigure]{skip=0pt}
\begin{document}
\begin{figure}
\centering
\subcaptionbox{}{\includegraphics[width=.3\linewidth]{example-image}}\hfill
\subcaptionbox{}{\includegraphics[width=.3\linewidth]{example-image}}\hfill
\subcaptionbox{}{\includegraphics[width=.3\linewidth]{example-image}}\hfill
\subcaptionbox{}{\includegraphics[width=.3\linewidth]{example-image}}\hfill
\subcaptionbox{}{\includegraphics[width=.3\linewidth]{example-image}}\hfill
\subcaptionbox{}{\includegraphics[width=.3\linewidth]{example-image}}
\caption{小狗图}
\end{figure}
\end{document} 最后,强烈不建议用户手动指定浮动体的位置,例如你的示例中的 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
note286
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
首先,没必要刻意模仿Microsoft Word。
其次,
style/caption-label-sep
是设置caption
与中标签与标题内容之间的水平间距的,例如图1
和小狗图
之间的间距。我觉得我手册中对此的描述应该没有歧义。此外,我在 #40 中给了示例,推荐使用
subcaption
排版子图,更多设置可以阅读subcaption
手册,例如\captionsetup[subfigure]{skip=0pt}
的用法就在7.4节有介绍。