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.
53 lines
1.1 KiB
53 lines
1.1 KiB
(* if lang is defined -*)
|
|
\selectlanguage{(( lang2babel(lang) ))}
|
|
(* endif *)
|
|
|
|
(*- if metadata.columns is defined *)
|
|
\songcolumns{(( metadata.columns ))}
|
|
(* endif *)
|
|
|
|
\beginsong{
|
|
(*- for title in titles -*)
|
|
(( title ))
|
|
(*- if not loop.last -*)
|
|
\\
|
|
(* endif *)
|
|
(* endfor -*)
|
|
}[
|
|
by={
|
|
(* for author in authors *)
|
|
(( author[1] )) (( author[0] ))
|
|
(*- if not loop.last -*)
|
|
,
|
|
(* endif *)
|
|
(* endfor *)
|
|
},
|
|
(* for key in ['album', 'copyright'] *)
|
|
(* if key in metadata *)
|
|
(( key ))={(( metadata[key] ))},
|
|
(* endif *)
|
|
(* endfor *)
|
|
(* if 'cover' in metadata *)
|
|
(* block cover *)
|
|
(* set cover = metadata["cover"].argument|search_image|path2posix *)
|
|
(* if cover *)
|
|
cover={(( cover ))},
|
|
(* endif *)
|
|
(* endblock *)
|
|
(* endif *)
|
|
(* for key in metadata.morekeys *)
|
|
(( key.keyword ))={(( key.argument ))},
|
|
(* endfor *)
|
|
]
|
|
|
|
(* if (metadata.cover is defined) *)
|
|
\cover
|
|
(* endif *)
|
|
|
|
(*- for chord in metadata['define'] -*)
|
|
(( render(chord) ))
|
|
(* endfor *)
|
|
|
|
(* include 'song_body' *)
|
|
|
|
\endsong
|
|
|