Michael Koehmstedt, RenPet | 8 May 2012 22:29

Mistake in section 4.4 of User's Guide?

Hello,

This is regarding section 4.4, Page Numbers and Running Headers. According to this section, the proper way to have a header/footer that says Page X of Y is by { Page <at> PageNum of <at> NumberOf last.page }.

However, I could not get this to work. I'd get an Unresolved reference to NumberMarker. However, I found this command to be successful: { Page <at> PageNum of <at> PageOf last.page }.

Did I screw something up that makes <at> NumberOf not work or is perhaps the User Guide showing a deprecated method of accomplishing this?

Using Lout 3.38.

Michael

Ludovic Courtès | 8 May 2012 23:15
Picon

Re: Mistake in section 4.4 of User's Guide?

Hi,

"Michael Koehmstedt, RenPet" <mike <at> renpetllc.com> skribis:

> This is regarding section 4.4, Page Numbers and Running Headers. According
> to this section, the proper way to have a header/footer that says Page X of
> Y is by { Page  <at> PageNum of  <at> NumberOf last.page }.
>
> However, I could not get this to work. I'd get an Unresolved reference to
> NumberMarker. However, I found this command to be successful: { Page
>  <at> PageNum of  <at> PageOf last.page }.

Did you run ‘lout’ several times, for instance with ‘lout -r3’, so that
it can resolve all references?

Thanks,
Ludo’.

Michael Koehmstedt, RenPet | 8 May 2012 23:20

Re: Mistake in section 4.4 of User's Guide?

Yes, I had been running my lout command twice in order to try and grab the reference. I just tried your specific -r3 option and it does not change anything. There is still an unresolved reference to <at> NumberMarker.

I also see now that section 4.4 (which says to use <at> NumberOf) contradicts what's stated in section 2.8 which says to use <at> PageOf.

Michael

On Tue, May 8, 2012 at 2:15 PM, Ludovic Courtès <ludo <at> gnu.org> wrote:
Hi,

"Michael Koehmstedt, RenPet" <mike <at> renpetllc.com> skribis:

> This is regarding section 4.4, Page Numbers and Running Headers. According
> to this section, the proper way to have a header/footer that says Page X of
> Y is by { Page <at> PageNum of <at> NumberOf last.page }.
>
> However, I could not get this to work. I'd get an Unresolved reference to
> NumberMarker. However, I found this command to be successful: { Page
> <at> PageNum of <at> PageOf last.page }.

Did you run ‘lout’ several times, for instance with ‘lout -r3’, so that
it can resolve all references?

Thanks,
Ludo’.


Jeff Kingston | 8 May 2012 23:27
Picon
Picon

Re: Mistake in section 4.4 of User's Guide?

Yes, this is a mistake in the doc.  Someone else pointed it out
fairly recently, and I've already corrected it for the next
release.  Amazing how long it sat there without being noticed.

Jeff

On Tue, May 08, 2012 at 01:29:12PM -0700, Michael Koehmstedt, RenPet wrote:
> Hello,
> 
> This is regarding section 4.4, Page Numbers and Running Headers. According
> to this section, the proper way to have a header/footer that says Page X of
> Y is by { Page  <at> PageNum of  <at> NumberOf last.page }.
> 
> However, I could not get this to work. I'd get an Unresolved reference to
> NumberMarker. However, I found this command to be successful: { Page
>  <at> PageNum of  <at> PageOf last.page }.


Gmane