如何在LaTeX中以两列布局显示内容?
我正在LaTeX中写一篇文章,我想以两列布局显示一些内容.左列为矩阵,右列为项目列表.我已经尝试过使用表格格式的环境,但是它并不能按照我的要求工作.
I am writing an article in LaTeX and I would like to display some content in two column layout. In the left column a matrix and in the right column a list of items. I have tried with tabular environment but it does not work as I want.
我的问题是如何在LeTeX文档(或类似内容)中创建两列区域,并能够在左右列中放置某些内容?我不想为整个文档创建一个两列布局,而只为其中一部分创建.
My question is how to create a two column area in a LeTeX document (or something similar) and be able to put certain content to left and right column? I do not want to create a two-column layout for whole document, only for part of it.
加载 multicol 程序包,例如\usepackage{multicol}
.然后使用:
Load the multicol package, like this \usepackage{multicol}
. Then use:
\begin{multicols}{2}
Column 1
\columnbreak
Column 2
\end{multicols}
如果省略\columnbreak
,则各列将自动保持平衡.
If you omit the \columnbreak
, the columns will balance automatically.