]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/drawing-boxes-around-grobs.ly
LSR: Update.
[lilypond.git] / Documentation / snippets / drawing-boxes-around-grobs.ly
1 %% Do not edit this file; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% This file is in the public domain.
4 \version "2.13.4"
5
6 \header {
7   lsrtags = "editorial-annotations, tweaks-and-overrides"
8
9   texidoc = "
10 The @code{print-function} can be overridden to draw a box around an
11 arbitrary grob.
12
13 "
14   doctitle = "Drawing boxes around grobs"
15 } % begin verbatim
16
17 \relative c'' {
18   \override TextScript #'stencil =
19     #(make-stencil-boxer 0.1 0.3 ly:text-interface::print)
20   c'4^"foo"
21
22   \override Stem #'stencil =
23     #(make-stencil-boxer 0.05 0.25 ly:stem::print)
24   \override Score.RehearsalMark  #'stencil =
25     #(make-stencil-boxer 0.15 0.3 ly:text-interface::print)
26   b8
27
28   \revert Stem #'stencil
29   c4. c4
30   \mark "F"
31   c1
32 }
33
34
35