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