0

I am writing a report in two columns with \documentclass [10pt,twoside]{article}. In the process a problem arose: including the statement \twocolumn the text in two columns jumps to the next page. How do I get the text to print on the same page?

\documentclass[10pt,twoside]{article}
\usepackage[letterpaper,left=0.7in,right=0.7in,top=0.5in,bottom=0.5in,footskip=.2in]{geometry}
\usepackage{graphicx,lipsum}
\usepackage[svgnames]{xcolor}

\begin{document}
\onecolumn
% Cabecera

\begin{flushleft}
\makebox[\textwidth]{\hrulefill}
\end{flushleft}
\begin{minipage}{0.2\textwidth}
%\includegraphics[width=\textwidth]{image} \\ \vspace{3.0cm}
\end{minipage} \hfill
\begin{minipage}{0.77\textwidth}\raggedright
\textbf{\color{olive}\huge\fontfamily{phv}\selectfont Opuntia: cuidado de agaváceas, cactáceas y crasuláceas} \\ \vspace{0.25cm}
{\large Arturo García Flores} \\ \vspace{0.1cm}
{\large Universidad Autónoma Metropolitana--Iztapalapa} \\ \vspace{0.25cm}
\today \\ \vspace{0.25cm}
\lipsum[1]
\end{minipage}%
\begin{flushleft}
\makebox[\textwidth]{\hrulefill}
\end{flushleft}

\twocolumn

\section*{Introducción}

\noindent \lipsum[1-7]

\end{document}

enter image description here

I used the multicol package, but for some reason the text doesn't wrap as I type.

I also used \documentclass [10pt,twocolumn]{article}, but the text in two columns is printed over the text in a column shown in the image (and which is a minipage).

4
  • Hello. Could you provide a minimal reproducible example so that community members can reproduce your issue? Jan 11, 2022 at 20:39
  • @DušanStokić Of course. I have added a part of my code in the question. Jan 11, 2022 at 20:56
  • 3
    \twocolumn always starts a new page. you can put the initial text in the optional argument \twocolumn[spanning text here] or use the multicol package, Jan 11, 2022 at 21:10
  • your question seems unrelated to the twoside option? Jan 11, 2022 at 21:11

1 Answer 1

3

If I understand the question correctly you can either place the initial text in the optional argument of \twocolumn so that it spans the columns

enter image description here

\documentclass[10pt,twocolumn]{article}
\usepackage[letterpaper,left=0.7in,right=0.7in,top=0.5in,bottom=0.5in,footskip=.2in]{geometry}
\usepackage{graphicx,lipsum}
\usepackage[svgnames]{xcolor}

\begin{document}

\twocolumn[{
% Cabecera
\begin{flushleft}
\makebox[\textwidth]{\hrulefill}
\end{flushleft}
\begin{minipage}{0.2\textwidth}
%\includegraphics[width=\textwidth]{image} \\ \vspace{3.0cm}
\end{minipage} \hfill
\begin{minipage}{0.77\textwidth}\raggedright
\textbf{\color{olive}\huge\fontfamily{phv}\selectfont Opuntia: cuidado de agaváceas, cactáceas y crasuláceas} \\ \vspace{0.25cm}
{\large Arturo García Flores} \\ \vspace{0.1cm}
{\large Universidad Autónoma Metropolitana--Iztapalapa} \\ \vspace{0.25cm}
\today \\ \vspace{0.25cm}
\lipsum[1]
\end{minipage}%
\begin{flushleft}
\makebox[\textwidth]{\hrulefill}
\end{flushleft}

}]

\section*{Introducción}

\noindent \lipsum[1-7]

\end{document}

Or you can use multicol to allow switching to two-column mid-page

enter image description here

\documentclass[10pt]{article}
\usepackage[letterpaper,left=0.7in,right=0.7in,top=0.5in,bottom=0.5in,footskip=.2in]{geometry}
\usepackage{graphicx,lipsum,multicol}
\usepackage[svgnames]{xcolor}

\begin{document}


% Cabecera

\begin{flushleft}
\makebox[\textwidth]{\hrulefill}
\end{flushleft}
\begin{minipage}{0.2\textwidth}
%\includegraphics[width=\textwidth]{image} \\ \vspace{3.0cm}
\end{minipage} \hfill
\begin{minipage}{0.77\textwidth}\raggedright
\textbf{\color{olive}\huge\fontfamily{phv}\selectfont Opuntia: cuidado de agaváceas, cactáceas y crasuláceas} \\ \vspace{0.25cm}
{\large Arturo García Flores} \\ \vspace{0.1cm}
{\large Universidad Autónoma Metropolitana--Iztapalapa} \\ \vspace{0.25cm}
\today \\ \vspace{0.25cm}
\lipsum[1]
\end{minipage}%
\begin{flushleft}
\makebox[\textwidth]{\hrulefill}
\end{flushleft}

\begin{multicols}{2}

\section*{Introducción}

\lipsum[1-7]

\end{multicols}

\end{document}
1
  • 1
    Wow. I feel terrible when the solution is as simple as pressing []. XD Thanks everyone for your help. Jan 11, 2022 at 21:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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