Am 30.07.2013 02:30, schrieb David Rogers:
Marc Hohl <[email protected]> writes:[...] I need a way to define an optional variable that controls (if defined) the transposition so I can say, for example: \begin{appendix} \chapter{For Bb instruments} \begin{lilypond} #(define transposeTo d) \include{A.ly} \end{lilypond} \begin{lilypond} #(define transposeTo d) \include{B.ly} \end{lilypond} ... \end{appendix}I've never tried this. Is it even possible to define things in the latex file that are then parsed by Lilypond? If it is possible, perhaps adding a special line inside each of A.ly, B.ly, and C.ly, which contains \transpose C \transposeTo .
Yes, that's the plan. That looks to me [if it was going to work at
all] as if your .ly files would then refuse to work if you ever forgot to define \transposeTo in your latex file - but maybe it's worth it.
That's exactly what I want to avoid. My idea boils down to allow for something like transposeTo = transposeTo OR c which is Lua-like. Is something similar possible in scheme? Marc _______________________________________________ lilypond-user mailing list [email protected] https://lists.gnu.org/mailman/listinfo/lilypond-user
