Re: Scheme help? snippet for movement page headers

2017-11-21 Thread Timothy Lanfear
On 21/11/17 05:57, Shevek wrote: Hi Timothy, Where are you defining #'header:piece, inside or outside a \score block? To clarify, I'm talking about using \fromproperty with score-level headers. Saul I put every \score inside its own \bookpart and define #'header:piece in the \bookpart,

Re: Scheme help? snippet for movement page headers

2017-11-20 Thread Werner LEMBERG
> Oh ugh, Nabble wrapped my lines and now it's all ugly. :( One of the reasons to avoid source code lines longer than, say 78 characters... Werner ___ lilypond-user mailing list lilypond-user@gnu.org

Re: Scheme help? snippet for movement page headers

2017-11-20 Thread Shevek
Oh ugh, Nabble wrapped my lines and now it's all ugly. :( -- Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: Scheme help? snippet for movement page headers

2017-11-20 Thread Shevek
Here is a cleaner, updated version of the snippet. It now gives the stencil the extent of the longest table of contents entry. Not ideal, but close enough for practical use. Also added comments and cleaned up variable names. \version "2.18.2" #(define-markup-command (current-toc-section layout

Re: Scheme help? snippet for movement page headers

2017-11-20 Thread Shevek
Hi Timothy, Where are you defining #'header:piece, inside or outside a \score block? To clarify, I'm talking about using \fromproperty with score-level headers. Saul -- Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html ___ lilypond-user

Re: Scheme help? snippet for movement page headers

2017-11-20 Thread Timothy Lanfear
On 20/11/17 08:45, Shevek wrote: Hi all, It would be quite nice to be able to use \fromproperty #'header:piece in oddHeaderMarkup and evenHeaderMarkup, so that the title of the current movement will display in the page header. Unfortunately, after investigating the Lilypond source code, I can't

Scheme help? snippet for movement page headers

2017-11-20 Thread Shevek
Hi all, It would be quite nice to be able to use \fromproperty #'header:piece in oddHeaderMarkup and evenHeaderMarkup, so that the title of the current movement will display in the page header. Unfortunately, after investigating the Lilypond source code, I can't see how to make that work, because