Jump to content

Footnoted header: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
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
Line 3: Line 3:
This snippet is a workaround that allows a title, or any other element such as the instrument name, to be footnoted.
This snippet is a workaround that allows a title, or any other element such as the instrument name, to be footnoted.


<lilypond version="2.24.0" full>
<lilypond version="2.24" full>
%% http://lsr.di.unimi.it/LSR/Item?id=918
%% http://lsr.di.unimi.it/LSR/Item?id=918
%=> http://lilypond.1069038.n5.nabble.com/Can-header-items-be-footnoted-td163095.html
%=> http://lilypond.1069038.n5.nabble.com/Can-header-items-be-footnoted-td163095.html

Revision as of 18:49, 16 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**"
    }
  }
}