Browse Source

Merge 4150d10d25 into 48040d2215

pull/267/merge
takuyozora 7 months ago
committed by GitHub
parent
commit
2c0730196b
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 70
      patacrep/data/templates/songbook/layout.tex

70
patacrep/data/templates/songbook/layout.tex

@ -25,6 +25,45 @@
%%
%% Generated using Songbook <http://www.patacrep.fr>
(* variables *)
schema:
type: //rec
optional:
display:
type: //arr
contents:
type: //any
of:
- type: //str
value: "Title"
- type: //str
value: "Preface"
- type: //str
value: "Index"
- type: //str
value: "Chords"
- type: //str
value: "Songs"
- type: //str
value: "Postface"
default:
en:
display:
- "Title"
- "Preface"
- "Index"
- "Chords"
- "Songs"
- "Postface"
description:
en:
display: "Ordered 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 +86,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}

Loading…
Cancel
Save