Next: , Previous: Overview of text entry, Up: Writing text


1.8.1.2 Text scripts

It is possible to place arbitrary strings of text or Text markup with note-"text".

INSERT EXAMPLE

More complex formatting may also be added to a note by using the \markup command, as described in Text markup.

     
     c'4^\markup { bla \bold bla }

[image of music]

Predefined commands

\textLengthOn, \textLengthOff.

Selected Snippets

By default, these indications do not influence the note spacing. However, by using the command \textLengthOn, the widths will be taken into account:

     
     c4^"this does not affect spacing" \textLengthOn c4_"whereas this does" c4

[image of music]

After having used such a command, to go back to the default behavior and prevent text from influencing spacing, use \textLengthOff.

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

See also

Notation Reference: Text markup.

Snippets: Text

Internals Reference: TextScript.


Next: , Previous: Overview of text entry, Up: Writing text

This page is for LilyPond-2.11.40 (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.