diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/hdvips.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/hyperref/hdvips.def | 94 |
1 files changed, 51 insertions, 43 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hdvips.def b/Master/texmf-dist/tex/latex/hyperref/hdvips.def index ed2e290daa2..faeb37b7d4b 100644 --- a/Master/texmf-dist/tex/latex/hyperref/hdvips.def +++ b/Master/texmf-dist/tex/latex/hyperref/hdvips.def @@ -22,61 +22,69 @@ %% given in the file `manifest.txt'. %% \ProvidesFile{hdvips.def} - [2007/02/27 v6.75t + [2007/05/29 v6.76g Hyperref driver for dvips] \input{pdfmark.def}% \ifx\@pdfproducer\relax - \def\@pdfproducer{dvips + Distiller} + \def\@pdfproducer{dvips + Distiller}% \fi \def\literalps@out#1{\special{ps:SDict begin #1 end}}% \def\headerps@out#1{\special{! #1}}% -\providecommand*\@pdfborder{0 0 12} +\providecommand*\@pdfborder{0 0 1} \providecommand*\@pdfborderstyle{} \providecommand*\@pdfview{XYZ} \providecommand*\@pdfviewparams{ H.V} +\def\Hy@BorderArrayPatch{BorderArrayPatch} \AtBeginDvi{% \headerps@out{% - /DvipsToPDF { 72.27 mul Resolution div } def - /PDFToDvips { 72.27 div Resolution mul } def - /HyperBorder { 1 PDFToDvips } def - /H.V {pdf@hoff pdf@voff null} def - /H.B {/Rect[pdf@llx pdf@lly pdf@urx pdf@ury]} def - /H.S { - currentpoint - HyperBorder add /pdf@lly exch def - dup DvipsToPDF /pdf@hoff exch def - HyperBorder sub /pdf@llx exch def - } def - /H.L { - 2 sub dup - /HyperBasePt exch def - PDFToDvips /HyperBaseDvips exch def - currentpoint - HyperBaseDvips sub /pdf@ury exch def - /pdf@urx exch def - } def - /H.A { - H.L - currentpoint exch pop - vsize 72 sub exch DvipsToPDF + /DvipsToPDF{72.27 mul Resolution div} def% + /PDFToDvips{72.27 div Resolution mul} def% + /BPToDvips{72 div Resolution mul}def% + /BorderArrayPatch{% + [exch{% + dup dup type/integertype eq exch type/realtype eq or% + {BPToDvips}if% + }forall]% + }def% + /HyperBorder {1 PDFToDvips} def% + /H.V {pdf@hoff pdf@voff null} def% + /H.B {/Rect[pdf@llx pdf@lly pdf@urx pdf@ury]} def% + /H.S {% + currentpoint % + HyperBorder add /pdf@lly exch def % + dup DvipsToPDF 72 add /pdf@hoff exch def % + HyperBorder sub /pdf@llx exch def% + } def% + /H.L {% + 2 sub dup% + /HyperBasePt exch def % + PDFToDvips /HyperBaseDvips exch def % + currentpoint % + HyperBaseDvips sub /pdf@ury exch def% + /pdf@urx exch def% + } def% + /H.A {% + H.L % + currentpoint exch pop % + vsize 72 sub exch DvipsToPDF % HyperBasePt sub % baseline skip - sub /pdf@voff exch def - } def - /H.R { - currentpoint - HyperBorder sub /pdf@ury exch def - HyperBorder add /pdf@urx exch def - currentpoint exch pop vsize 72 sub - exch DvipsToPDF sub /pdf@voff exch def - } def - systemdict /pdfmark known - { - userdict /?pdfmark systemdict /exec get put - }{ - userdict /?pdfmark systemdict /pop get put - userdict /pdfmark systemdict /cleartomark get put - } - ifelse + sub /pdf@voff exch def% + } def% + /H.R {% + currentpoint % + HyperBorder sub /pdf@ury exch def % + HyperBorder add /pdf@urx exch def % + currentpoint exch pop vsize 72 sub % + exch DvipsToPDF sub /pdf@voff exch def% + } def % + systemdict /pdfmark known% + {% + userdict /?pdfmark systemdict /exec get put% + }{% + userdict /?pdfmark systemdict /pop get put % + userdict /pdfmark systemdict /cleartomark get put% + }% + ifelse% }% } \AfterBeginDocument{% |