[Tex/LaTex] How to force Latex to change from “A Appendix’s name” to “Appendix A”

appendicessectioning

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 ?

Best Answer

Just add the title option when including the appendix package:

\usepackage[titletoc,title]{appendix}

enter image description here