TransWikia.com

Setting the column gap in a twocolumn (or multicol) document

TeX - LaTeX Asked by ℝaphink on January 9, 2021

I have a document that uses twocolumn with scrbook. How can I set the width of the space between the two columns?

3 Answers

Use setlength{columnsep}{<width>} in the preamble of your document, i.e. before begin{document}.

Changing columnsep also works if you use the multicol package.

Correct answer by lockstep on January 9, 2021

As meteors mentioned in his comment, setlength{columnsep}{5 in} also did not work for me. I was using twocolumn command. Instead of separating the two column, I adjusted the widths of each column and it did work out well i.e.,

setlength{columnwidth}{<width>}

Answered by Muaz on January 9, 2021

I ran into this problem earlier today. As Mauz Khan and Evan Aad note, the solution of adding setlength{columnsep}{<width>} to the preamble or in the body (prior to starting the multicol environment) does not always work. If you are in certain modes (Beamer, for instance) where usepackage{multicol} is being called in your .sty file (rather that in the preamble of your actual document), modifying columnsep in your document's preamble will not work. In this case, you would need to modify the length in the preamble of the .sty file by adding setlength{columnsep}{<width>} there instead, rather than in your document.

I hope this helps someone else! Perhaps its more of a comment, but this is what I am limited to.

Answered by NWaters on January 9, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP