Text Formattingmulticols | Spread Content over several Columns

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
culturoeil
Posts: 2
Joined: Thu Dec 13, 2012 11:51 pm

multicols | Spread Content over several Columns

Post by culturoeil »

Hello

I'm not very strong in latex, and in english too...

I've a little problem with multicols, this is my mwe :

Code: Select all

%%!TEX TS-program = latex
\documentclass[a4paper,11pt]{article}
\usepackage[frenchb]{babel} 
\usepackage{multicol} 

\usepackage[a4paper, dvips, left=1.5cm, right=1.5cm, top=2cm,%
bottom=2cm, marginpar=5mm, marginparsep=5pt]{geometry}

\begin{document}

  \setlength{\columnseprule}{0.5pt}
  \begin{multicols}{4}\noindent
    \begin{enumerate}
    \item $2 \times 4 = \ldots\ldots$
    \item $45 \div 5 = \ldots\ldots$
    \item $4 + 10 = \ldots\ldots$
    \item $10 \times 10 = \ldots\ldots$
    \item $\ldots\ldots - 3 = 6$
    \end{enumerate}
  \end{multicols}
\end{document}
This produces calculs in only first 3 cols, but i want 2 calculs in the first col, and 1 calcul in col two, tree and four.

How can i do that ???

Recommended reading 2024:

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

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

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

multicols | Spread Content over several Columns

Post by Stefan Kottwitz »

Hi,

welcome to the board!

Very good that you posted an MWE. You could insert the command \columnbreak after the third and the fourth item line.

Stefan
LaTeX.org admin
culturoeil
Posts: 2
Joined: Thu Dec 13, 2012 11:51 pm

multicols | Spread Content over several Columns

Post by culturoeil »

Thx, but, hum, \columnbreak won't help me i think :

- My real problem is that kind of file is generated by a python program. There is a tex template, and the program user can ask 2, 5, 10, or 100 maths expressions... So i dont want to make a lot of elsif for each number of expressions :?

Is there a beautiful solution ?
Last edited by cgnieder on Sat Dec 15, 2012 2:50 pm, edited 1 time in total.
Post Reply