hyperlinky

Vlastimil Ott tex at e-ott.info
Thu Apr 20 21:39:24 CEST 2006


Anton Surda napsal(a):

> literaturu a literaturou? Da sa to urobit pomocou nejakych \specials? Je
> potrebne nahradit dvips niecim inym? AdobeDistiller musim zachovat.

Pouzivam toto:


% vytvori odkaz v textu, parametr je nejaky index
\def\PDFref#1{\pdfdest num #1 fith}%

% jde na odkaz v textu, prvni parametr se vypise, druhy je cislo odkazu,
% treti je barva odkazu
% na konci se nastavuje cerna barva textu primo

\def\PDFgoto#1#2#3{\pdfstartlink attr{/C [0.9 0 0]  /Border [0 0 0]}
goto num #2#3#1\pdfendlink\pdfliteral{0 0 0 1 k}}%


Link: \PDFgoto{Lorem ipsum}{10}{\pdfliteral{0.1 1 1 0.1 k}} dolor sit
amet, consectetuer adipiscing elit, sed diam
nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat
volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation
ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse
molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero
eros et accumsan et iusto odio dignissim qui blandit praesent luptatum
zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum
dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh
euismod tincidunt ut laoreet

\PDFref{10}
Sem ukazuje odkaz.

\bye


Parametry lze menit, viz dokumentace k PDF, neco zde:

http://casper.ghostscript.com/~ghostgum/pdftips.htm

--vo



More information about the csTeX mailing list