Text FormattingLatex multicol distance text from seprule

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
jimkaip
Posts: 13
Joined: Fri Oct 19, 2018 8:13 am

Latex multicol distance text from seprule

Post by jimkaip »

I have problem to control the distance between text limits(left and right) and seprule in the multicol environment.
How to change distances?
Thank you
Jim.

Code: Select all

\begin{multicols}{4}
my text ...
\endmulticols}
Attachments
Επιλογή_028.png
Επιλογή_028.png (13.56 KiB) Viewed 3443 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Latex multicol distance text from seprule

Post by Stefan Kottwitz »

Hi Jim,

welcome to the forum!

You can change the distance between text columns by adjusting the \columnsep length, such as:

\setlength{\columnsep}{1cm}

Stefan
LaTeX.org admin
jimkaip
Posts: 13
Joined: Fri Oct 19, 2018 8:13 am

Latex multicol distance text from seprule

Post by jimkaip »

Hi Stefan, thank you for the answer.
But i still have problem. \setlength{\columnsep}{5cm} or \setlength{\columnsep}{0cm}, is the same, don’t affect to distance, so i have some problem in my code?
Also the main need is to reduce a and b limits as show in icon.
Thank you
Jim.

Code: Select all

\tiny \color{white}
\begin{multicols}{6}
\setlength{\columnsep}{5cm}
\setlength{\columnseprule}{0.1mm}
my text ...
Attachments
Επιλογή_030.png
Επιλογή_030.png (33.5 KiB) Viewed 3417 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Latex multicol distance text from seprule

Post by Stefan Kottwitz »

Hi Jim,

set the lengths before you start the multicols environment. Such as here:

Code: Select all

\documentclass[landscape]{article}
\usepackage{geometry}
\usepackage{ragged2e}
\usepackage{multicol} 
\usepackage{blindtext}  
\begin{document}
\tiny\RaggedRight
\setlength{\columnsep}{5cm}
\setlength{\columnseprule}{0.1mm}
\begin{multicols}{4}
\noindent\blindtext
\end{multicols}
\end{document}
multicol.png
multicol.png (17.57 KiB) Viewed 3411 times
Stefan
LaTeX.org admin
jimkaip
Posts: 13
Joined: Fri Oct 19, 2018 8:13 am

Latex multicol distance text from seprule

Post by jimkaip »

Thank you Stefan.
After your advice all works fine.
Thank you and good day.
Jim.
Post Reply