Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 10 down vote accepted

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

share|improve this answer
    
How can I color those vrules, e.g. blue? Difficult? –  Keks Dose Mar 20 at 13:57
1  
\columnseprulecolor dictates the color. See documentation. –  cslstr Mar 20 at 14:00
1  
@KeksDose \renewcommand{\columnseprulecolor}{\color{blue}} –  egreg Mar 20 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 at 14:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.