[Tex/LaTex] Indent appendices in table of contents

appendicessectioningtable of contents

If I use

\documentclass{article}

\usepackage[toc,page]{appendix}

\begin{document}

\tableofcontents

\begin{appendices}

    \section{Some Header}
    ..

    \section{Another Header}
    ..

\end{appendices}

\end{document}

I get

enter image description here

How can I indent the two sections in the table of contents, so the TOC behaves just like \section{} and \subsection{} with each appendix being indented under the Appendices title just like a subsection would be indented under a section (i.e. same font, the dots between the header and the page number, etc)?

Best Answer

It is really wrong to do stuff like that but here you go.

jamgreenAppendixToc

\documentclass{article}

\usepackage[toc,page]{appendix}

\begin{document}

\tableofcontents

\begin{appendices}
    \renewcommand{\thesubsection}{\Alph{subsection}}
    \subsection{Some Header}
    ..

    \subsection{Another Header}
    ..
\end{appendices}

\end{document}