Browse Source

L'exemple fonctionne avec chacun des templateso

Même s'il produit un fichier vide pour layout.tex, ce qui est normal.
pull/22/head
Louis 11 years ago
parent
commit
c89219f19c
  1. 15
      songbook_core/data/examples/example-layout.sb
  2. 15
      songbook_core/data/examples/example-patacrep.sb
  3. 15
      songbook_core/data/examples/example-songs.sb
  4. 5
      songbook_core/data/templates/layout.tex
  5. 12
      songbook_core/data/templates/songs.tex

15
songbook_core/data/examples/example-layout.sb

@ -0,0 +1,15 @@
{
"template" : "layout.tex",
"bookoptions" : [
"importantdiagramonly",
"repeatchords",
"lilypond",
"pictures"
],
"booktype" : "chorded",
"lang" : "french",
"authwords" : {
"sep" : ["and", "et"]
},
"datadir" : "."
}

15
songbook_core/data/examples/example-patacrep.sb

@ -0,0 +1,15 @@
{
"template" : "patacrep.tex",
"bookoptions" : [
"importantdiagramonly",
"repeatchords",
"lilypond",
"pictures"
],
"booktype" : "chorded",
"lang" : "french",
"authwords" : {
"sep" : ["and", "et"]
},
"datadir" : "."
}

15
songbook_core/data/examples/example-songs.sb

@ -0,0 +1,15 @@
{
"template" : "songs.tex",
"bookoptions" : [
"importantdiagramonly",
"repeatchords",
"lilypond",
"pictures"
],
"booktype" : "chorded",
"lang" : "french",
"authwords" : {
"sep" : ["and", "et"]
},
"datadir" : "."
}

5
songbook_core/data/templates/layout.tex

@ -59,6 +59,9 @@
"mainfontsize": {"description": {"en": "Font Size", "fr": "Taille de police"},
"type":"font",
"default":{"default": "10"}
},
"lang": {"description": {"en": "Language", "fr": "Langue"},
"default": {"en": "english", "fr": "french"}
}
}
(% endvariables %)
@ -76,6 +79,8 @@
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\lang{((lang))}
(* endblock songbookpreambule *)
(* block preambule *)

12
songbook_core/data/templates/songs.tex

@ -1,14 +1,3 @@
(% variables %)
{
"languages": {"description": {"en": "List of languages used by songs", "fr": "Liste des langues utilisées par les chansons"},
"default": {"en": "english", "fr": "french"}
},
"lang": {"description": {"en": "Language", "fr": "Langue"},
"default": {"en": "english", "fr": "french"}
}
}
(% endvariables %)
(* extends "layout.tex" *)
(* block songbookpreambule *)
@ -19,7 +8,6 @@
\PassOptionsToPackage{((lang))}{babel}
(* endfor *)
\usepackage[((lang))]{babel}
\lang{((lang))}
\graphicspath{{((datadir))/img/}}
(* endblock *)

Loading…
Cancel
Save