
付録に到達したら、目次のセクション部分のレイアウトを変更する方法はありますか?
次の項目には、付録 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}