3

My minimum working example:

\documentclass{article}
\usepackage{appendix}
\usepackage{etoc}

\begin{document}

\section{My First Section}
\section{My Second Section}

\begin{appendices}
\section{My First Appendix}
\localtableofcontents
\subsection{My First Subsection}
\subsection{My Second Subsection}

\section{My Second Appendix}
\localtableofcontents
\subsection{My First Subsection}
\subsection{My Second Subsection}
\end{appendices}

\end{document}

The result:

enter image description here

Now I like to adjust the font size of the "Contents" header.

3

One way to achieve it is to employ \etocsettocstyle:

\documentclass{article}
\usepackage{appendix}
\usepackage{etoc}
\makeatletter
    \etocsettocstyle
    {\section *{\Huge\contentsname%
% FOLLOWING TWO LINES OPTIONAL DEPENDING ON YOUR NEED
%                \@mkboth {\MakeUppercase \contentsname}
%                         {\MakeUppercase \contentsname}%
    }}
    {}%
\def\etocstandarddisplaystyle{\etocarticlestyle}
\makeatother
\begin{document}
\section{My First Section}
\section{My Second Section}

\begin{appendices}
\section{My First Appendix}
\localtableofcontents
\subsection{My First Subsection}
\subsection{My Second Subsection}

\section{My Second Appendix}
\localtableofcontents
\subsection{My First Subsection}
\subsection{My Second Subsection}
\end{appendices}

\end{document}

enter image description here

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.