% for a section that has id xxx for example, % create three macros : \songbookcolorxxx \songbooksectionxxx and \songbooktitlexxx % to be usable in the tex code {{#each sections }} {{#with this}} \newcommand{\songbookcolor{{{id}}}}{ {{{~color}}}} \newcommand{\songbooksection{{id}}}[2]{\basecouplet{\songbookcolor{{id}}}{#1}{#2}} %\newcommand{\songbooksection{{id}}}[2]{\begin{mybox}#1 #2\end{mybox}xxx} \newcommand{\songbooksection{{id}}title}[1]{\basetitle{\songbookcolor{{color}}}{#1}} {{/with}} {{/each}}