groff
[Top][All Lists]
Advanced

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

Re: [Groff] local motions and pdfhref


From: Keith Marshall
Subject: Re: [Groff] local motions and pdfhref
Date: Wed, 3 Sep 2008 22:42:34 +0100
User-agent: KMail/1.9.9

On Wednesday 03 September 2008 15:45:01 Louis Guillaume wrote:
> It looks like if you move a pdfhref over with \v the link ends up
> in odd places. For example...
>
> .pdfhref W -D http://www.gnu.org/software/groff/ \v'-3'The Groff
> Home Page
>
> ... produces the link text at the expected spot after the \v
> motion, but the "hot-spot" is at the original position before the
> \v  motion.

Naturally, because the start position for the hot-spot is computed 
*before* the motion is evaluated.  If you want the hot-spot to be 
placed at the destination of the motion, you need to evaluate the 
motion before specifying the link:

  .pdfhref W -D http://...   -P \v'-3'   "The Groff Home Page"
                             ^^^^^^^^^

The start position of the hot-spot is computed between any prefix,  
specified with -P, and the link text itself, with no intervening 
motion.

Similarly, the end position for the hot-spot is computed at the end of 
the link text, and is immediately followed by anything specified 
with -A, which is affixed with no intervening motion.  (N.B. the 
affix option, like the prefix option, must be specified before the 
link text, and in both cases at least one space is required between 
the flag and its argument).

HTH,
Keith.




reply via email to

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