| [ << Tables du manuel de notation ] | [Racine][Table des matières][Index] | [ Aide-mémoire >> ] |
| [ < Font ] | [Plus haut: Commandes pour markup ] | [ Graphic > ] |
A.11.2 Align
-
\center-alignarg (markup) -
Align
argto its X center.\markup { \column { one \center-align two three } } -
\center-columnargs (markup list) -
Put
argsin a centered column.\markup { \center-column { one two three } }Used properties:
-
baseline-skip
-
-
\columnargs (markup list) -
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; for this purpose use\overlayinstead.\markup { \fontsize #5 \override #'(thickness . 2) \combine \draw-line #'(0 . 4) \arrow-head #Y #DOWN ##f } -
\concatargs (markup list) -
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 (markup list) -
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 (markup list) -
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 } } \null \override #'(line-width . 50) \fill-line { Width explicitly specified } } }Used properties:
-
line-width(#f) -
word-space(0.6) -
text-direction(1)
-
-
\fill-with-patternspace (number) dir (direction) pattern (markup) left (markup) right (markup) -
Put left and right in a horizontal line of width
line-widthwith a line of markups pattern in between. Patterns are spaced apart by space. Patterns are aligned to the dir markup.\markup \column { "right-aligned :" \fill-with-pattern #1 #RIGHT . first right \fill-with-pattern #1 #RIGHT . second right \null "center-aligned :" \fill-with-pattern #1.5 #CENTER - left right \null "left-aligned :" \override #'(line-width . 50) \fill-with-pattern #2 #LEFT : left first \override #'(line-width . 50) \fill-with-pattern #2 #LEFT : left second }Used properties:
-
line-width -
word-space
-
-
\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" myText = "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:myText } } } \markup { \null } -
\justify-lineargs (markup list) -
Put markups in a horizontal line of width line-width. The markups are spread to fill the entire line and separated by equal space. If there are no arguments, return an empty stencil.
\markup { \justify-line { Constant space between neighboring words } }Used properties:
-
line-width(#f) -
word-space(0.6) -
text-direction(1)
-
-
\justifyargs (markup list) -
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 (markup list) -
Put
argsin a left-aligned column.\markup { \left-column { one two three } }Used properties:
-
baseline-skip
-
-
\lineargs (markup list) -
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 } -
\overlayargs (markup list) -
Takes a list of markups combining them.
\markup { \fontsize #5 \override #'(thickness . 2) \overlay { \draw-line #'(0 . 4) \arrow-head #Y #DOWN ##f \translate #'(0 . 4)\arrow-head #Y #UP ##f } } -
\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. Identical to
pad-around.\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 (markup list) -
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 } -
\vspaceamount (number) -
Create an invisible object taking up vertical space of amount multiplied by 3.
\markup { \center-column { one \vspace #2 two \vspace #5 three } } -
\wordwrap-fieldsymbol (symbol) -
Wordwrap the data which has been assigned to symbol.
\header { title = "My title" myText = "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:myText } } } \markup { \null } -
\wordwrapargs (markup list) -
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
-
| [ << Tables du manuel de notation ] | [Racine][Table des matières][Index] | [ Aide-mémoire >> ] |
| [ < Font ] | [Plus haut: Commandes pour markup ] | [ Graphic > ] |