tuna / thuthesis

LaTeX Thesis Template for Tsinghua University
https://www.ctan.org/pkg/thuthesis
LaTeX Project Public License v1.3c
4.52k stars 1.07k forks source link

caption如何设置首行缩进两字符? #925

Closed niyunsheng closed 6 months ago

niyunsheng commented 6 months ago

在caption中我加入了$\qquad$,但是看到图注并不都是标准的缩进两字符,可以调整哪里设置图注首行缩进两字符呢?

\caption*{$\qquad$图注}

image

note286 commented 6 months ago
\captionsetup{margin={\parindent,},indention=-\parindent}
note286 commented 6 months ago

或者

\DeclareCaptionFormat{thu}{\qquad #1#2#3}
\captionsetup{format=thu}
niyunsheng commented 6 months ago

或者

\DeclareCaptionFormat{thu}{\qquad #1#2#3}
\captionsetup{format=thu}

@note286 你好呀,这样设置不仅会把\caption*{$\qquad$图注}空两行,也会把\caption{}缩进,但实际上我只想要把\caption*这里缩进,有解决办法吗?

note286 commented 6 months ago

你可以在你需要的\caption{}上方使用\captionsetup{format=thu},而不是在导言区全局配置。

niyunsheng commented 6 months ago

你可以在你需要的\caption{}上方使用\captionsetup{format=thu},而不是在导言区全局配置。

谢谢,这样可以了