Customize appendices environment to print 'Publications' instead of 'Appendices'

I want to customize \begin{appendices} command to print 'Publications'. It works in the main document, however it is still writing 'Appendices' in the table of contents.

\renewcommand\appendixname{Publications}
\renewcommand\appendixpagename{Publications}
\begin{appendices}
\includepdf[pages=-, offset = 0 0]{\Papers\text.pdf}
\end{appendices}


How can i also change the title in contents ?

• Can you make a MWE? – user36296 Feb 27 '17 at 14:26
• What @samcarter is asking for is a minimal working example (MWE). – TonioElGringo Feb 27 '17 at 14:46
• \renewcommand\appendixtocname{\appendixname} if you're using appendix package and having defined \appendixname already to expand to Publications – user31729 Feb 27 '17 at 15:42

1 Answer

The macro \appendixtocname is responsible for the title of the Appendix in the ToC.

It must be redefined with \renewcommand{\appendixtocname}{Yournicetitle} if it should be other than the usual \appendixname.

Please note that a change of \appendixname does not change \appendixtocname, however!

\documentclass{book}

\usepackage[toc,page]{appendix}
\usepackage{blindtext}

\usepackage{hyperref}

\renewcommand\appendixname{Publications}
\renewcommand\appendixtocname{\appendixname}
\renewcommand\appendixpagename{Publications}

\begin{document}
\tableofcontents
\blinddocument
\begin{appendices}
\blinddocument
% \includepdf[pages=-, offset = 0 0]{\Papers\text.pdf}
\end{appendices}

\end{document}