12

I'd like to add two rules between two columns of a multicols environment.

For adding one I used \setlength{\columnseprule}{0.2pt} but how can I add two?

1 Answer 1

10

You can patch the command responsible for typesetting the rule

\documentclass{article}
\usepackage{multicol,etoolbox}
\usepackage{lipsum} % just for the example

\makeatletter
\patchcmd{\page@sofar}
  {\vrule\@width\columnseprule}
  {\vrule\@width\columnseprule\kern\doublerulesep\vrule\@width\columnseprule}
  {}{}
\makeatother

\setlength{\columnseprule}{0.2pt}

\begin{document}

\begin{multicols}{2}
\lipsum
\end{multicols}

\end{document}

enter image description here

4
  • How can I color those vrules, e.g. blue? Difficult?
    – Keks Dose
    Mar 20, 2014 at 13:57
  • 1
    \columnseprulecolor dictates the color. See documentation.
    – cslstr
    Mar 20, 2014 at 14:00
  • 1
    @KeksDose \renewcommand{\columnseprulecolor}{\color{blue}}
    – egreg
    Mar 20, 2014 at 14:01
  • Sorry, RTFM, yes. But thank you both, egreg and cslstr. Looks cool. Take a kind of purple color (+xcolor-package) and the layout reminds me on centuries old books.
    – Keks Dose
    Mar 20, 2014 at 14:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .