[Top][All Lists]

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

Re: [Groff] pdfmark strikes back + general script/groff handshake

From: Sigfrid Lundberg - LUB NetLab
Subject: Re: [Groff] pdfmark strikes back + general script/groff handshake
Date: Tue, 16 Dec 2003 12:14:26 +0100 (CET)

On Mon, 15 Dec 2003, Carlos J. G. Duarte wrote:

> Hi again, on the weekend I recovered the solution proposed by Werner
> LEMBERG to make HREF pdfmarks work correctly. WL proposed to have a
> macro like this:


> If someone finds this to be useful, feel free to use.

I've tested these scripts and things, and will use some version of this
for my biggest groff based project (i.e., the pdf-version of the medieval
manuscript catalogue I'm building). I've got two problems with this, the
first being that I don't understand what in the scripts that generates the
anchor text and what embeds the URI:

  .ds pdfref-1 ps: exec [ /Rect [145610 u 89240 u 313860 u 96140 u] \
                          /Border [0 0 \\n[wid]] \
                          /Action << /Subtype /URI /URI (\\$1) >> \
                          /Subtype /Link \
                          /ANN pdfmark'\c

(cf [1])

Where in this should the anchor text go? In my application I don't want
visible URIs (which is obviously reasonable to have in an ordinary
reference list).

My second question is about internal cross referencing and groff/pdf. In
my almost 200-page document I'm generating extensive indices (of titles,
persons, places etc). Is it possible to embed stuff like

        <a name="my_unique_anchor">some string</a>

and adress this point in the text? Is it possible to do that from outside
of the document as well as from inside? I mean, I can write a general URL
for a HTML document:

        <a href="";>Read more about
        'some string'</a>

Can I get the same functionality using some nifty ps: exec [ blah? And if
that is possible, how do I construct the URI?




reply via email to

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