![付録: 「付録」は目次ではなくヘッダーにあります](https://rvso.com/image/390988/%E4%BB%98%E9%8C%B2%3A%20%E3%80%8C%E4%BB%98%E9%8C%B2%E3%80%8D%E3%81%AF%E7%9B%AE%E6%AC%A1%E3%81%A7%E3%81%AF%E3%81%AA%E3%81%8F%E3%83%98%E3%83%83%E3%83%80%E3%83%BC%E3%81%AB%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99.png)
\documentclass{book}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[title,toc,titletoc,page]{appendix}
\begin{document}
\tableofcontents
\chapter{MyChapter}
\begin{appendices}
\chapter{Any appendix title}
\end{appendices}
\end{document}
\appendix
バグがあるため使用していません\include
(実際はすべての付録と章を含めているため)。この環境のデフォルトは気に入っていますが、目次の「付録」という単語を削除したいと思います (目次のみで削除してください。付録のヘッダー内が気に入っています)。
現在:
Contents
1 MyChapter 3
Appendices 5
Appendix A Any appendix title 7
期待される:
Contents
1 MyChapter 3
Appendices 5
A Any appendix title 7
B ...
A
およびの前のインデントB
も良いでしょう。
答え1
a) によるとappendix
マニュアル、 オプションtitletoc
:
目次に記載されている各付録の前に名前(例:付録)を追加します。
必要ない場合は使用しないでください。
b) 付録のエントリをパッケージでインデントすることができますtocloft
\cftchapindent
適切な値に 設定することによって。
\documentclass{book}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{tocloft}
\usepackage[title,toc,page]{appendix}
\begin{document}
\tableofcontents
\chapter{MyChapter}
\begin{appendices}
\addtocontents{toc}{\protect\setlength{\cftchapindent}{3em}}
\chapter{Any appendix title}
\end{appendices}
\end{document}