X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Ftime-signature-printing-only-the-numerator-as-a-number-instead-of-the-fraction.ly;h=bee629dc693d0b3daddfaf3ed1190da66668485b;hb=13da8b27aabc5d5a752d00ed1e2b99ad20f0f264;hp=188484760bd0b869b7fb50602835a140df98be4a;hpb=516cae503bc2b55e95604b0c0f681a6ccddcfab2;p=lilypond.git diff --git a/Documentation/snippets/time-signature-printing-only-the-numerator-as-a-number-instead-of-the-fraction.ly b/Documentation/snippets/time-signature-printing-only-the-numerator-as-a-number-instead-of-the-fraction.ly index 188484760b..bee629dc69 100644 --- a/Documentation/snippets/time-signature-printing-only-the-numerator-as-a-number-instead-of-the-fraction.ly +++ b/Documentation/snippets/time-signature-printing-only-the-numerator-as-a-number-instead-of-the-fraction.ly @@ -4,7 +4,7 @@ %% and then run scripts/auxiliar/makelsr.py %% %% This file is in the public domain. -\version "2.16.0" +\version "2.17.6" \header { lsrtags = "rhythms, tweaks-and-overrides" @@ -12,9 +12,9 @@ texidoc = " Sometimes, a time signature should not print the whole fraction (e.g. 7/4), but only the numerator (7 in this case). This can be easily done -by using @code{\\override Staff.TimeSignature #'style = #'single-digit} +by using @code{\\override Staff.TimeSignature.style = #'single-digit} to change the style permanently. By using @code{\\revert -Staff.TimeSignature #'style}, this setting can be reversed. To apply +Staff.TimeSignature.style}, this setting can be reversed. To apply the single-digit style to only one time signature, use the @code{\\override} command and prefix it with a @code{\\once}. @@ -27,17 +27,17 @@ the single-digit style to only one time signature, use the \time 3/4 c4 c c % Change the style permanently - \override Staff.TimeSignature #'style = #'single-digit + \override Staff.TimeSignature.style = #'single-digit \time 2/4 c4 c \time 3/4 c4 c c % Revert to default style: - \revert Staff.TimeSignature #'style + \revert Staff.TimeSignature.style \time 2/4 c4 c % single-digit style only for the next time signature - \once \override Staff.TimeSignature #'style = #'single-digit + \once \override Staff.TimeSignature.style = #'single-digit \time 5/4 c4 c c c c \time 2/4