使用 titletoc 包添加居中标题

使用 titletoc 包添加居中标题

我承认在使用 LaTeX 方面我是个新手。我可以用它来执行数学命令,但我以前从未用它来排版/格式化文档。

我有一个预先创建的目录文档,利用了 titletoc 包。以下是它的设置/标题代码:

\titlerunning{ICMI 25}
\authorrunning{Table of Contents}
\usepackage{titletoc}
\titlecontents{subsubsection}[2pt]{\addvspace{10pt}\bfseries\titlerule[0.5pt]\filright}{}{}{}[]
\titlecontents{section}[0pt]{\addvspace{5pt}\filright}{}{}{\dotfill\contentspage}[]
\titlecontents{subsection}[10pt]{\addvspace{1pt}\itshape\filright}{}{}{}[]
\newcommand{\tocSection}[1]{\contentsline{subsubsection}{#1\\*\titlerule[0.5pt]\vspace{-9pt plus 2pt minus 2pt}}{}{}\nopagebreak[4]}
\newcommand{\tocTitle}[2]{\contentsline{section}{#1}{#2}{}\nopagebreak[4]}
\newcommand{\tocAuthors}[1]{\contentsline{subsection}{#1}{}{}}
\begin{document}

我只想在顶部添加一个标题,上面写着“目录”。但是,每次我尝试时,我都会把页眉弄掉。我已经阅读了 titletoc 的文档,但仍然不确定如何实现这一点。

谢谢你!

相关内容