MarcM <m...@mouries.net> writes: > i took another look at the tag documentation and I was able to have a score > printed only under a certain condition with tag. > > music = \relative c' { > \tag #'dontPrintScore > { > c e g c > } > } > > \score { > \keepWithTag #'inFunctions \music > } > > This works. This only inconvenient is that i will have to tag all the mini > scores i have in my library. > Any other idea for a global #IFDEF like condition?
You could try to conditionalize on (ly:parser-output-name parser), and you can use something like #(if (equal (ly:parser-output-name parser) "mylibrary") (ly:oarser-include-string parser "\\score { \\music }")) -- David Kastrup _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user