Make 1 column from two column environment with LaTeX
I make a document with twocolumn
, but sometimes twocolumn
is too narrow for source code listing.
I found the multicols
environment and used it as follows:
% \documentclass[twocolumn]{article} % I don't use towcolumn,开发者_如何学Python but multicolumn \documentclass[]{article} \usepackage{multicol} ... \begin{multicols*}{2} \section{In short} ... \end{multicols*} % Now I use one column \begin{multicols*}{1} ... \end{multicols*}
The result is not what I wanted. http://img3.imageshack.us/img3/6239/screenshot20100717at920.png
What's wrong with my LaTeX code? What do you do for this case?
I tried to use a figure*
environment, but it just floats around, so I'd rather not use it.
Does this give you what you want?
\documentclass[]{article}
\usepackage{multicol}
\begin{document}
\begin{multicols}{2}
\section{In short}
double column text here. .double column text here. . .
double column text here. . .
double column text here. . .
double column text here. . .
.
\end{multicols}
% Now I use one column
% don't put any multicol command here, you're in outer
% single column document already
put single column text here. put single column text here.
put single column text here. put single column text here.
put single column text here. put single column text here.
. . .
\begin{multicols}{2}
\section{In short}
double column text here. . .
double column text here. . .
double column text here. . .
double column text here. . .
double column text here. . .
\end{multicols}
\end{document}
Consider this:
\documentclass[]{article}
% no special package required
%%%%%%%%%%%
\begin{document}
normal text normal text
\begin{columns}[c] %%%% [t] top vertical alignment or [c] vertical center alignment
\begin{column}{.45\textwidth}
Text in the first column
\huge \sc Mart\'in jim\'enez.
\end{column}
\begin{column}{.45\textwidth}
text in the second column
\end{column}
\end{columns}
Normal text normal text
\end{document}
精彩评论