[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Getting the actual page number
From: |
Ludovic Courtès |
Subject: |
Re: Getting the actual page number |
Date: |
Fri, 04 Mar 2005 10:01:06 +0100 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.3 (gnu/linux) |
Hi,
address@hidden (Jeff Kingston) writes:
> I wonder if there is some way you can get PostScript
> to do the work instead of Lout. e.g. you could
> add some PostScript to the *body* of @PageMarker,
> no idea about the details.
You were right: I was heading in the wrong direction.
After further `pdfmark' investigation, I noticed that I could use a
`GoTo' action in outline entries rather than the `/Page' attribute I was
using. Each `GoTo' action must be given a `/Dest' attribute which is a
named destination (in PDF terms).
Fortunately, Lout's PostScript back-end already creates named
destinations for all large-scale structures (via invocations of
address@hidden' in `include/bsf'). So I just needed to copy Lout's naming
convention for named destinations (i.e. `ConvertToPDFName ()', in z49.c)
and voilà!
Thanks,
Ludovic.