X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fnotation%2Fchanging-defaults.itely;h=da68bf2a2b1f5f7e9f01daae20d0c70e9ce74f12;hb=2583260566074fd263a84d515ef637267563d371;hp=6d6b724cff20a1d7b6c745218af1cf12ef46b854;hpb=e6f882f10a32312d731311b4d9f1b3991a11c79d;p=lilypond.git diff --git a/Documentation/notation/changing-defaults.itely b/Documentation/notation/changing-defaults.itely index 6d6b724cff..da68bf2a2b 100644 --- a/Documentation/notation/changing-defaults.itely +++ b/Documentation/notation/changing-defaults.itely @@ -2585,6 +2585,7 @@ modified by completely re-defining them as alists.} * Input modes:: * Direction and placement:: * Distances and measurements:: +* Dimensions:: * Staff symbol properties:: * Spanners:: * Visibility of objects:: @@ -2844,6 +2845,35 @@ Notation Reference: @ref{Setting the staff size}. +@node Dimensions +@subsection Dimensions + +@cindex dimensions +@cindex bounding box + +The dimensions of a graphical object specify the positions of the left +and right edges and the bottom and top edges of the objects' bounding +box as distances from the objects' reference point in units of +staff-spaces. These positions are usually coded as two Scheme pairs. +For example, the text markup command @code{\with-dimensions} takes +three arguments, the first two of which are a Scheme pair giving the +left and right edge positions and a Scheme pair giving the bottom and +top edge positions: + +@example +\with-dimensions #'(-5 . 10) #'(-3 . 15) @var{arg} +@end example + +This specifies a bounding box for @var{arg} with its left edge at -5, +its right edge at 10, its bottom edge at -3 and its top edge at 15, +all measured from the objects' reference point in units of +staff-spaces. + +@seealso +Notation Reference: +@ref{Distances and measurements}. + + @node Staff symbol properties @subsection Staff symbol properties