Jump to content

Demonstrating all \header fields: Difference between revisions

From LilyPond wiki
Improve
mNo edit summary
 
Line 1: Line 1:
A demonstration of all header fields that LilyPond defines by default.  Thanks to setting <code>print-all-headers</code> to <code>#t</code>, much more fields as usual are displayed, indicating the hiearchy of <code>\header</code> blocks.
A demonstration of all header fields that LilyPond defines by default.  Thanks to setting <code>print-all-headers</code> to <code>#t</code>, much more fields as usual are displayed, indicating the hierarchy of <code>\header</code> blocks.


<lilypond version="2.24" full>
<lilypond version="2.24" full>

Latest revision as of 05:14, 11 January 2026

A demonstration of all header fields that LilyPond defines by default. Thanks to setting print-all-headers to #t, much more fields as usual are displayed, indicating the hierarchy of \header blocks.

\version "2.24"

\paper {
  #(set-paper-size "a6" 'landscape)
  print-all-headers = ##t
}

\book {
  \header {
    title = "title"
    subtitle = "subtitle"
    composer = "composer"
    arranger = "arranger"
    instrument = "instrument"
    meter = "meter"
    opus = "opus"
    piece = "piece"
    poet = "poet"
    copyright = "copyright"
    tagline = "tagline"
  }

  \bookpart {
    \score {
      \relative c'' { c1 | c | c | c }

      \header {
        title = "localtitle"
        subtitle = "localsubtitle"
        composer = "localcomposer"
        arranger = "localarranger"
        instrument = "localinstrument"
        meter = "localmeter"
        opus = "localopus"
        piece = "localpiece"
        poet = "localpoet"
        copyright = "localcopyright"
        tagline = "localtagline"
      }
    }
  }
}