70

I am writing a document using the report class in two column mode, but I need a \section to spread across both columns, but how can I set that?

Something like

\documentclass[10pt,danish,a4paper,twoside,twocolumn]{report}
\input{preamble.tex}
\begin{document}

% This section should spread over both columns
\section{Name}

\lipsum[1-3]
\end{document}
1

1 Answer 1

87

There is a switch: \onecolumn:

\documentclass[10pt,a4paper,twoside,twocolumn, english]{report}
\usepackage{lipsum, babel}
%\input{preamble.tex}
\begin{document}
\lipsum

% This section should spread over both columns
\onecolumn
\section{Name}

\lipsum[1-3]
\end{document}

But the section has to start on a new page. Go back to twocolumn with? Yes, \twocolumn.

11
  • 27
    Can I do it without starting a new page?
    – The87Boy
    Dec 28, 2012 at 18:26
  • 5
    Only if you use the multicol package. You know how to get the manual? Type texdoc multicol on the commandline. Beware: the name of the environment is »multicols«.
    – Keks Dose
    Dec 28, 2012 at 18:29
  • So if I write the Whole page in multicol, I can change it on one section of a page? Or it is also going to display 2 pages?
    – The87Boy
    Dec 28, 2012 at 18:57
  • 8
    @AriB.Friedman Just to let you know (maybe you already do), the correct way to have a table spreading accross two columns is using \begin{table*} and figures with \begin{figure*}, with their corresponding ends.
    – Hans
    Dec 9, 2016 at 1:45
  • 1
    For listings, use float=*t if you want the code snippet to span across two columns (in a two column document). Ref e.g.: \lstinputlisting[caption = test,label = test, float=*t]{test_code.py}
    – vineeshvs
    Sep 27, 2021 at 18:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .