我试图用下面的命令在LaTeX中将目录的标题居中
\usepackage{tocloft}
\renewcommand{\contentsname}{\centering Table of Contents}正如我所问的,我确信你们都意识到这是行不通的,对我能尝试什么有什么建议吗?
编辑:我让它与
\renewcommand{\cfttoctitlefont}{\hfill\Huge}发布于 2009-12-02 20:51:26
这起作用(没有使用程序包):
\renewcommand{\contentsname}{\centering Contents}也许,请确保它在序言中,并尝试删除.aux文件。
发布于 2013-04-18 16:12:21
这在\documentclass{book}中是可行的,而不需要使用包:
\renewcommand*\contentsname{\hfill Contents \hfill}
\tableofcontents如果\ before命令就在\tableofcontent命令之前,它甚至可以工作。
发布于 2018-06-13 07:19:02
更新内容名称可能会失败,因为\begin{document}如何从babel重写组件,因此必须将命令添加到\captionsenglish。This post将更详细地介绍。
\usepackage{tocloft}
\addto\captionsenglish{\renewcommand{\contentsname}{Table of Contents}}
\renewcommand{\cfttoctitlefont}{\hfill\normalsize}
\renewcommand{\cftaftertoctitle}{\hfill}https://stackoverflow.com/questions/1835620
复制相似问题