|
From: | Urs Liska |
Subject: | Re: Compile twice with different includes |
Date: | Fri, 15 Feb 2013 11:40:12 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 |
After a few test I have one further
question.
I managed to tweak your functions to my needs (i.e. make it _less_ generic, because I need it for a specific purpose). Attached you'll find my version of the function with example. I created a function that only takes the \book as its argument, then processes it twice, assigning different first pages each. While this actually does what I want I would like to make the input structure still more simple by passing the \score instead of the \book to the function. What I'm actually doing is: mybook = \book { \include "file-containing-score-block.ily" } \writeBookOddEven #mybookwhich is somewhat redundant. What I would like to write is: \writeBookOddEven \include "file-containing-score-block.ily" (or - slightly more generic: \writeBookOddEven \score { ... } Probably my problem is really tiny, but I can't find the
solution because the documentation of the ly:... functions isn't
really helpful. Attached is my attempt (writeScoreOddEven.ly) with comments on
where I assume changes to be done. Best Hello Urs, |
writeBookOddEven.ly
Description: Text Data
writeScoreOddEven.ly
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |