天天看点

LaTeX section不带编号同时书签生效

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}           

继续阅读