lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Footnotes documentation


From: address@hidden
Subject: Re: Footnotes documentation
Date: Sun, 11 Dec 2011 11:09:31 +0100

Le Dec 11, 2011 à 10:59 AM, David Kastrup a écrit :

> "address@hidden" <address@hidden> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]