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.