全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 LATEX论坛
1440 1
2016-02-06

Documents with two columns are very popular, especially in academic publishing. In other scenarios, it may be desirable to have three or even more columns. In this brief post, I show how to add a separator line between columns as well as how to adapt the space between columns, for a better visual separation of the content.


Adding a separator line between columns

By default, there is no separator line between columns, neither with the twocolumnoption nor with the multicol package. In practise, this is because the width of the separator line is set to zero by default (0pt).

Therefore, to add a separator line it suffices to change the width of the column separator rule using the \setlength macro. Its width would usually be a small number in points, for example: 0.4pt or 1pt. The following figures illustrate this for two columns with the twocolumn option and for three columns with the multicol package. A minimal example is given below each figure.



Code



复制代码




Code



复制代码



Changing space between columns

The space between columns is defined by the length of \columnsep. To modify it, we use the \setlength macro again. Similarly to the previous examples, this works for two columns with the twocolumn option set and for two or more columns with the multicol package.



Code

[size=1em]

[size=1em]1


[size=1em]2


[color=white !important][size=1em]3


[size=1em]4


[size=1em]5


[size=1em]6


[size=1em]7


[size=1em][size=1em]\documentclass[11pt,twocolumn]{article}
[size=1em]\usepackage{blindtext}
[size=1em]\setlength{\columnseprule}{0.4pt}
[size=1em]\setlength{\columnsep}{3em}
[size=1em]\begin{document}
[size=1em]\blinddocument
[size=1em]\end{document}




二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2016-7-7 09:57:25
thanks
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群