Next: , Up: Writing text


1.8.1.1 Text scripts

Simple ‘quoted text’ indications may be added to a score, as demonstrated in the following example. Such indications can be manually placed above or below the staff, using the syntax described in Direction and placement.

     
     d8^"pizz." e f g a4-"scherz." f

[image of music]

This syntax is actually a shorthand; more complex text formatting may be added to a note by explicitly using a \markup block, as described in Formatting text.

     
     d8^\markup { \italic pizz. } e f g 
     a4_\markup { \tiny scherz. \bold molto } f

[image of music]

By default, text indications do not influence the note spacing. However, their widths can be taken into account: in the following example, the first text string does not affect spacing, whereas the second one does.

     
     d8^"pizz." e f g
     \textLengthOn
     a4_"scherzando" f

[image of music]

Predefined commands

\textLengthOn, \textLengthOff

See also

Notation Reference: Formatting text, Direction and placement.

Snippets: Text.

Internals Reference: TextScript.

Known issues and warnings

Checking to make sure that text scripts and lyrics are within the margins is a relatively large computational task. To speed up processing, LilyPond does not perform such calculations by default; to enable it, use

\override Score.PaperColumn #'keep-inside-line = ##t

This page is for LilyPond-2.11.58 (development-branch).

Report errors to http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs.

Your suggestions for the documentation are welcome.

Other languages: français, español.