【问题标题】:How to align the long caption of the table in LaTeX?如何在 LaTeX 中对齐表格的长标题?
【发布时间】:2010-10-25 11:39:10
【问题描述】:

我在 LaTeX 中有一个长表,其标题不适合一行,例如

\begin{longtable}{lrrr}
\caption{This is a very long caption that does not fit into one line}
...
\end{longtable}

生成的 PDF 如下所示:

Figure 1: This is a very long caption that does not fit
into one line

我希望标题的第二行与标题的开头(而不是文本“图 1”)对齐,使其看起来像

Figure 1: This is a very long caption that does not fit
          into one line

或至少使标题文本居中。 我该怎么做?

【问题讨论】:

标签: latex


【解决方案1】:

您使用的是什么文档类?

如果你使用来自 komascript 的东西,你的愿望应该是默认的。

所以我想,你不使用 komascript。然后,试试caption 包。您必须指定选项format=hang 才能获得您想要的(即\usepackage[format=hang]{caption}

【讨论】:

    猜你喜欢
    • 2015-05-19
    • 2014-11-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-12-09
    • 1970-01-01
    • 2018-06-16
    相关资源
    最近更新 更多