设置列表图形标题之间的双倍行距

设置列表图形标题之间的双倍行距

我正在使用博士论文模板定义图表列表如下:

%----------------------------------------------------------------------------------------
%   CLASS OPTIONS
%----------------------------------------------------------------------------------------

\ifbool{parskip}{\RequirePackage{parskip}} % If the parskip option is passed to the class, require the parskip package 


\ifbool{listtoc}{% If the liststotoc option has been passed to the class, add the lists to the table of contents
    \patchcmd{\listoftables}{\@starttoc{lot}}{%
        \addchaptertocentry{\listtablename}\@starttoc{lot}%
    }{}{}%
    \patchcmd{\listoffigures}{\@starttoc{lof}}{%
        \addchaptertocentry{\listfigurename}\@starttoc{lof}%
    }{}{}%
}

\ifbool{toctoc}{% If the toctotoc options has been passed to the class, add the table of contents to the table of contents
    \patchcmd{\tableofcontents}{\@starttoc{toc}%
}{%
    \addchaptertocentry{\contentsname}\@starttoc{toc}}{}{}%
}

\patchcmd{\tableofcontents}{\MakeUppercase}{\MakeMarkcase}{}{}
\patchcmd{\tableofcontents}{\MakeUppercase}{\MakeMarkcase}{}{}
\patchcmd{\listoffigures}{\MakeUppercase}{\MakeMarkcase}{}{}
\patchcmd{\listoffigures}{\MakeUppercase}{\MakeMarkcase}{}{}
\patchcmd{\listoftables}{\MakeUppercase}{\MakeMarkcase}{}{}
\patchcmd{\listoftables}{\MakeUppercase}{\MakeMarkcase}{}{}

% If the option `nolistspacing' is given, the spacing in the different lists is reduced to single spacing. This option is only useful, if the spacing of the document has been changed to onehalfspacing or doublespacing.
\ifbool{nolistspace}{
    \patchcmd{\listoffigures}{%
        \@starttoc{lof}
    }{%
        \begingroup%
        \singlespace\@starttoc{lof}\endgroup%
    }{}{}%
    \patchcmd{\listoftables}{%
        \@starttoc{lot}
    }{%
        \begingroup%
        \singlespace\@starttoc{lot}\endgroup%
    }{}{}%
    \patchcmd{\tableofcontents}{%
        \@starttoc{toc}
    }{%
        \begingroup%
        \singlespace\@starttoc{toc}\endgroup%
    }{}{}%
}{}

我需要将每个图标题之间的间距更改为\doublespacing,但保留\singlespacing图标题本身的 。或者我可以在主文件的其他地方实现这一点。

答案1

对我来说,不清楚您在文档中使用的代码是什么。一般间距是多少?您使用nolistspacing类选项吗?请参阅下面的类代码以了解其作用。

%----------------------------------------------------------------------------------------
%   CLASS OPTIONS
%----------------------------------------------------------------------------------------


% If the option `nolistspacing' is given, the spacing in the different lists is reduced to single spacing. This option is only useful, if the spacing of the document has been changed to onehalfspacing or doublespacing.
\ifbool{nolistspace}{
    \patchcmd{\listoffigures}{%
        \@starttoc{lof}
    }{%
        \begingroup%
        \singlespace\@starttoc{lof}\endgroup%
    }{}{}%
    \patchcmd{\listoftables}{%
        \@starttoc{lot}
    }{%
        \begingroup%
        \singlespace\@starttoc{lot}\endgroup%
    }{}{}%
    \patchcmd{\tableofcontents}{%
        \@starttoc{toc}
    }{%
        \begingroup%
        \singlespace\@starttoc{toc}\endgroup%
    }{}{}%
}{}

请注意,它singlespace针对 LoF、LoT 和 ToC 进行设置。如果您不想要 LoF,singlespace请将 更改为singlespaceonehalfspacedoublespace具体取决于您对整个文档的设置。

或者,未经测试,在主文档中尝试

\makeatletter
\patchcmd{\listoffigures}{%
  \@starttoc{lof}
}{%
   \begingroup%
   doublespace\@starttoc{lof}\endgroup%
}{}{}%
\makeatother

....
\listoffigures
....

或者,也许更简单(也未经测试)

\begin{doublespace}
  \listoffigures
\end{doublespace}

相关内容