[texhax] hyperbasics

Reinhard Kotucha reinhard.kotucha at web.de
Tue Jun 7 22:44:47 CEST 2016


On 2016-06-06 at 23:47:30 +0000, Rodolfo Medina wrote:

 > Hi to all (La)TeX users.
 > 
 > I'm doing some tests with hyperbasics.tex.  Anybody out there
 > knowing and using it?  It is a very simple and minimal set of
 > macros for building hyperlinks when typing your input file in plain
 > TeX.  It works fine for me with dvi output format, but hyperlinks
 > are not there any more in the pdf format generated with: `dvips -z
 > file' and then `ps2pdf file'.  Is there a way to keep the
 > hyperlinks that are in the dvi format also in pdf?  I've seen that
 > lanlmac.tex does so: it uses hyperbasics.tex to build hyperlinks in
 > dvi format that survive also in pdf.  How does it achieve that?

There is a PostScript operator called pdfmark which can be used to
pass PDF stuff to a PS->PDF converter.

  http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdfmark_reference.pdf

I'm sure that the "pdfmark Primer" by Thomas Merz is quite helpful too:

  http://extras.springer.com/1998/978-3-642-72032-1/PDF/PRIMER.PDF

You have to use \special in order to pass the PostScript code to
dvips.  This is described in detail in the dvips manual.  Run

  texdoc dvips


Regards,
  Reinhard

-- 
------------------------------------------------------------------
Reinhard Kotucha                            Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover                    mailto:reinhard.kotucha at web.de
------------------------------------------------------------------


More information about the texhax mailing list