別冊目次 付録

別冊目次 付録

私のレポートでは、付録用に別の目次が必要です。ヘルプデスクに問い合わせたところ、実際に機能するこのコードが提供されました :) ;

\usepackage[titles]{tocloft}
\newcommand{\listappendixname}{Contents Appendices}
\newlistof{appendix}{loa}{\listappendixname}

\usepackage{xpatch}

\makeatletter
\apptocmd{\appendix}{
  \xpatchcmd{\ttl@addcontentsline}
    {\addcontentsline{toc}}
    {\addcontentsline{loa}}{}{}
}
\makeatother

ドキュメント本文:

\appendix
\phantomsection % so that "Appendix" hyperlink in TOC is correct
\addcontentsline{toc}{chapter}{Appendix}
\listofappendix

しかし、この付録のリストで章を太字にする必要がありますが、セクションとサブセクションは太字にする必要はありません。これを行う方法を誰か教えてくれませんか?

これを試してみましたが、うまくいきませんでした。

% Manually adjust the formatting for appendix entries in TOC
\renewcommand{\cftchappresnum}{\textbf} % Make chapter numbers bold
\renewcommand{\cftchapfont}{\bfseries} % Make chapter titles bold

ありがとう! よろしく、リー

関連情報