I have the following document:
\documentclass[11pt,a4paper,twoside]{book}
\usepackage[spanish,activeacute]{babel}
\usepackage[titletoc]{appendix}
\begin{document}
\setcounter{tocdepth}{2}
\setcounter{secnumdepth}{3}
\tableofcontents
\chapter{First chapter}
\begin{appendices}
\addappheadtotoc
\appendixpage
\clearpage
\chapter{Some name}
\label{label1}
blah blah
\end{appendices}
\end{document}
this gives in the ToC:
Apéndice Appendices....................60
Apéndice A. Some name..................63
and in the body of the document:
Appendices
(page skip)
Apéndice A
Some name
blah blah
-
The TOC shows
"Apéndice Appendices"
and I need it to show"Apéndices"
(note the "s" at the end of that word; it's not the same word that the first one currently in the TOC) Also in the body of the document it shows"Appendices"
(in english) and I also need it to say"Apéndices"
(in spanish), ie: the same word that should be displayed in the TOC. This looks like ababel
issue to me. -
Is there a way not to have to give each appendix a name? This is done with the
\chapter{Some name}
command, but I'd like the name ofApéndice A
to be just that:Apéndice A
. This way the ToC would look like (assuming the 1st point is fixed):Apéndices........................60 Apéndice A.......................63
and the body of the document:
Apéndices (page skip) Apéndice A blah blah
Is there any way to do this?
I think a hack to accomplish the 2nd point would be to combine @murray's answer with not giving a name to the chapter. This is, this line \chapter{Some name}
would have to be replaced by:
\chapter[]{}
It's not pretty but I think it gets the job done.
If anybody knows of a more elegant way to do this, please let me know.
Best Answer
If I understand the
appendix
manual correctly, then the\addappheadtotoc
and\appendixpage
should only be used if theappendices
environment is not used. If theappendices
environment is used, then the same effect is created by using thetoc
andpage
package options, i.e. loading the package asFurther, since
babel
doesn't contain translations for theappendix
package, you have to set them yourself:The actual appendices are then created with (note that the
\clearpage
is not needed)This gives me the desired result: