4

I'm trying to add some text to mark the sections in the score, and I'm doing this with the \sectionLabel command. The following snippet doesn't seem to work though; no text appears at all. What am I missing?

\version "2.22.1"
\include "lilypond-book-preamble.ly"                                                                         

\score {
    \relative c'{
    \sectionLabel "Verse"
    e e e2 | e4 e e2 | e4 g c, d | e1 |
    }
}

I'm running GNU LilyPond 2.22.1 together with plain latex, installed on MacOS through homebrew.

1 Answer 1

5

The command \section and \sectionLabel are new. These commands don't exist in v2.22. You need to be running v2.23 for these command to work.

One way to tell this is by comparing these pages of the documentation:

The v2.22 page doesn't mention \sectionLabels at all, while the v2.23 page does.


I'm running v2.23 and your scrip works fine.


One workaround (if you don't want to upgrade to v2.23) is to change \sectionLabel "Verse" to \mark "Verse". The output won't be exactly the same, but it's very similar.

1
  • Thanks! I'll stick to the stable version, while learning the basics.
    – Antonius
    Commented Apr 3, 2022 at 2:08

Not the answer you're looking for? Browse other questions tagged or ask your own question.