2

For my Appendix, I'd like to change the look of the ToC such that Appendix-Chapters look like Sections in the main part of the document.

The following code

\documentclass{memoir}
\begin{document}
\tableofcontents*

\chapter{First}
\section{sub}
\chapter{Second}
\appendix
\chapter{Appendix 1}
\chapter{Appendix 2}
\end{document}

results in the following ToC:

1 First
  1.1 sub
2 Second
A Appendix 1
B Appendix 2

However, what I would like to have is the following:

1 First
  1.1 sub
2 Second
Appendices
  A Appendix 1
  B Appendix 2
2
  • BTW: why do you want them to be formatted like this? (just wondering)
    – daleif
    Commented Mar 9, 2015 at 8:59
  • Because my ToC style makes chapters look prominent and because my appendices are not divided into further sections. That's why (i.m.o.) it looks ugly to have multiple such prominent chapter ToC-entries in a sequence.
    – Florian
    Commented Mar 9, 2015 at 9:07

1 Answer 1

4

One method

\documentclass{memoir}

\cftinsertcode{APP}{
  \setlength\cftchapterindent{\cftsectionindent}
  \setlength\cftbeforechapterskip{0pt}
  \renewcommand\cftchapterfont{\normalfont}
  \renewcommand\cftchapterpagefont{\normalfont}
}

\begin{document}
\tableofcontents*

\chapter{First}
\section{sub}
\chapter{Second}
\appendix
\appendixpage
\cftinserthook{toc}{APP}
\chapter{Appendix 1}
\chapter{Appendix 2}
\end{document}
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .