在制表环境中强制分栏

在制表环境中强制分栏

基本上按照说明进行操作这里,我试图在文本中强制分栏。但是,我的文本嵌入在环境中tabbing,按照上述说明操作会导致以下错误:

! Missing } inserted.
<inserted text> 
                }
l.20 {\vfill
            }
? 

这是一个最小(不)工作的示例:

\documentclass[12pt]{article}
\usepackage{multicol}

\begin{document}
\begin{center}
\large{\textbf{My title.}}
\end{center}
\begin{multicols}{2}
\begin{tabbing}
Here \= is \= a sentence\\
Here \> is \> a word\\
Here \> is \> a sentence\\
Here \> is \> a word\\
Here \> is \> a sentence\\
Here \> is \> a word\\
Here \> is \> a sentence\\
Here \> is \> a word\\
Here \> is \> a sentence\\
Here \> is \> a word\\
\vfill
\columnbreak
Here \> is \> a sentence\\
Here \> is \> a word\\
\end{tabbing}
\end{multicols}
\end{document}

答案1

在此处输入图片描述

\documentclass[12pt]{article}
\usepackage{multicol}

\begin{document}
\begin{center}
\large{\textbf{My title.}}
\end{center}
\begin{multicols}{2}
\begin{tabbing}
Here \= is \= a sentence\\
Here \> is \> a word\\
Here \> is \> a sentence\\
Here \> is \> a word\\
Here \> is \> a sentence\\
Here \> is \> a word\\
Here \> is \> a sentence\\
Here \> is \> a word\\
Here \> is \> a sentence\\
Here \> is \> a word\\[\fill\columnbreak]
Here \> is \> a sentence\\
Here \> is \> a word\\
\end{tabbing}
\end{multicols}
\end{document}

答案2

您可以终止tabbing环境并在下一列中重新建立制表符对齐,以及\kill删除制表符定义:

在此处输入图片描述

\documentclass[12pt]{article}
\usepackage{multicol}% http://ctan.org/pkg/multicol
\begin{document}
\begin{center}
\large{\textbf{My title.}}
\end{center}
\begin{multicols}{2}
\begin{tabbing}
Here \= is \= a sentence\\
Here \> is \> a word\\
Here \> is \> a sentence\\
Here \> is \> a word\\
Here \> is \> a sentence\\
Here \> is \> a word\\
Here \> is \> a sentence\\
Here \> is \> a word\\
Here \> is \> a sentence\\
Here \> is \> a word
\end{tabbing}
\vfill
\columnbreak
\begin{tabbing}
Here \= is \= a sentence \kill% Re-establish tab positions
Here \> is \> a word\\
\end{tabbing}
\end{multicols}
\end{document}

相关内容