From ed421698ab23ac6cc8724a463374ce3d70f6e303 Mon Sep 17 00:00:00 2001 From: Luthaf Date: Mon, 26 May 2014 11:19:32 +0100 Subject: [PATCH] Ajout d'options pour la taille et l'orientation du papier --- templates/data.tex | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/templates/data.tex b/templates/data.tex index 2bf1cfb0..d7ae1d8a 100644 --- a/templates/data.tex +++ b/templates/data.tex @@ -37,6 +37,22 @@ "chorusfont":{ "description": {"english": "Chorus font", "french": "Police des refrains"}, "default": {"default": "i"} + }, +"papersize":{ "description": {"english": "Paper size.", + "french": "Taille du papier."}, + "type": "enum", + "values": {"a4": {"default": "A4"}, + "a5": {"default": "A5"} + }, + "default": {"default":"a4"} + }, +"orientation":{ "description": {"english": "Paper orientation.", + "french": "Orientation du papier."}, + "type": "enum", + "values": {"landscape": {"english": "Landscape", "french": "Paysage" }, + "portrait": {"english": "Portrait", "french": "Portrait" } + }, + "default": {"default":"portrait"} } } (* endvariables *) @@ -46,6 +62,8 @@ (* block preambule *) \usepackage{licence} + +%! Font management \makeatletter \renewcommand{\chorusfont}{% (* for letter in chorusfont *) @@ -76,6 +94,9 @@ (* endfor *) } \makeatother +%! End of font management + +\geometry{((orientation)), ((papersize))paper} (* endblock *) (* block preface *)