[Top][All Lists]

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

Re: Adds automatic numbering to footnotes. (issue4244064)

From: Han-Wen Nienhuys
Subject: Re: Adds automatic numbering to footnotes. (issue4244064)
Date: Sat, 19 Mar 2011 12:58:38 -0300

On Sat, Mar 19, 2011 at 12:06 PM, address@hidden
<address@hidden> wrote:

>> On Wed, Mar 16, 2011 at 12:44 PM, address@hidden
>> <address@hidden> wrote:
>>> The problem is that Lilypond processes graphical objects before it processes
>>> pagination, making it impossible to know exactly how much space a footnote
>>> will take up when the graphical object is processed.
>>> One solution to this problem would be to reprocess all top-level markups
>>> with correct footnotes after having done the pagination, then redo the
>>> pagination and see if all the footnotes stay the same.  If so, keep the
>>> current configuration.  Otherwise, rinse & repeat.  This actually seems
>>> kinda sorta doable, although I'd have to do some homework on how these
>>> markups are stored internally and figure out to what extent these internal
>>> representations survive downstream into the pagination phase.
>> Overall comment: I think we should avoid 2 pass solutions if we can
>> help it.  Have you thought of setting a fixed width/height for the
>> number and later filling it in?
> That's what I do on line 1862 of  This uses a 
> seed of 0 (line 1861) on the first pass, and then uses the actual value on 
> the second pass (line 1860).  The seed of 0 works well for one digit numbers, 
> but breaks down on larger #s.

But if you format the number to be flushed with space in a box for 2
digits, you should be fine, right?

Han-Wen Nienhuys - address@hidden -

reply via email to

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