26

I work on a article type document and I would like to force Latex to use "Appendix A" without giving a name in place of the simple "A" that it gives me when I start a new section in the appendices.

My example :

when I type this

\documentclass[a4paper,titlepage]{article}
\usepackage[titletoc]{appendix}
\numberwithin{equation}{section} 
    % I write it because I would want to keep the (A.1) notation for 
    % equations' label for appendices

\begin{document}

\section{First section}
    blablabla

\begin{appendices}

\section{nameA}
    blablabla
\section{}
    blablabla
\end{appendices}

\end{document}

I get this in the body of the document :

A nameA
blablabla
B 
blablabla

and in my toc I get

Appendix A nameA ... 
Appendix B

which is fine (as far as the toc is concerned)

But I would like that I got this in the body :

Appendix A nameA
blablabla
Appendix B 
blablabla

How to do this ?

  • 1
    Please post a MWE of your code starting with \documentclass and ending with \end{document} – Red Sep 12 '13 at 14:19
  • @Red Hope it is enough – mwoua Sep 12 '13 at 14:28
28

Just add the title option when including the appendix package:

\usepackage[titletoc,title]{appendix}

enter image description here

  • 3
    Nice, but how do I get Appendix A: nameA? Note the :. – daaxix Feb 23 '17 at 2:33
  • @daaxix Do you know how to do that by now? – Sam Feb 25 '18 at 18:53
  • 1
    this does not work For KOMA-Script scrreport – MADforFUNandHappy Mar 8 '18 at 12:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.