|
From: | Marc Hohl |
Subject: | Re: optional transposition triggered by an external file? |
Date: | Tue, 30 Jul 2013 08:46:06 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 |
Am 30.07.2013 02:30, schrieb David Rogers:
Marc Hohl <address@hidden> 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
[Prev in Thread] | Current Thread | [Next in Thread] |