lout-users
[Top][All Lists]
Advanced

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

Re: Cross-references to wrong pages


From: Yves Forkl
Subject: Re: Cross-references to wrong pages
Date: Thu, 17 Apr 2008 09:37:32 +0200
User-agent: Thunderbird 1.5.0.14ubu (X11/20080306)

Lout ends up with the wrong page number for many of my
cross-references, printing the number of the preceding page.

Your code looks OK to me.  Probably you just need to run
Lout once or twice more.

Hi,

currently I'm using a loop on the shell to resolve all cross-references:

while grep -q unresolved lout.log; \
do \
   lout -e lout.log mydoc.lt > mydoc.ps; \
done

If this is not sufficient to get the page numbers right: How to determine the number of runs required? Has experience led to an estimated guess here? BTW, lout.log in the final state doesn't mention any problems with cross references, just 15 objects (all of them related to footnotes) that have been moved.

What is even more confusing is that page number determination seems to be non-deterministic: in two consecutive ("full", i.e. looped) runs, Lout created two PS versions of the same document where it put a specific heading both times in the same place (at the critical top of the main flow area), but one time the page number is right, another time I get the number of the preceding page.

And, at least with the loop technique above, the worst I have encountered is a heading which has 1 1/2 paragraphs (making up 7 printing lines plus blank lines) above it on the page, and still Lout pretends this object to be found on the preceding page! (I fear I might have generated some code that troubled Lout somehow.)

Surprisingly, however, in the PS file that I created now all of the cross references seem to show the right page numbers. I hope they will stay... ;-)

 Yves


reply via email to

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