Oct 032007

When I was adjusting my slides for a talk (to be given in Oct 16) in the Capital University of Economics and Business, I found the table of contents was a little bit too long to be placed in a single page while the titles of all sections are not so wide, thus I searched for some instructions on multi-column pages in LaTeX, and easily got this Wikipedia page: http://en.wikibooks.org/wiki/LaTeX/Page_Layout. Some codes as follows will just help us separate a part of texts into several columns:

...
\usepackage{multicol}
...
\begin{multicols}{3}    % 3 columns
   If you are using a standard Latex document class,
   then you can simply pass the optional argument twocolumn
   to the document class: \documentclass[twocolumn]{article}
   which will give the desired effect.
\end{multicols}
...

This is what my table of contents looks like now:

Related Posts

11 Responses to “multicol — Multi-column Pages in LaTeX”

Comments (11)
  1. Vidhya says:

    Very useful. Thank you

  2. spx2 says:

    how can one widen the columns of a multicols block ?

    I am having trouble doing this

    • Yihui says:

      Hi, its manual has told us that “the space between columns is controlled by the length parameter columnsep”. So you need to declare this length first, e.g. \setlength{columnsep}{0pt}

  3. Verbunk says:

    Hi Guys,

       What I'd like to do is make an uneven distribution of space for each column. So for instance make one 75% of the column space (break) then the rest for the remaining column.

      Any tips on how to do this?

    • Yihui says:

      Sorry, but I don't think multicol supports different column widths…

      • Torsten says:

        e.g. minipage may help

      • Yihui Xie says:

        Yes, we can set different widths via minipage, but these mini pages are arranged side by side, which is different from multicol.

        For multicol:

        | this is a paragraph | umns. The division makes |
        | divided into 2 col- | 2 parts of same height.  |
        

        For minipage:

        ------------------------------  ----------------
        | this is a paragraph in the |  | this is the  |
        | left minipage.             |  | 2nd minipage |
        |                            |  |              |
        ------------------------------  ----------------
        

        That means we will have to arrange our texts by hand in two mini pages.

Leave a Reply

(required)

(required)

WWW.YIHUI.NAME XIE@YIHUI.NAME © 2007 - 2010 by Yihui Xie