[Tex/LaTex] How to remove spacing from before the table of contents in memoir class

memoirspacingtable of contents

I am using memoir class to create a collection of short stories, and the default space before the table of contents and chapter titles is quite large. I have seen several posts on this site that show how to remove this space for all chapters, but I want to remove it just for the table of contents, keeping it for the chapters. How would I do this?

Best Answer

An improvement of Brent's answer might be in avoiding to look for the value of \beforechapskip:

\frontmatter
\begingroup
\setlength{\beforechapskip}{0pt} % or any other dimension
\tableofcontents*
\endgroup

\mainmatter

That value of \beforechapskip will be used only inside the group and will be restored to the previous one when the group ends.

Notice the * after \tableofcontents, that will remove the table of contents entry from the table of contents (it's unclear to me why the default is to include the entry).

Related Question