mirror of https://github.com/patacrep/patacrep.git
Engine for LaTeX songbooks
http://www.patacrep.com
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
100 lines
3.3 KiB
100 lines
3.3 KiB
(% variables %)
|
|
{
|
|
"title": {"description": {"en": "Title", "fr": "Titre"},
|
|
"default": {"en": "Guitar songbook", "fr": "Recueil de chansons pour guitare"},
|
|
"mandatory":true
|
|
},
|
|
"author": {"description": {"en": "Author", "fr": "Auteur"},
|
|
"default": {"en": "The Songbook Team", "fr": "L'équipe Songbook"},
|
|
"mandatory":true
|
|
},
|
|
"subtitle": {"description": {"en": "Subtitle", "fr": "Sous-titre"},
|
|
"default": {"default": ""}
|
|
},
|
|
"version":{ "description": {"en": "Version", "fr": "Version"},
|
|
"default": {"default": "undefined"}
|
|
},
|
|
"web": {"description": {"en": "Website", "fr": "Site web"},
|
|
"default": {"default": "http://www.patacrep.com"}
|
|
},
|
|
"mail": {"description": {"en": "Email", "fr": "Adresse électronique"},
|
|
"default": {"default": "crep@team-on-fire.com"}
|
|
},
|
|
"picture": {"description": {"en": "Cover picture", "fr": "Image de couverture"},
|
|
"type": "file",
|
|
"default": {"default": "treble_a"}
|
|
},
|
|
"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}"}
|
|
},
|
|
"footer": {"description": {"en": "Footer", "fr": "Pied de page"},
|
|
"default": {"default": "\\begin{flushright}Generated using Songbook (\\url{http://www.patacrep.com})\\end{flushright}"}
|
|
},
|
|
"titleprefixwords": {"description": {"en": "Ignore some words in the beginning of song titles",
|
|
"fr": "Ignore des mots dans le classement des chansons"}
|
|
},
|
|
"authwords": {"descriptipn": {"en": "Set of options to process author string (LaTeX commands authsepword, authignoreword, authbyword)",
|
|
"fr": "Options pour traiter les noms d'auteurs (commandes LaTeX authsepword, authignoreword, authbyword)"}
|
|
}
|
|
}
|
|
(% endvariables %)
|
|
|
|
(* extends "songs.tex" *)
|
|
(* set indexes = "titleidx,authidx" *)
|
|
|
|
(* block songbookpreambule *)
|
|
(( super() ))
|
|
|
|
\usepackage{chords}
|
|
|
|
\title{((title))}
|
|
\author{((author))}
|
|
\subtitle{((subtitle))}
|
|
(* if version!="unknown" *)
|
|
\version{((version))}
|
|
(* endif *)
|
|
\mail{((mail))}
|
|
\web{((web))}
|
|
\picture{((picture))}
|
|
\picturecopyright{((picturecopyright))}
|
|
\footer{((footer))}
|
|
|
|
\newindex{titleidx}{((filename))_title}
|
|
\newauthorindex{authidx}{((filename))_auth}
|
|
|
|
(* for prefix in titleprefixwords *)
|
|
\titleprefixwords{((prefix))}
|
|
(* endfor*)
|
|
(* for key in titleprefixkeys *)
|
|
(* for word in authwords.key *)
|
|
(* if key=="after" *)
|
|
\authbyword{((word))}
|
|
(* else *)
|
|
\auth((key))word{((word))}
|
|
(* endif *)
|
|
(* endfor *)
|
|
(* endfor*)
|
|
(* endblock *)
|
|
|
|
(* block title *)
|
|
\maketitle
|
|
(* endblock *)
|
|
|
|
(* block index *)
|
|
\showindex{\songindexname}{titleidx}
|
|
\showindex{\authorindexname}{authidx}
|
|
(* if lang==french *)
|
|
\notenamesin{A}{B}{C}{D}{E}{F}{G}
|
|
\notenamesout{La}{Si}{Do}{Ré}{Mi}{Fa}{Sol}
|
|
(* endif *)
|
|
(* endblock *)
|
|
|
|
(* block chords *)
|
|
% list of chords
|
|
\ifchorded
|
|
\phantomsection
|
|
\addcontentsline{toc}{section}{\chordlistname}
|
|
\chords
|
|
\fi
|
|
(* endblock *)
|
|
|
|
|