Two-column text in LaTeX (twocolumn, multicol)
The class option twocolumn sets the whole document in two columns. For a part of a page, use the multicols environment of the multicol package; it takes the number of columns and balances their length.
Preamble
The snippets on this page need these lines before \begin{document}:
\usepackage{multicol}Two columns in the whole document
With twocolumn, LaTeX fills the left column to the bottom of the page and then the right one. \newpage jumps to the next column, \clearpage to the next page.
Complete document:
\documentclass[twocolumn]{article}
\begin{document}
\section{Introduction}
The text starts in the left column.
\newpage
This text starts at the top of the right column.
\end{document}Columns for a part of the page
\begin{multicols}{2} takes the number of columns. Text before and after the environment uses the full width, and the columns end at the same height.
This paragraph uses the full width of the page.
\begin{multicols}{2}
The text in the environment is split into two columns of the same
length. With three in the argument you get three columns.
The text goes on here so that both columns get a few lines.
\end{multicols}Gap, rule and column break
\columnsep is the gap between the columns and \columnseprule the thickness of a line between them (0 pt by default, so no line). Both also apply to twocolumn. \columnbreak ends a column inside multicols.
\setlength{\columnsep}{1cm}
\setlength{\columnseprule}{0.4pt}
\begin{multicols}{2}
Text in the left column.
\columnbreak
Text in the right column.
\end{multicols}A figure across both columns
In a twocolumn document, figure and table are one column wide. The starred forms figure* and table* span both columns and are placed at the top of a page, at the earliest on the page after the one where they appear in the source.
Complete document:
\documentclass[twocolumn]{article}
\usepackage{graphicx}
\begin{document}
\begin{figure*}
\centering
\includegraphics[width=0.8\textwidth]{image.png}
\caption{A figure as wide as both columns}
\end{figure*}
Text in the left column.
\end{document}Pitfalls
figureandtabledo not work insidemulticols: the package warns that floats are not allowed there and the float disappears. Usefigure*, or the placement[H]of thefloatpackage.multicols*with a star fills the columns one after the other and leaves the last one short.- In a
twocolumndocument the title can span both columns:\twocolumn[...]sets the content of the brackets in one column at the top of the page.
Compiled with pdfLaTeX from TeX Live 2023.
Related pages
- Package
multicol - Package
float - How-to Page break in LaTeX
- How-to Figure placement in LaTeX
- How-to Place content side by side in LaTeX
- Package
graphicx