Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Although `I wouldn't normally do this', I'm writing a short(ish) document for which I'd like to place a small TOC in two columns as the last thing on the title page.

In single column mode it works fine. However, when I specify \twocoltocetc, I get a new page. Here's an MWE:

\documentclass[10pt,a4paper]{memoir}
\twocoltocetc
\begin{document}
\frontmatter
\title{Something or other}
\author{H.I.M. Self}
\maketitle
\tableofcontents*
\mainmatter
\chapter{Introduction}
\chapter{First chapter}
\section{First section}
\end{document}

What, if anything, must I do to fix this?

share|improve this question
add comment

3 Answers

up vote 11 down vote accepted

A quick way is temporarily disabling \clearpage for the table of contents which prevents that page break:

\begingroup
\let\clearpage\relax
\tableofcontents*
\endgroup

After that group, \clearpage has the original meaning.

share|improve this answer
add comment
\documentclass[10pt,a4paper]{memoir}
\usepackage{multicol}
\makeatletter
\renewcommand\tableofcontents{%
\begin{multicols}{2}[
    \section*{\huge\contentsname
        \@mkboth{%
           \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}]
    \@starttoc{toc}%
\end{multicols}}
\makeatother
\begin{document}
\frontmatter
\title{Something or other}
\author{H.I.M. Self}
\maketitle
\tableofcontents
\mainmatter
\chapter{Introduction}
\chapter{First chapter}
\section{First section}
\end{document}
share|improve this answer
    
Thanks, Herbert. I'm going to wait a day or two before accepting, to see if a ``pure memoir'' solution appears... –  Brent.Longborough Aug 27 '11 at 15:57
add comment

Not sure if this is more pure or not. It might just be abuse of innocent memoir ToC-formatting commands. And if you're looking to have a title followed by the first part of the ToC in column one, this won't work (use one of the other answers). But if you want a narrower ToC to the right of the narrow title block, this could be used.

enter image description here

\documentclass[10pt,a4paper]{memoir}
\twocoltocetc
\begin{document}
\frontmatter
\title{Something or other}
\author{H.I.M. Self}
\date{\today}

\renewcommand{\tocheadstart}{
{\beforepartskip \centering
{\Huge\bfseries\thetitle} \par
{\Large\theauthor} \par
{\Large\thedate} \afterpartskip
\newpage}
}
\tableofcontents*
\mainmatter
\chapter{Introduction}
\chapter{First chapter}
\section{First section}
\end{document}
share|improve this answer
    
Thanks, Mike. That's ingenious, and reasonably pure, but I really wanted to keep the titling stuff `above' and the TOC `below' –  Brent.Longborough Aug 27 '11 at 20:14
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.