Browse Source

Ajout d'options pour la taille et l'orientation du papier

accords
Luthaf 11 years ago
parent
commit
ed421698ab
  1. 21
      templates/data.tex

21
templates/data.tex

@ -37,6 +37,22 @@
"chorusfont":{ "description": {"english": "Chorus font", "chorusfont":{ "description": {"english": "Chorus font",
"french": "Police des refrains"}, "french": "Police des refrains"},
"default": {"default": "i"} "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 *) (* endvariables *)
@ -46,6 +62,8 @@
(* block preambule *) (* block preambule *)
\usepackage{licence} \usepackage{licence}
%! Font management
\makeatletter \makeatletter
\renewcommand{\chorusfont}{% \renewcommand{\chorusfont}{%
(* for letter in chorusfont *) (* for letter in chorusfont *)
@ -76,6 +94,9 @@
(* endfor *) (* endfor *)
} }
\makeatother \makeatother
%! End of font management
\geometry{((orientation)), ((papersize))paper}
(* endblock *) (* endblock *)
(* block preface *) (* block preface *)

Loading…
Cancel
Save