I tried this: @macro appendixBarLineDemo{BARTYPE} @code{"\BARTYPE\"} @lilypond[notime,relative=2] \bar "\BARTYPE\" b4 \bar "\BARTYPE\" b4 \bar "\BARTYPE\" @end lilypond @end macro
but with \BARTYPE\ in the lilypond section, no staff appears in the PDF. I guess I need some additional quoting — or unquoting. Is there a way to make this work or am I stuck writing out the bar type 4 times per type? Thanks, — Dan