-alignment-vertical-spacing.ly
vertically-aligning-ossias-and-lyrics.ly
+adjusting-lyrics-vertical-spacing.ly
+alignment-vertical-spacing.ly
page-label.ly
+vertically-centered-dynamics-and-textscripts.ly
proportional-strict-notespacing.ly
-adjusting-lyrics-vertical-spacing.ly
altering-the-number-of-stems-in-a-beam.ly
time-signature-in-parentheses.ly
-changing-the-default-text-font-family.ly
+vertically-centered-dynamics-and-textscripts.ly
proportional-strict-notespacing.ly
-making-an-object-invisible-with-the-transparent-property.ly
+changing-the-default-text-font-family.ly
transcription-of-ancient-music-with-incipit.ly
alignment-vertical-spacing.ly
manually-controlling-beam-positions.ly
drawing-boxes-around-grobs.ly
move-specific-text.ly
drawing-circles-around-various-objects.ly
+making-an-object-invisible-with-the-transparent-property.ly
rest-styles.ly
creating-text-spanners.ly
using-the--tweak-command-to-tweak-individual-grobs.ly
--- /dev/null
+%% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
+%% This file is in the public domain.
+\version "2.11.38"
+
+\header {
+ lsrtags = "tweaks-and-overrides, spacing"
+ texidoc = "
+By setting the Y-extent property to a fixed value (here -1.5 . 1.5), we
+force LilyPond to align every elements of the DynamicLineSpanner (text
+elements and dynamics) to a common reference point, regardless to the
+actual extent of these objects. This way, every element will be
+vertically centered, for a nicer output (you can compare the first and
+the second line in this example; the trick is only applied on the
+second line).
+
+The same idea is used to align the text scripts along their baseline.
+" }
+% begin verbatim
+\paper { indent = 0 line-width = 5\in }
+
+music = \relative c''
+{
+ c2\p^\markup { "gorgeous" } c\f^\markup { "fantastic" }
+ c4\p c \f \> c c \! \p
+}
+
+\score
+{
+ {
+ \music \break
+
+ \override DynamicLineSpanner #'staff-padding = #2.0
+ \override DynamicLineSpanner #'Y-extent = #'(-1.5 . 1.5)
+ \override TextScript #'Y-extent = #'(-1.5 . 1.5)
+ \music
+ }
+}
+