Page Layout ⇒ Multiple text columns
Multiple text columns
I'm wanting to be able to have the following page layout.
- n vertical text columns
- n-1 vertical lines between the n vertical text columns
- the ability to put a horizontal line dividing sections of text within a particular column of text (of the n columns)
Any help or suggestions would be very much appreciated!
Thanks.
schmag
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Multiple text columns
Code: Select all
\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage[centering,includeheadfoot,margin=2cm]{geometry}
\usepackage{lmodern}
\usepackage{multicol}
\usepackage{titlesec}
\usepackage{blindtext}
\setlength{\columnseprule}{1pt}
\titleformat{\section}{\titlerule\vspace{0.8ex}\bfseries\sffamily\large}{\thesection.}{0.5em}{}
\begin{document}
\begin{multicols}{3}
\section{First Section}
\blindtext[2]
\section{Second Section}
\blindtext[2]
\section{Third Section}
\blindtext[4]
\end{multicols}
\end{document}
Best regards and welcome to the board
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10