From: David Kastrup Date: Sun, 26 Jul 2015 14:26:33 +0000 (+0200) Subject: Issue 4524: NR Changing Defaults: document \etc X-Git-Tag: release/2.19.25-1~23 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=fb6143ab539c6e4be44a5fb6a0cf869276d105e1;p=lilypond.git Issue 4524: NR Changing Defaults: document \etc --- diff --git a/Documentation/notation/changing-defaults.itely b/Documentation/notation/changing-defaults.itely index 01fc08bcc9..4c000c565d 100644 --- a/Documentation/notation/changing-defaults.itely +++ b/Documentation/notation/changing-defaults.itely @@ -4758,6 +4758,39 @@ custosNote = \relative { c'4 d e f \custosNote g } @end lilypond +@funindex \etc +Both of those functions are simple single expressions where only +the last element of a function call or override is missing. For +those particular function definitions, there is a simpler +alternative syntax, namely just writing out the constant part of +the expression and replacing its final missing element with +@code{\etc}: + +@lilypond[quote,verbatim,ragged-right] +padText = + \once \override TextScript.padding = \etc + +\relative { + c''4^"piu mosso" b a b + \padText #1.8 + c4^"piu mosso" b a b + \padText #2.6 + c4^"piu mosso" b a b +} +@end lilypond + +@lilypond[quote,verbatim,ragged-right] +custosNote = + \tweak NoteHead.stencil #ly:text-interface::print + \tweak NoteHead.text + \markup \musicglyph #"custodes.mensural.u0" + \tweak Stem.stencil ##f + \etc + +\relative { c'4 d e f \custosNote g } +@end lilypond + + Substitution functions with multiple arguments can be defined: @lilypond[quote,verbatim,ragged-right]