X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Flsr%2Fdrawing-circles-around-various-objects.ly;h=d3db013fa6e4fd60107a3d022377243366565c66;hb=bb91de5b7f8c4f753452730101c2422946067cc3;hp=67b09c80d43d11efc7ab40b1a6294e3a31656297;hpb=1ce5e85efda360c05b7db51cb1772fccce4e582c;p=lilypond.git diff --git a/input/lsr/drawing-circles-around-various-objects.ly b/input/lsr/drawing-circles-around-various-objects.ly index 67b09c80d4..d3db013fa6 100644 --- a/input/lsr/drawing-circles-around-various-objects.ly +++ b/input/lsr/drawing-circles-around-various-objects.ly @@ -1,28 +1,30 @@ %% Do not edit this file; it is auto-generated from input/new %% This file is in the public domain. -\version "2.11.52" +\version "2.12.0" \header { lsrtags = "tweaks-and-overrides" texidoc = " -The @code{\circle} command allows you to draw circles around various objects, -for example fingering indications. However, some objects require -specific tweaks: rehearsal marks depend on the @code{Score.markFormatter} -context, bar numbers on the @code{Score.BarNumber} context, and so on. - -You can tweak the printing of your circles by setting some properties -such as @code{#'thickness}, @code{#'circle-padding} or @code{#'font-size}. +The @code{\circle} markup command draws circles around various objects, +for example fingering indications. For other objects, specific tweaks +may be required: this example demonstrates two strategies for rehearsal +marks and measure numbers. " doctitle = "Drawing circles around various objects" } % begin verbatim + \relative c' { c1 \set Score.markFormatter = #(lambda (mark context) (make-circle-markup (format-mark-numbers mark context))) \mark \default - c2 d^\markup { \circle \finger 2 } + c2 d^\markup { + \override #'(thickness . 3) { + \circle \finger 2 + } + } \override Score.BarNumber #'break-visibility = #all-visible - \override Score.BarNumber #'stencil = + \override Score.BarNumber #'stencil = #(make-stencil-circler 0.1 0.25 ly:text-interface::print) }