Suivant : , Précédent : Align, Haut : Text markup commands


B.6.3 Graphic

\arrow-head axis (integer) direction (direction) filled (boolean)

Produce an arrow head in specified direction and axis. Use the filled head if filled is specified.

          
          \markup {
            \fontsize #5 {
              \general-align #Y #DOWN {
                \arrow-head #Y #UP ##t
                \arrow-head #Y #DOWN ##f
                \hspace #2
                \arrow-head #X #RIGHT ##f
                \arrow-head #X #LEFT ##f
              }
            }
          }
     

[image of music]


\beam width (number) slope (number) thickness (number)

Create a beam with the specified parameters.

          
          \markup {
            \beam #5 #1 #2
          }
     

[image of music]


\bracket arg (markup)

Draw vertical brackets around arg.

          
          \markup {
            \bracket {
              \note #"2." #UP
            }
          }
     

[image of music]


\circle arg (markup)

Draw a circle around arg. Use thickness, circle-padding and font-size properties to determine line thickness and padding around the markup.

          
          \markup {
            \circle {
              Hi
            }
          }
     

[image of music]

Used properties:


\draw-circle radius (number) thickness (number) fill (boolean)

A circle of radius radius, thickness thickness and optionally filled.

          
          \markup {
            \draw-circle #2 #0.5 ##f
            \hspace #2
            \draw-circle #2 #0 ##t
          }
     

[image of music]


\draw-line dest (pair of numbers)

A simple line.

          
          \markup {
            \draw-line #'(4 . 4)
            \override #'(thickness . 5)
            \draw-line #'(-3 . 0)
          }
     

[image of music]

Used properties:


\epsfile axis (number) size (number) file-name (string)

Inline an EPS image. The image is scaled along axis to size.

          
          \markup {
            \general-align #Y #DOWN {
              \epsfile #X #20 #"context-example.eps"
              \epsfile #Y #20 #"context-example.eps"
            }
          }
     

[image of music]


\filled-box xext (pair of numbers) yext (pair of numbers) blot (number)

Draw a box with rounded corners of dimensions xext and yext. For example,

     
     \filled-box #'(-.3 . 1.8) #'(-.3 . 1.8) #0
creates 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 (i.e. sharp corners).
          
          \markup {
            \filled-box #'(0 . 4) #'(0 . 4) #0
            \filled-box #'(0 . 2) #'(-4 . 2) #0.4
            \filled-box #'(1 . 8) #'(0 . 7) #0.2
            \with-color #white
            \filled-box #'(-4.5 . -2.5) #'(3.5 . 5.5) #0.7
          }
     

[image of music]


\hbracket arg (markup)

Draw horizontal brackets around arg.

          
          \markup {
            \hbracket {
              \line {
                one two three
              }
            }
          }
     

[image of music]


\postscript str (string)

This inserts str directly into the output as a PostScript command string. Due to technicalities of the output backends, different scales should be used for the TeX and PostScript backend, selected with -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
          
          eyeglassesps = #"
            0.15 setlinewidth
            -0.9 0 translate
            1.1 1.1 scale
            1.2 0.7 moveto
            0.7 0.7 0.5 0 361 arc
            stroke
            2.20 0.70 0.50 0 361 arc
            stroke
            1.45 0.85 0.30 0 180 arc
            stroke
            0.20 0.70 moveto
            0.80 2.00 lineto
            0.92 2.26 1.30 2.40 1.15 1.70 curveto
            stroke
            2.70 0.70 moveto
            3.30 2.00 lineto
            3.42 2.26 3.80 2.40 3.65 1.70 curveto
            stroke"
          
          eyeglasses = \markup {
            \with-dimensions #'(0 . 4.4) #'(0 . 2.5)
            \postscript #eyeglassesps
          }
          
          \relative c'' {
            c2^\eyeglasses
            a2_\eyeglasses
          }
     

[image of music]


\rounded-box arg (markup)

Draw a box with rounded corners around arg. Looks at thickness, box-padding and font-size properties to determine line thickness and padding around the markup; the corner-radius property makes it possible to define another shape for the corners (default is 1).

          
          c4^\markup {
            \rounded-box {
              Overtura
            }
          }
          c,8. c16 c4 r
     

[image of music]

Used properties:


\triangle filled (boolean)

A triangle, either filled or empty.

          
          \markup {
            \triangle ##t
            \hspace #2
            \triangle ##f
          }
     

[image of music]

Used properties:


\with-url url (string) arg (markup)

Add a link to URL url around arg. This only works in the PDF backend.

          
          \markup {
            \with-url #"http://lilypond.org/web/" {
              LilyPond ... \italic {
                music notation for everyone
              }
            }
          }
     

[image of music]

Cette page documente LilyPond-2.11.58 (branche de développement).

Rapportez toute anomalie en français à lilypond-user-fr@gnu.org ou en anglais à http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs

Vos suggestions à propos de la documentation sont les bienvenues.

Autres langues : English, español, deutsch.