Next: Font selection, Previous: Nested scores, Up: Text
The following commands can all be used inside \markup { }.
\arrow-head axis (integer) direction (direction) filled (boolean)\beam width (number) slope (number) thickness (number)\bigger arg (markup)\bold arg (markup)\box arg (markup)thickness,
box-padding and font-size properties to determine line
thickness and padding around the markup.
\bracket arg (markup)\bracketed-y-column indices (list) args (list of markups)\caps arg (markup)\center-align args (list of markups)args in a centered column.
\char num (integer)\char #65 produces the
letter 'A'.
\circle arg (markup)thickness,
circle-padding and font-size properties to determine line
thickness and padding around the markup.
\column args (list of markups)baseline-skip determines the space between each markup in args.
\combine m1 (markup) m2 (markup)\dir-column args (list of markups)#'direction layout property.
\doubleflat\doublesharp\draw-circle radius (number) thickness (number) fill (boolean)\dynamic arg (markup)\epsfile axis (number) size (number) file-name (string)\fill-line markups (list of markups)\filled-box xext (pair of numbers) yext (pair of numbers) blot (number)
\filled-box #'(-.3 . 1.8) #'(-.3 . 1.8) #0
create a box extending horizontally from -0.3 to 1.8 and
vertically from -0.3 up to 1.8, with corners formed from a
circle of diameter 0 (ie sharp corners).
\finger arg (markup)\flat\fontCaps arg (markup)font-shape to caps.
\fontsize increment (number) arg (markup)\fraction arg1 (markup) arg2 (markup)\fret-diagram definition-string (string)\markup \fret-diagram #"s:0.75;6-x;5-x;4-o;3-2;2-3;1-2;"
for fret spacing 3/4 of staff space, D chord diagram
Syntax rules for definition-string:
\fret-diagram-terse definition-string (string)Example
\markup \fret-diagram-terse #"x;x;o;2;3;2;"
for a D chord diagram.
Syntax rules for definition-string:
\fret-diagram-verbose marking-list (list)For example,
\markup \fret-diagram-verbose #'((mute 6) (mute 5) (open 4)
(place-fret 3 2) (place-fret 2 3) (place-fret 1 2))
will produce a standard D chord diagram without fingering indications.
Possible elements in marking-list:
\fromproperty symbol (symbol)\general-align axis (integer) dir (number) arg (markup)\halign dir (number) arg (markup)-1, then it is
left-aligned, while +1 is right. Values in between interpolate
alignment accordingly.
\hbracket arg (markup)\hcenter-in length (number) arg (markup)\hcenter arg (markup)arg to its X center.
\hspace amount (number) \markup { A \hspace #2.0 B }
will put extra space between A and B, on top of the space that is
normally inserted before elements on a line.
\huge arg (markup)\italic arg (markup)font-shape for arg.
\justify-field symbol (symbol)\justify args (list of markups)\override #'(line-width . X) to set line-width, where X
is the number of staff spaces.
\justify-string arg (string)\large arg (markup)\left-align arg (markup)\line args (list of markups)word-space
determines the space between each markup in args.
\lookup glyph-name (string)\lower amount (number) arg (markup)\raise.
\magnify sz (number) arg (markup) A \magnify #1.1 { A } A
Note: magnification only works if a font-name is explicitly selected.
Use \fontsize otherwise.
\markalphabet num (integer)\markletter num (integer)\medium arg (markup)\musicglyph glyph-name (string)\musicglyph
#"accidentals.0" will select the natural sign from the music font.
See The Feta font for a complete listing of the possible glyphs.
\natural\normal-size-sub arg (markup)\normal-size-super arg (markup)\normal-text arg (markup)\normalsize arg (markup)\note-by-number log (number) dot-count (number) dir (number)\note duration (string) dir (number)\note #"4." #-0.75 creates a dotted quarter note, with
a shortened down stem.
\null\number arg (markup)number, which yields the font used for
time signatures and fingerings. This font only contains numbers and
some punctuation. It doesn't have any letters.
\on-the-fly procedure (symbol) arg (markup)\override new-prop (pair) arg (markup)
\override #'(font-family . married) "bla"
\pad-around amount (number) arg (markup)\pad-markup padding (number) arg (markup)\pad-to-box x-ext (pair of numbers) y-ext (pair of numbers) arg (markup)\pad-x amount (number) arg (markup)\postscript str (string)-f.
For the TeX backend, the following string prints a rotated text
0 0 moveto /ecrm10 findfont
1.75 scalefont setfont 90 rotate (hello) show
The magical constant 1.75 scales from LilyPond units (staff spaces) to TeX dimensions.
For the postscript backend, use the following
gsave /ecrm10 findfont
10.0 output-scale div
scalefont setfont 90 rotate (hello) show grestore
\put-adjacent arg1 (markup) axis (integer) dir (direction) arg2 (markup)\raise amount (number) arg (markup)\lower.
c1^\markup { C \small \raise #1.0 \bold { "9/7+" }}
The argument to \raise is the vertical displacement amount,
measured in (global) staff spaces. \raise and \super
raise objects in relation to their surrounding markups.
If the text object itself is positioned above or below the staff, then
\raise cannot be used to move it, since the mechanism that
positions it next to the staff cancels any shift made with
\raise. For vertical positioning, use the padding
and/or extra-offset properties.
\right-align arg (markup)\roman arg (markup)roman.
\rotate ang (number) arg (markup)\sans arg (markup)\score score (unknown)\semiflat\semisharp\sesquiflat\sesquisharp\sharp\simple str (string)\markup { foo } is equivalent with
\markup { \simple #"foo" }.
\slashed-digit num (integer)\small arg (markup)\smallCaps text (markup)text, which should be a string, to small caps.
\markup \smallCaps "Text between double quotes"
\smaller arg (markup)\stencil stil (unknown)\strut\sub arg (markup)\super arg (markup)Raising and lowering texts can be done with \super and
\sub:
c1^\markup { E "=" mc \super "2" }
\teeny arg (markup)\text arg (markup)\tied-lyric str (string)\tiny arg (markup)\translate offset (pair of numbers) arg (markup) A \translate #(cons 2 -3) { B C } D
This moves `B C' 2 spaces to the right, and 3 down, relative to its
surroundings. This command cannot be used to move isolated scripts
vertically, for the same reason that \raise cannot be used for
that.
\translate-scaled offset (pair of numbers) arg (markup)font-size.
\transparent arg (markup)\triangle filled (boolean)\typewriter arg (markup)font-family typewriter for arg.
\upright arg (markup)upright. This is the opposite of italic.
\vcenter arg (markup)arg to its Y center.
\verbatim-file name (string)\whiteout arg (markup)\with-color color (list) arg (markup)\with-dimensions x (pair of numbers) y (pair of numbers) arg (markup)\with-url url (string) arg (markup)\wordwrap-field symbol (symbol)\wordwrap args (list of markups)\override #'(line-width . X) to set
line-width, where X is the number of staff spaces.
\wordwrap-string arg (string)Next: Font selection, Previous: Nested scores, Up: Text
This page is for LilyPond-2.10.33 (stable-branch).