34

I need to write a text just in this format

 \documentclass[twocolumn]{article}.

But I need to switch between single column and double column several times in the same page, without jumping to a new page every time I switch the format. Is this possible without using any package like \usepackage{multicol} ?

David Carlisle
  • 757,742
andre tiba
  • 341
  • 1
  • 3
  • 3

1 Answers1

28

You should look into using the multicol package and its multicols environment. For instance, the following code produces a page that starts in single-column mode, switches to two-column mode, and finally switches back to single-column mode.

\documentclass{article}
\usepackage{multicol,lipsum}
\begin{document}
\lipsum[1]
% switch to two-column layout
\begin{multicols}{2}
\lipsum[2-3]
\end{multicols}
% switch back to single-column layout
\lipsum[4]
\end{document}
Mico
  • 506,678
  • Does this not mess up marginnotes? – mathtick Oct 27 '19 at 20:16
  • @mathtick - Not sure what you're driving at. For a document to produce meaningful twocolumn output, the margins have to be rather slim. Hence I see no reason to worry about a lack of space for margin notes to begin with. – Mico Oct 27 '19 at 20:43
  • This works, but creates another problem, that is, multicol doesn't work with floats. – Mateus Felipe Mar 04 '21 at 14:21