Browse Source

Update patacrep.tex

pull/184/head
Oliverpool 9 years ago
parent
commit
fe752dbe15
  1. 16
      patacrep/data/templates/default_songbook.sb.yml
  2. 101
      patacrep/data/templates/patacrep.tex

16
patacrep/data/templates/default_songbook.sb.yml

@ -25,8 +25,20 @@ authors: # Comment sont analysés les auteurs
titles: # Comment sont analysés les titres titles: # Comment sont analysés les titres
prefix: prefix:
- To - The
- Do - Le
- La
- "L'"
- A
- Au
- Ces
- De
- Des
- El
- Les
- Ma
- Mon
- Un
#template: # Des choses spécifiques au template #template: # Des choses spécifiques au template
# latex: # Des choses spécifiques au LaTeX # latex: # Des choses spécifiques au LaTeX

101
patacrep/data/templates/patacrep.tex

@ -19,60 +19,43 @@
%!- https://github.com/patacrep/ %!- https://github.com/patacrep/
(* variables *) (* variables *)
{ schema:
"subtitle": {"description": {"en": "Subtitle", "fr": "Sous-titre"}, type: //rec
"default": {"default": ""} optional:
}, version: //str
"version":{ "description": {"en": "Version", "fr": "Version"}, required:
"default": {"default": "undefined"} subtitle: //str
}, url: //str
"web": {"description": {"en": "Website", "fr": "Site web"}, email: //str
"default": {"default": "http://www.patacrep.com"} picture: //str
}, picturecopyright: //str
"mail": {"description": {"en": "Email", "fr": "Adresse électronique"}, footer: //str
"default": {"default": "crep@team-on-fire.com"} bgcolor:
}, type: //rec
"picture": {"description": {"en": "Cover picture", "fr": "Image de couverture"}, required:
"type": "file", songnumber: //str
"default": {"default": "img/treble_a"} note: //str
}, index: //str
"picturecopyright": {"description": {"en": "Copyright for the cover picture", "fr": "Copyright pour l'image de couverture"},
"default": {"default": "Dbolton \\url{http://commons.wikimedia.org/wiki/User:Dbolton}"} default:
}, subtitle: ""
"footer": {"description": {"en": "Footer", "fr": "Pied de page"}, version: ""
"default": {"default": "Generated using Songbook (\\url{http://www.patacrep.com})"} url: http://www.patacrep.com"
}, email: crep@team-on-fire.com
"songnumberbgcolor": {"description": {"en": "Number Shade", "fr": "Couleur des numéros"}, picture: img/treble_a
"type": "color", picturecopyright: "Dbolton \\url{http://commons.wikimedia.org/wiki/User:Dbolton}"
"default": {"default": "D1E4AE"} footer: "Generated using Songbook (\\url{http://www.patacrep.com})"
}, bgcolor:
"notebgcolor": {"description": {"en": "Note Shade", "fr": "Couleur des notes"}, songnumber: D1E4AE
"type": "color", note: D1E4AE
"default": {"default": "D1E4AE"} index: D1E4AE
},
"indexbgcolor": {"description": {"en": "Index Shade", "fr": "Couleur d'index"},
"type": "color",
"default": {"default": "D1E4AE"}
},
"titleprefixwords": {"description": {"en": "Ignore some words in the beginning of song titles",
"fr": "Ignore des mots dans le classement des chansons"},
"default": {"default": ["The", "Le", "La", "L'", "A", "Au", "Ces", "De",
"Des", "El", "Les", "Ma", "Mon", "Un"]}
}
}
(* endvariables -*) (* endvariables -*)
(*- extends "default.tex" -*) (*- extends "default.tex" -*)
(* block songbookpackages *) (* block songbookpackages *)
%! booktype, bookoptions and instruments are defined in "songs.tex"
\usepackage[ \usepackage[
((booktype)), (* for option in bookoptions *)((option)),
(* for option in bookoptions *)
((option)),
(* endfor *)
(* for instrument in instruments *)
((instrument)),
(* endfor *) (* endfor *)
]{crepbook} ]{crepbook}
(* endblock *) (* endblock *)
@ -91,9 +74,9 @@
\pagestyle{empty} \pagestyle{empty}
\definecolor{SongNumberBgColor}{HTML}{((songnumberbgcolor))} \definecolor{SongNumberBgColor}{HTML}{(( _template["patacrep.tex"].bgcolor.songnumber ))}
\definecolor{NoteBgColor}{HTML}{((notebgcolor))} \definecolor{NoteBgColor}{HTML}{(( _template["patacrep.tex"].bgcolor.note ))}
\definecolor{IndexBgColor}{HTML}{((indexbgcolor))} \definecolor{IndexBgColor}{HTML}{(( _template["patacrep.tex"].bgcolor.index ))}
\renewcommand{\snumbgcolor}{SongNumberBgColor} \renewcommand{\snumbgcolor}{SongNumberBgColor}
\renewcommand{\notebgcolor}{NoteBgColor} \renewcommand{\notebgcolor}{NoteBgColor}
@ -111,13 +94,13 @@
]{hyperref} ]{hyperref}
\subtitle{((subtitle))} \subtitle{(( _template["patacrep.tex"].subtitle ))}
(* if version!="undefined" -*) (* if _template["patacrep.tex"].version -*)
\version{((version))} \version{(( _template["patacrep.tex"].version ))}
(* endif *) (* endif *)
\mail{((mail))} \mail{(( _template["patacrep.tex"].email ))}
\web{((web))} \web{(( _template["patacrep.tex"].url ))}
\picture{((picture))} \picture{(( _template["patacrep.tex"].picture ))}
\picturecopyright{((picturecopyright))} \picturecopyright{(( _template["patacrep.tex"].picturecopyright ))}
\footer{((footer))} \footer{(( _template["patacrep.tex"].footer ))}
(* endblock *) (* endblock *)

Loading…
Cancel
Save