[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
\bookpart mystery
From: |
David Sumbler |
Subject: |
\bookpart mystery |
Date: |
Mon, 04 Jun 2018 16:54:56 +0100 |
In my efforts (largely successful) to find a way easily to control
conditional compilation, I came across this apparent anomaly.
The following two short examples work as one might expect:
%%%%%
\book {
\score { g }
}
%%%%%
%%%%%
var =
\book {
\score { g }
}
\var
%%%%%
Adding a \bookpart to the first also works as expected:
%%%%%
\book {
\bookpart {
\score { g }
}
}
%%%%%
But putting this into a variable thus:
%%%%%
var =
\book {
\bookpart {
\score { g }
}
}
\var
%%%%%
causes parsing errors.
For my better understanding of how LilyPond works, can somebody explain
to me why this happens?
David
- \bookpart mystery,
David Sumbler <=