ElegantLaTeX/ElegantBook

目录中练习的修改

Chzhx6421 opened this issue · 1 comments

当前模板中目录中习题小节会显示第*章习题,我想问一下怎么样把第几章去掉,只需要显示习题两个字就可以,在pdf,目录,书签中均只显示习题

在导言区加上

\renewcommand{\exercisename}{习题}
\renewenvironment{problemset}[1][\xchaptertitle~\exercisename]{
  \vspace*{10pt}
  \begin{center}
    \phantomsection\addcontentsline{toc}{section}{\exercisename}
    % \markboth{#1}{\rightmark}
    \markright{#1}
    \textcolor{structurecolor}{\Large\bfseries\adftripleflourishleft~#1~\adftripleflourishright}
  \end{center}
  \begin{enumerate}}{
  \end{enumerate}}