From 29806704d97119f010469e01b324201f9bd6446b Mon Sep 17 00:00:00 2001 From: Luthaf Date: Wed, 4 Jun 2014 10:46:15 +0100 Subject: [PATCH] Modification du nombre de colonnes en fonction de la taille du papier --- templates/data.tex | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/templates/data.tex b/templates/data.tex index d7ae1d8a..d79bdfc1 100644 --- a/templates/data.tex +++ b/templates/data.tex @@ -97,6 +97,20 @@ %! End of font management \geometry{((orientation)), ((papersize))paper} + +%! Temporary hack for columns management +\let\OldSongColumns=\songcolumns +\def\songcolumns#1{% +(* if orientation=="portrait" and papersize=="a5" *) + \OldSongColumns{1} +(* elif orientation=="landscape" and papersize=="a4" *) + \count0=#1\relax\advance\count0 by 1\relax% + \OldSongColumns{\count0} +(* else *) + \OldSongColumns{#1} +(* endif *) +} +%! End of columns management (* endblock *) (* block preface *)