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=f7173e35a82300b70bdd520af7159c433a753c20;hb=55e87e06de25f758f6ae665995cb9438d103fe08;hp=d85e127358bdd78ce39153fe5d6a53daab814219;hpb=92782fde87fb68e945b9eb60cacab6c01d0397df;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 d85e127358..f7173e35a8 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 @@ -1,7 +1,10 @@ -%% Do not edit this file; it is automatically -%% generated from LSR http://lsr.dsi.unimi.it +%% DO NOT EDIT this file manually; it is automatically +%% generated from LSR http://lsr.di.unimi.it +%% Make any changes in LSR itself, or in Documentation/snippets/new/ , +%% and then run scripts/auxiliar/makelsr.py +%% %% This file is in the public domain. -\version "2.13.4" +\version "2.18.0" \header { lsrtags = "rhythms, tweaks-and-overrides" @@ -9,11 +12,11 @@ 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 \\override Staff.TimeSignature #'style = #'single-digit to -change the style permanently. By using \\revert Staff.TimeSignature -#'style, this setting can be reversed. To apply the single-digit style -to only one time signature, use the \\override command and prefix it -with a \\once. +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 the +single-digit style to only one time signature, use the +@code{\\override} command and prefix it with a @code{\\once}. " doctitle = "Time signature printing only the numerator as a number (instead of the fraction)" @@ -23,19 +26,19 @@ with a \\once. \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 - c c + c4 c \time 3/4 - c c c + c4 c c % Revert to default style: - \revert Staff.TimeSignature #'style + \revert Staff.TimeSignature.style \time 2/4 - c c + 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 - c c c c c + c4 c c c c \time 2/4 - c c + c4 c }