Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
LilyPond wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Of the ubiquity of markup objects
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
Text objects are entered either as simple strings between double quotes or as <code>\markup</code> blocks that can accept a variety of advanced text formatting and graphical enhancements. As such, markup blocks may be used: * in any <code>TextScript</code> object (attached to notes with <code>-</code>, <code>^</code> or <code>_</code>), * any <code>TextMark</code> introduced with the <code>\textMark</code> keyword, or <code>\textEndMark</code> command, or other similar objects such as MetronomeMark introduced with <code>\tempo</code>, * as standalone markup blocks, entered at the top level outside of any <code>\score</code> block, * in any definition inside the <code>\header</code> block (e.g. title, subtitle, composer) or in some variables defined inside the <code>\paper</code> block such as <code>evenHeaderMarkup</code> for page numbers. <code>\markup</code> may additionally be used for lyrics, in chord names, and as dynamics. In fact, it is possible to use <code>\markup</code> to customize the appearance of virtually any object, as demonstrated in this example using various methods. <lilypond version="2.24.0" full> %% Thanks to Aaron Hill https://lists.gnu.org/archive/html/lilypond-user/2019-01/msg00437.html \paper { paper-width = 8\cm paper-height = 8\cm } \header { title = \markup "Header" tagline = \markup "(tagline)" } \markup "Top-level markup" dyn = #(make-dynamic-script #{ \markup \text "DynamicText" #}) \score { << \new ChordNames \with { majorSevenSymbol = \markup "majorSevenSymbol" } \chordmode { c1:maj7 } \new Staff { \tempo \markup "MetronomeMark" \textMark "TextMark" \once \override TupletNumber.text = \markup "TupletNumber" \tuplet 3/2 { \once \override NoteHead.stencil = #ly:text-interface::print \once \override NoteHead.text = \markup \lower #0.5 "NoteHead" c''8^\markup "TextScript" \once \override Rest.stencil = #(lambda (grob) (grob-interpret-markup grob #{ \markup "Rest" #})) r4 } } \new Lyrics \lyricmode { \markup "LyricText" 1 } \new Dynamics { s1\dyn } >> } </lilypond> [[Category:Text]] [[Category:Included in the official documentation]]
Summary:
Please note that all contributions to LilyPond wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Meta:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Of the ubiquity of markup objects
Add topic