[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

label and page-ref within music

From: Jan-Peter Voigt
Subject: label and page-ref within music
Date: Fri, 14 Jan 2011 14:27:58 +0100

Hello List,

I stumbled across a thing with label and page-ref.
Labels are used to create the table of contents and I use them in my little 
footnote snippet ( )
If the label is created on a barline, everything is fine. if it is created 
somewhere within  a measure, the page is not found anymore. I show this with 
\tocItem, because its a short snippet:

\markuplines \table-of-contents

\relative c' {
  \time 4/4
  \tocItem \markup { "One" } c d % page 1
  \tocItem \markup { "Two" } e f % page not found
  \time 3/4
  \tocItem \markup { "Three" } g a b c % page one
  \tocItem \markup { "Four" } r2 % page not found

\version "2.13.46"
I tested it with stable (2.12.3) and unstable (2.13.46) on Linux and Mac.
In my little snippet I create, like the tocItem command, a label-event in 
;; define label and text before this
(make-music 'EventChord 'page-marker #t 'page-label label 
  'elements (list
    (make-music 'LabelEvent 'page-label label)
    (make-music 'TextScriptEvent 'direction dir 'text (markup text))
When I later try to fetch the page-number from the lable-table 
(ly:output-def-lookup layout 'label-page-table), the table does not contain an 
entry label if it was *not* created on a barline.
What do you think about this?

I post this to user and devel, so if there is a solution or explanation let me 
know, if this is a bug discuss it for the bug-tracker.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]