| [ << Notation manual tables ] | [Racine][Table des matières][Index][ ? ] | [ Cheat sheet >> ] | ||
| [ < Font ] | [ Plus haut: Text markup commands ] | [ Graphic > ] | ||
B.8.2 Align
-
\center-alignarg (markup) -
Align
argto its X center.\markup { \column { one \center-align two three } } -
\center-columnargs (list of markups) -
Put
argsin a centered column.\markup { \center-column { one two three } }Used properties:
-
baseline-skip
-
-
\columnargs (list of markups) -
Stack the markups in args vertically. The property
baseline-skipdetermines the space between markups in args.\markup { \column { one two three } }Used properties:
-
baseline-skip
-
-
\combinearg1 (markup) arg2 (markup) -
Print two markups on top of each other.
Note:
\combinecannot take a list of markups enclosed in curly braces as an argument; the follow example will not compile:\combine { a list }\markup { \fontsize #5 \override #'(thickness . 2) \combine \draw-line #'(0 . 4) \arrow-head #Y #DOWN ##f } -
\concatargs (list of markups) -
Concatenate args in a horizontal line, without spaces in between. Strings and simple markups are concatenated on the input level, allowing ligatures. For example,
\concat { "f" \simple #"i" }is equivalent to"fi".\markup { \concat { one two three } } -
\dir-columnargs (list of markups) -
Make a column of args, going up or down, depending on the setting of the
directionlayout property.\markup { \override #`(direction . ,UP) { \dir-column { going up } } \hspace #1 \dir-column { going down } \hspace #1 \override #'(direction . 1) { \dir-column { going up } } }Used properties:
-
baseline-skip -
direction
-
-
\fill-lineargs (list of markups) -
Put markups in a horizontal line of width line-width. The markups are spaced or flushed to fill the entire line. If there are no arguments, return an empty stencil.
\markup { \column { \fill-line { Words evenly spaced across the page } \null \fill-line { \line { Text markups } \line { \italic { evenly spaced } } \line { across the page } } } }Used properties:
-
line-width(#f) -
word-space(1) -
text-direction(1)
-
-
\general-alignaxis (integer) dir (number) arg (markup) -
Align arg in axis direction to the dir side.
\markup { \column { one \general-align #X #LEFT two three \null one \general-align #X #CENTER two three \null \line { one \general-align #Y #UP two three } \null \line { one \general-align #Y #3.2 two three } } } -
\haligndir (number) arg (markup) -
Set horizontal alignment. If dir is
-1, then it is left-aligned, while+1is right. Values in between interpolate alignment accordingly.\markup { \column { one \halign #LEFT two three \null one \halign #CENTER two three \null one \halign #RIGHT two three \null one \halign #-5 two three } } -
\hcenter-inlength (number) arg (markup) -
Center arg horizontally within a box of extending length/2 to the left and right.
\new StaffGroup << \new Staff { \set Staff.instrumentName = \markup { \hcenter-in #12 Oboe } c''1 } \new Staff { \set Staff.instrumentName = \markup { \hcenter-in #12 Bassoon } \clef tenor c'1 } >> -
\hspaceamount (number) -
Create an invisible object taking up horizontal space amount.
\markup { one \hspace #2 two \hspace #8 three } -
\justify-fieldsymbol (symbol) -
Justify the data which has been assigned to symbol.
\header { title = "My title" description = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat." } \paper { bookTitleMarkup = \markup { \column { \fill-line { \fromproperty #'header:title } \null \justify-field #'header:description } } } \markup { \null } -
\justifyargs (list of markups) -
Like
\wordwrap, but with lines stretched to justify the margins. Use\override #'(line-width . X)to set the line width; X is the number of staff spaces.\markup { \justify { Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. } }Used properties:
-
text-direction(1) -
word-space -
line-width(#f) -
baseline-skip
-
-
\justify-stringarg (string) -
Justify a string. Paragraphs may be separated with double newlines
\markup { \override #'(line-width . 40) \justify-string #"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum" }Used properties:
-
text-direction(1) -
word-space -
line-width -
baseline-skip
-
-
\left-alignarg (markup) -
Align arg on its left edge.
\markup { \column { one \left-align two three } } -
\left-columnargs (list of markups) -
Put
argsin a left-aligned column.\markup { \left-column { one two three } }Used properties:
-
baseline-skip
-
-
\lineargs (list of markups) -
Put args in a horizontal line. The property
word-spacedetermines the space between markups in args.\markup { \line { one two three } }Used properties:
-
text-direction(1) -
word-space
-
-
\loweramount (number) arg (markup) -
Lower arg by the distance amount. A negative amount indicates raising; see also
\raise.\markup { one \lower #3 two three } -
\pad-aroundamount (number) arg (markup) -
Add padding amount all around arg.
\markup { \box { default } \hspace #2 \box { \pad-around #0.5 { padded } } } -
\pad-markupamount (number) arg (markup) -
Add space around a markup object.
\markup { \box { default } \hspace #2 \box { \pad-markup #1 { padded } } } -
\pad-to-boxx-ext (pair of numbers) y-ext (pair of numbers) arg (markup) -
Make arg take at least x-ext, y-ext space.
\markup { \box { default } \hspace #4 \box { \pad-to-box #'(0 . 10) #'(0 . 3) { padded } } } -
\pad-xamount (number) arg (markup) -
Add padding amount around arg in the X direction.
\markup { \box { default } \hspace #4 \box { \pad-x #2 { padded } } } -
\put-adjacentaxis (integer) dir (direction) arg1 (markup) arg2 (markup) -
Put arg2 next to arg1, without moving arg1.
-
\raiseamount (number) arg (markup) -
Raise arg by the distance amount. A negative amount indicates lowering, see also
\lower.The argument to
\raiseis the vertical displacement amount, measured in (global) staff spaces.\raiseand\superraise objects in relation to their surrounding markups.If the text object itself is positioned above or below the staff, then
\raisecannot 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 thepaddingand/orextra-offsetproperties.\markup { C \small \bold \raise #1.0 9/7+ } -
\right-alignarg (markup) -
Align arg on its right edge.
\markup { \column { one \right-align two three } } -
\right-columnargs (list of markups) -
Put
argsin a right-aligned column.\markup { \right-column { one two three } }Used properties:
-
baseline-skip
-
-
\rotateang (number) arg (markup) -
Rotate object with ang degrees around its center.
\markup { default \hspace #2 \rotate #45 \line { rotated 45° } } -
\translateoffset (pair of numbers) arg (markup) -
Translate arg relative to its surroundings. offset is a pair of numbers representing the displacement in the X and Y axis.
\markup { * \translate #'(2 . 3) \line { translated two spaces right, three up } } -
\translate-scaledoffset (pair of numbers) arg (markup) -
Translate arg by offset, scaling the offset by the
font-size.\markup { \fontsize #5 { * \translate #'(2 . 3) translate \hspace #2 * \translate-scaled #'(2 . 3) translate-scaled } }Used properties:
-
font-size(0)
-
-
\vcenterarg (markup) -
Align
argto its Y center.\markup { one \vcenter two three } -
\wordwrap-fieldsymbol (symbol) -
Wordwrap the data which has been assigned to symbol.
\header { title = "My title" description = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat." } \paper { bookTitleMarkup = \markup { \column { \fill-line { \fromproperty #'header:title } \null \wordwrap-field #'header:descr } } } \markup { \null } -
\wordwrapargs (list of markups) -
Simple wordwrap. Use
\override #'(line-width . X)to set the line width, where X is the number of staff spaces.\markup { \wordwrap { Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. } }Used properties:
-
text-direction(1) -
word-space -
line-width(#f) -
baseline-skip
-
-
\wordwrap-stringarg (string) -
Wordwrap a string. Paragraphs may be separated with double newlines.
\markup { \override #'(line-width . 40) \wordwrap-string #"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum" }Used properties:
-
text-direction(1) -
word-space -
line-width -
baseline-skip
-
| [ << Notation manual tables ] | [Racine][Table des matières][Index][ ? ] | [ Cheat sheet >> ] | ||
| [ < Font ] | [ Plus haut: Text markup commands ] | [ Graphic > ] | ||