%% Generated by lilypond-book
%% Options: [exampleindent=10.16\mm,indent=0\mm,line-width=160\mm,paper-height=845.047\pt,paper-width=597.508\pt,papersize='(cons (* 597.508 pt) (* 845.047 pt))]
\include "lilypond-book-preamble.ly"


% ****************************************************************
% Start cut-&-pastable-section
% ****************************************************************

#(ly:set-option 'eps-box-padding 3.000000)



\paper {
  #(set-paper-size '(cons (* 597.508 pt) (* 845.047 pt)))
  indent = 0\mm
  line-width = 160\mm
  % offset the left padding, also add 1mm as lilypond creates cropped
  % images with a little space on the right
  line-width = #(- line-width (* mm  3.000000) (* mm 1))
}

\layout {
  
}




% ****************************************************************
% ly snippet:
% ****************************************************************
\sourcefilename "snippets/drawing-boxes-around-grobs.ly"
\sourcefileline 0
%% DO NOT EDIT this file manually; it was automatically
%% generated from the LilyPond Wiki
%% (https://wiki.lilypond.community).
%%
%% Make any changes in the Wiki itself, or in
%% `Documentation/snippets/new/`, then run
%% `scripts/auxiliar/makelsr.pl`.
%%
%% This file is in the public domain.

\version "2.24.0"

\header {
%% Translation of GIT committish: a8a85e19654e46d725563e6deba44083ef137a2c
  texidocja = "
任意の Grob の周りにボックスを表示するために、@code{print-function} を@c
オーバライドすることができます。
"
  doctitleja = "Grob の周りにボックスを表示する"

%% Translation of GIT committish: de1e42ce512f3690387cdd065109bddff1b7bd6d
  texidocfr = "
La propriété @code{stencil} peut se modifier pour obtenir l'encadrement
de n'importe quel objet, que ce soit à l'aide d'un @code{\\override} ou
d'un @code{\\tweak}.
"

  doctitlefr = "Encadrement d'objets"

%% Translation of GIT committish: 9c7cce2e12f0730684dcf6fe737eed69170674a3
  texidoces = "
La propiedad @code{stencil} se puede sobreescribir para trazar un
rectángulo que encierre objetos gráficos arbitrarios, bien sea
usando @code{\\override} o bien @code{\\tweak}.

"
  doctitlees = "Rodear los objetos gráficos con rectángulos"

%% Translation of GIT committish: 8ffecf6be17c6ec2ff87cf31873121a8cce29b09
  texidocca = "
Es pot sobreescriure la funció @code{print-function} per traçar un
rectangle al voltant d'un objecte gràfic arbitrari.

"
  doctitleca = "Rodejar els objectes gràfics amb rectangles"

  categories = "Editorial annotations, Tweaks and overrides"

  texidoc = "
The @code{stencil} property can be overridden to draw a box around
arbitrary grobs, either using @code{\\override} or @code{\\tweak}.
"

  doctitle = "Drawing boxes around grobs"
} % begin verbatim


\relative c'' {
  \once \override TextScript.stencil =
    #(make-stencil-boxer 0.1 0.3 ly:text-interface::print)
  c'4^"foo"

  \tweak Stem.stencil
    #(make-stencil-boxer 0.05 0.25 ly:stem::print)
  b8

  c4.^"bar" c4

  \override Score.RehearsalMark.stencil =
    #(make-stencil-boxer 0.15 0.3 ly:text-interface::print)
  \mark \default
  c1
}



% ****************************************************************
% end ly snippet
% ****************************************************************
