表格缩进多行条目

表格缩进多行条目

使用 titletoc-package 和 caption-package,我改变了表格列表的外观(我需要表格编号在实际标题和表格列表中消失):

梅威瑟:

\documentclass[]{article}
\usepackage{float}
\usepackage{titletoc}
\usepackage{booktabs}
\usepackage{caption}

\captionsetup[table]{labelformat=empty}

\titlecontents{table}
[0pt]                                               % left margin
{\addvspace{.5cm}}%                         % above code (e.g vertical space)
{\contentsmargin{0pt}                      % numbered entry format
    \enspace%
    \large}
{\contentsmargin{0pt}\large}                        % unnumbered entry format
{\titlerule*[.5pc]{.}\contentspage}                 % filler-page format (e.g dots)
[\addvspace{.5pc}]


\begin{document}

    \listoftables

    \newpage

    \section{first section}

    \begin{table}[H]
        \caption{This is a table with a caption}
    \end{table}


    \section{second section}

    \begin{table}[H]

        \caption{a second table with a caption}

    \end{table}

        \begin{table}[H]

        \caption{a third caption that is really very very very very very very very long}

    \end{table}


\end{document}

问题:如果表格标题跨越多行,则条目的缩进会很糟糕,而且我不知道如何修复它:

在此处输入图片描述

相关内容