1

I am using the appendix package with the toc and page package options in the following way.

\documentclass{report}
\usepackage[toc,page]{appendix}
\begin{document}
\tableofcontents
\begin{appendices}
\chapter{Here is an Appendix}
\end{appendices}
\end{document}

The page package option puts a title (‘Appendices’) into the document at the point where the appendices environment is begun. It is based on the \part definition.

Now I want to change the format of the title ‘Appendices’ (size, capitals or bold or italics, maybe something fancier). I know how to do this for \part via \titleformat{\part} and if I do it, I can see how the format of the \part heading changes. Unforunately, the format of the title ‘Appendices’ always stays the same.

My questions are:

Is there a way to change the titleformat of the title ‘Appendices’?

Is there a way to force the title ‘Appendices’ to have the same titleformat as the \part heading?

2
  • 1
    It seems to be formatted as a part. What would you like to change?
    – Bernard
    Commented Sep 21, 2018 at 10:26
  • I would like to change the size (for example \huge) and I would like to use \scshape instead of bold.
    – user144921
    Commented Sep 21, 2018 at 11:15

1 Answer 1

2

The appendix page formatting is not obtained as \part but with the special \@chap@pppage command, which can easily be patched with xpatch. Here is an example with a coloured Appendix, in boldface smallcaps. The font size used by the appendix package is \Huge

\documentclass{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[svgnames]{xcolor}
\usepackage[toc,page]{appendix}
\usepackage{xpatch}
\usepackage{lipsum}

\makeatletter
\xpatchcmd{\@chap@pppage}{%
 \bfseries}{%
 \bfseries\scshape\color{IndianRed!70}}{}{}
\makeatother

\begin{document}

\tableofcontents

\part{ First Part}
\chapter{A Unique Chapter}
\lipsum

\begin{appendices}
\chapter{Here is an Appendix}
\end{appendices}

\end{document} 

enter image description here

Edit:

To remove the page number from this page, as the above command includes a \thispagestyle{plain}}, you just have to add this code (between makeatletter and makeatother):

\xpatchcmd{\@chap@pppage}{plain}{empty}{}{}
8
  • Why do I get the error "Font shape T1/lmr/bx/sc undefined(Font) using T1/lmr/bx/n instead"?
    – user144921
    Commented Sep 21, 2018 at 11:47
  • Probably because my code uses cmsuper. I'm not sure lmodern has a bold small caps font.
    – Bernard
    Commented Sep 21, 2018 at 11:50
  • If I delete the second \bfseries, then it perfectly works.
    – user144921
    Commented Sep 21, 2018 at 11:50
  • Yes, since it then uses the ‘normal’ small caps font.
    – Bernard
    Commented Sep 21, 2018 at 11:51
  • 1
    As it might be useful to others, I've added the line of code which does it in an edit.
    – Bernard
    Commented Sep 21, 2018 at 11:59

You must log in to answer this question.

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