提问于:
浏览数:
1997
\documentclass{article}
\usepackage{tocloft}
\usepackage{multicol}
\renewcommand\cftexprehook{\begin{multicols}{2}}
\renewcommand\cftexposthook{\end{multicols}}
\begin{document}
\tableofcontents
\section{abc}
abc
\section{abc}
abc
\section{abc}
abc
\section{abc}
abc
\section{abc}
\end{document}
2 回答
0
请用网站编辑器提供的代码块功能。

-
回复 undefined :看图 – 啸行 2020-04-05 22:48 回复
-
网站编辑器是? – ctuliu 2020-04-05 22:45 回复
0
改成
```tex
\renewcommand\cfttocprehook{\begin{multicols}{2}}
\renewcommand\cfttocposthook{\end{multicols}}
```
参考 `tocloft` 宏包文档,2.5 节末尾。
你的回答
请登录后回答
你的回答将会帮助更多人,请务必认真回答问题。