我使用twocolumn
创建了一个文档,但有时twocolumn
对于源代码列表来说太窄了。
我找到了multicols
环境并按如下方式使用它:
% \documentclass[twocolumn]{article} % I don't use towcolumn, but multicolumn \documentclass[]{article} \usepackage{multicol} ... \begin{multicols*}{2} \section{In short} ... \end{multicols*} % Now I use one column \begin{multicols*}{1} ... \end{multicols*}
结果不是我想要的。 http://img3.imageshack.us/img3/6239/screenshot20100717at920.png
我的LaTeX代码出了什么问题?你为这个案子做了什么?
我尝试使用figure*
环境,但它只是浮动,所以我宁愿不使用它。
答案 0 :(得分:2)
这会给你你想要的吗?
\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}
答案 1 :(得分:-1)
考虑一下:
\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}