Jump to content

Footnoted header: Difference between revisions

From LilyPond wiki
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
No edit summary
Line 41: Line 41:
[[Category:Text]]
[[Category:Text]]
[[Category:Titles]]
[[Category:Titles]]
[[Category:Workaround]]
[[Category:Workaround]][[Category:Snippet]]

Revision as of 22:53, 21 November 2025

Footnotes can be created within music expressions and in stand-alone text outside music expressions.

This snippet is a workaround that allows a title, or any other element such as the instrument name, to be footnoted.

\version "2.24"

%% http://lsr.di.unimi.it/LSR/Item?id=918
%=> http://lilypond.1069038.n5.nabble.com/Can-header-items-be-footnoted-td163095.html
%=> http://www.lilypondforum.de/index.php?topic=1777.msg9820#msg9820
% added by Pierre P.Schneider on June 2014.

#(set-default-paper-size "a6")

\header {
  title = "My* Title"
  tagline = #f
}

\markup { 
  \null 
  \footnote 
  \null 
  \italic \concat { "*" \hspace #.3 "Moi, moi, moi" \hspace #.3 "!" } 
  \null 
  \footnote 
  \null 
  \italic \concat { "**" \hspace #.3 "My instrument" \hspace #.3 "!" } 
}

\score {
  \relative c' { c d e f g a b c }
  \layout {
    indent = 20
    \context {
      \Staff
      instrumentName = "Cello**"
    }
  }
}