Le Dec 11, 2011 à 10:59 AM, David Kastrup a écrit : > "m...@apollinemike.com" <m...@apollinemike.com> writes: > >> Le Dec 11, 2011 à 8:06 AM, David Kastrup a écrit : >> >>> Anyway, let's take a look at two contenders: >>> >>> There is an optional argument before number-pair giving the symbol, and >>> an optional markup text before the footnote. So we do >>> >>> footnote = >>> #(define-music-function (parser location grob-name offset text footnote) >>> ((symbol? '()) number-pair? (markup?) markup?) >>> (_i "Attach @var{text} at @var{offset} with @var{text} referring >>> to @var{footnote} (use like @code{\\tweak})") >>> (make-music 'FootnoteEvent >>> 'automatically-numbered (not text) >>> 'symbol grob-name >>> 'X-offset (car offset) >>> 'Y-offset (cdr offset) >>> 'text (or text (make-null-markup)) >>> 'footnote-text footnote)) >>> >>> And there you are. >> >> I still am having trouble seeing what grob this would footnote? > > I have no idea. I never used footnotes. I am just giving you a single > \footnote command that can do everything that your four footnote > commands did previously.
OK, but it would be impossible to reduce it to this, as there is no way for it to lead to LilyPond intelligently and predictably choosing a grob if no default is provided. I will, however, look into using \default. Cheers, MS _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user