Browse Source

Remolacement de l'option de template "mainfontsize" par "classoptions"

pull/44/head
Louis 11 years ago
parent
commit
8048027ebd
  1. 12
      songbook_core/data/templates/default.tex
  2. 11
      songbook_core/data/templates/layout.tex

12
songbook_core/data/templates/default.tex

@ -21,6 +21,12 @@
(* variables *) (* variables *)
{ {
"classoptions": {"description": {"english": "LaTeX class options", "french": "Options de la classe LaTeX"},
"type": "flag",
"join": ",",
"mandatory": true,
"default": {"default":[]}
},
"title": {"description": {"english": "Title", "french": "Titre"}, "title": {"description": {"english": "Title", "french": "Titre"},
"default": {"english": "Guitar songbook", "french": "Recueil de chansons pour guitare"}, "default": {"english": "Guitar songbook", "french": "Recueil de chansons pour guitare"},
"mandatory":true "mandatory":true
@ -69,6 +75,12 @@
(* extends "songs.tex" *) (* extends "songs.tex" *)
(* set indexes = "titleidx,authidx" *) (* set indexes = "titleidx,authidx" *)
(* block documentclass *)
\documentclass[(* for option in classoptions *)
((option)),
(* endfor *)]{article}
(* endblock *)
(* block songbookpreambule *) (* block songbookpreambule *)
(( super() )) (( super() ))

11
songbook_core/data/templates/layout.tex

@ -26,17 +26,8 @@
%% %%
%% Generated using Songbook <http://www.patacrep.com> %% Generated using Songbook <http://www.patacrep.com>
(* variables *)
{
"mainfontsize": {"description": {"english": "Font Size", "french": "Taille de police"},
"type":"font",
"default":{"default": "10pt"}
}
}
(* endvariables *)
(* block documentclass *) (* block documentclass *)
\documentclass[((mainfontsize))]{article} \documentclass{article}
(* endblock *) (* endblock *)
(* block songbookpackages *) (* block songbookpackages *)

Loading…
Cancel
Save