[Tex/LaTex] TOC as Section in memoir

memoirsectioningtable of contents

The TOC in the article class is formatted as a section. In memoir it is a chapter by default. I would prefer to have the TOC formatted in such a way that its heading gets formatted with the same font (smaller) and distance (closer) to what follows as a section would.

An example with memoir:

\documentclass{memoir}
\usepackage{lipsum}

\begin{document}

\chapter{Name of my Article}

\tableofcontents*

\section{A Section}

\lipsum{}

\subsection{A Subsection}

\lipsum{}

\end{document}

And a roughly equivalent example using article:

\documentclass{article}
\usepackage{lipsum}


\begin{document}

\title{Name of my Article}
\maketitle

\tableofcontents

\section{A Section}

\lipsum{}

\subsection{A Subsection}

\lipsum{}

\end{document}

Best Answer

Maybe you can use

\renewcommand\printtoctitle[1]{\section*{#1}}
\renewcommand\aftertoctitle{}

enter image description here

Code:

\documentclass{memoir}
\renewcommand\printtoctitle[1]{\section*{#1}}
\renewcommand\aftertoctitle{}
\usepackage{lipsum}
\begin{document}
\chapter{Name of my Article}
\tableofcontents*
\section{A Section}
\lipsum{}
\subsection{A Subsection}
\lipsum{}
\end{document}