
誠然,我在使用 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 的文檔,但仍然不確定如何實現這一點。
謝謝你!