我正在用 编写一份双栏报告\documentclass [10pt,twoside]{article}
。在此过程中出现了一个问题:包括声明\twocolumn
双栏文本会跳转到下一页。如何让文本打印在同一页上?
\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}
我使用了 multicol package
,但由于某种原因,文本在我键入时不会换行。
我也使用了\documentclass [10pt,twocolumn]{article}
,但两列中的文本打印在图像中显示的一列中的文本上(并且是minipage
)。
答案1
如果我理解正确,您可以将初始文本放在可选参数中,\twocolumn
以便它跨越列
\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}
或者您可以使用multicol
允许切换到两列中间页面
\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}