LaTeX不带section编号直接在section命令后带*号即可,但此时无法自动生成书签,所以需要替代方案,此时可以设置自动编号作为变通之法。
示例代码
\documentclass[hyperref, UTF8]{ctexart} \setcounter{secnumdepth}{0} % 此处设置 \begin{document} \title{TTTTTTTT} \date{} \maketitle \section{aaa} \subsection{xxx} \subsection{xxx} \subsection{xxx} \section{bbb} \section{ccc} \end{document}
AI 代码解读