diff --git a/patacrep/data/templates/songbook/layout.tex b/patacrep/data/templates/songbook/layout.tex index 19817749..1355e9de 100644 --- a/patacrep/data/templates/songbook/layout.tex +++ b/patacrep/data/templates/songbook/layout.tex @@ -25,6 +25,31 @@ %% %% Generated using Songbook +(* variables *) +schema: + type: //rec + optional: + display: + type: //arr + contents: //str +default: + en: + display: + - "Title" + - "Preface" + - "Index" + - "Chords" + - "Songs" + - "Postface" +description: + en: + display: "Ordinate list of section to display" + fr: + display: "Liste ordonnée des sections à afficher" +(* endvariables -*) + +(*- set layout_var = _template["layout.tex"] -*) + \makeatletter \def\input@path{ % (* for dir in _datadir|iter_datadirs *) @@ -47,25 +72,30 @@ (* block preambule *) (* endblock preambule *) -\begin{document} - +\gdef\LayoutTitle{% (* block title *) -(* endblock *) - +(* endblock *)} +\gdef\LayoutPreface{% (* block preface *) -(* endblock *) - +(* endblock *)} +\gdef\LayoutIndex{% (* block index *) -(* endblock *) - +(* endblock *)} +\gdef\LayoutChords{% (* block chords *) -(* endblock *) - +(* endblock *)} +\gdef\LayoutSongs{% (* block songs *) -(* endblock *) - +(* endblock *)} +\gdef\LayoutPostface{% (* block postface *) -(* endblock *) +(* endblock *)} + +\begin{document} + +(* for block in layout_var.display *) +\Layout(( block )) +(* endfor *) \end{document}