[tex-eplain] pdftex vs. `dvips -> ps2pdf': hyperlinks

Rodolfo Medina rodolfo.medina at gmail.com
Tue Jun 21 14:33:23 CEST 2016


Rodolfo Medina <rodolfo.medina at gmail.com> writes:

> I'm attaching file.tex and file2.tex.  Process the first one with:
>
>  $ tex file
>  $ dvips -z file
>  $ ps2pdf file.ps
>
> , and the second with simply `pdftex file2'.  Then do: `xpdf file.pdf' or
> `xpdf file2.pdf', go to page 2, enlarge enormously by hitting `+' three times
> and click the hyperlink.  You will see the difference between file.pdf and
> file2.pdf in accuracy in striking the target.
>
> Thanks, Cheers
>
> Rodolfo
>
>
> {\catcode`\^=6 \catcode`\#=12 \gdef\PreHatch^1{#^1}}
> %%
> \def\hyperlabel#1{\special{html:<a name="#1">}\special{html:</a>}}
> %%
> \def\hyperlink#1#2{\special{html:<a href="\PreHatch{#1}">}#2\special{html:</a>}}
> %%
>
> \hbox{}
> \vskip5in
> \hyperlabel{label}This is page 1.
>
> \vfill\eject
>
> This is page 2.  Let's go to page 1.  \hyperlink{label}{Please click here.}
>
> \end
>
>
> \input eplain
>
> \enablehyperlinks
>
> \hbox{}
> \vskip5in
> \hldest{xyz}{}{label}This is page 1.
>
> \vfill\eject
>
> This is page 2.  Let's go to page 1.  \hlstart{name}{}{label} Please click here.\hlend
>
> \end


Mmmm...  I'm doing further tests and maybe it's only a matter of different
target default anchor points between the two modes.  I'll let you know.

Rodolfo



More information about the tex-eplain mailing list