2010-07-18 77 views
2

我製作了一個文檔,內容爲twocolumn,但有時twocolumn對於源代碼列表太窄。使用LaTeX在兩列環境中製作1列

我發現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*環境,但它只是浮動,所以我寧願不使用它。

回答

3

這是否給你你想要的?

\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

考慮一下:

\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} 
+4

這個答案是不符合。在這個問題中,「雙列」文檔(這對於某些期刊是必需的)的約束被放置。 – Acorbe 2012-10-28 22:15:01