Multitoc 包:中心标题

Multitoc 包:中心标题

我想使用 multitoc 包将 2 列目录的标题居中。我搜索并阅读了 multitoc 文档,但无法解决这个问题。

\documentclass[12pt]{article}
\usepackage[toc]{multitoc}
\usepackage{tocloft}
\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}}
\begin{document}
\renewcommand*\contentsname{Table of Contents}
\tableofcontents
\clearpage
\section{Question 1}
\section{Question 2}
\section{Question 3}
\section{Question 4}
\section{Question A1}
\section{Question A2}
\section{Question A3}
\end{document}

目录示例

谢谢

答案1

最简单的解决方法是

\usepackage[titles]{tocloft} % don't allow tocloft to manage toc titles
\renewcommand{\contentsname}{\centering Table of contents}

在此处输入图片描述

相关内容