Previous: Text marks, Up: Writing text


Separate text

A \markup block can exist by itself, outside of any any \score block, as a “top-level expression”. This syntax is described in File structure.

     
     \markup {
       Tomorrow, and tomorrow, and tomorrow...
     }

[image of music]

This allows printing text separately from the music, which is particularly useful when the input file contains several music pieces, as described in Multiple scores in a book.

     
     \score {
       c'1
     }
     \markup {
       Tomorrow, and tomorrow, and tomorrow...
     }
     \score {
       c'1
     }

[image of music]

Separate text blocks can be spread over multiple pages, making it possible to print text documents or books entirely within LilyPond. This feature, and the specific syntax it requires, are described in Multi-page markup.

Predefined commands

\markup, \markuplines.

Selected Snippets

Stand-alone two-column markup

Stand-alone text may be arranged in several columns using \markup commands:

     
     \markup {
      \fill-line {
       \hspace #1.0
       \column {
        \line {"O sacrum convivium" }
        \line {"in quo Christus sumitur," }
        \line {"recolitur memoria passionis ejus," }
        \line {"mens impletur gratia," }
        \line {"futurae gloriae nobis pignus datur." }
        \line {"Amen."}
       }
       \hspace #2
       \column {
        \line { \italic {"O sacred feast"} }
        \line { \italic {"in which Christ is received,"} }
        \line { \italic {"the memory of His Passion is renewed,"} }
        \line { \italic {"the mind is filled with grace," } }
        \line { \italic {"and a pledge of future glory is given to us." }}
        \line { \italic {"Amen."}}
       }
       \hspace #1.0
      }
     }
     

[image of music]

See also

Notation Reference: Formatting text, File structure, Multiple scores in a book, Multi-page markup.

Snippets: Text.

Internals Reference: TextScript.

Other languages: espaƱol, deutsch.