更改附錄中的目錄

更改附錄中的目錄

一旦點擊附錄,有沒有辦法改變目錄部分的佈局?

我希望以下內容有附錄 A. 標題,而不是頁碼: 在此輸入影像描述

我的\thesection 中的附錄A 掩蓋了標題。我嘗試過“更新”l@section 來嘗試和調整,但我真的不知道如何做。

我正在設定我的附錄命令,例如:

\newcommand{\clearemptydoublepage}    
  {\newpage{\pagestyle{empty}\cleardoublepage}}

\renewcommand\appendix{\par
  \clearemptydoublepage
  \setcounter{section}{0}
  \setcounter{subsection}{0}

  \renewcommand\section{%
      \renewcommand\thesection{\appendixname \ \@Alph\c@section}
                               \@startsection {section}{1}{\z@}%
                               {-3.5ex \@plus -1ex \@minus -.2ex}%
                               {2.3ex \@plus.2ex}%
                               {\centering\normalfont
                               \normalsize\bfseries\scshape}}

  \renewcommand\subsection{%
     \renewcommand\thesection{\@Alph\c@section}
                                 \@startsection{subsection}{2}{\z@}%
                                 {-3.25ex\@plus -1ex \@minus -.2ex}%
                                 {1.5ex \@plus .2ex}%
                                 {\normalfont\normalsize\bfseries\scshape}}

  \renewcommand\thesubsection{\thesection.\@arabic\c@subsection}
}

然後做:

\appendix

\makeappendixtitle{Add title for appendix A}
\section{Title}
\subsection{Appendix Sub}
First appendix

我的闌尾本身看起來不錯,如下:

在此輸入影像描述

答案1

使用頁面會更簡單appendix。它可以選擇將單字放在Appendix正文中每個附錄之前,但在目錄中隱藏它。

樣本內容

樣本附錄

\documentclass{article}

\usepackage[title]{appendix}

\begin{document}
\tableofcontents

\section{Ordinary section}

\cleardoublepage
\begin{appendices}
  \section{Title}
  \subsection{Appendix Sub}
  First appendix
\end{appendices}

\end{document}

相關內容