diff options
author | Karl Berry <karl@freefriends.org> | 2010-07-10 00:04:37 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-07-10 00:04:37 +0000 |
commit | 9659e12bf7d3574541e1192914bbe05d1fa6ddf2 (patch) | |
tree | c8dd4c1dbfffbab1e3b43ef28b28248435b9ace4 /Master/texmf-dist/tex/latex/hypdvips | |
parent | cdb7652d653cc1c8c06315f735d1a70728d2f9b1 (diff) |
hypdvips update (6jul10)
git-svn-id: svn://tug.org/texlive/trunk@19318 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/hypdvips')
-rw-r--r-- | Master/texmf-dist/tex/latex/hypdvips/hypdvips.sty | 545 |
1 files changed, 280 insertions, 265 deletions
diff --git a/Master/texmf-dist/tex/latex/hypdvips/hypdvips.sty b/Master/texmf-dist/tex/latex/hypdvips/hypdvips.sty index 1d9006e56cc..1796a0cc941 100644 --- a/Master/texmf-dist/tex/latex/hypdvips/hypdvips.sty +++ b/Master/texmf-dist/tex/latex/hypdvips/hypdvips.sty @@ -3,7 +3,7 @@ %% Copyright 2008-2010 Raimund Niedrist %% %% With portions written by David Carlisle, Toby Cubitt, Geoffrey -%% Keating, Heiko Oberdiek and Sebastian Rahtz, 1995-2009 +%% Keating, Heiko Oberdiek and Sebastian Rahtz, 1995-2010 %% %% This work may be distributed and/or modified under the conditions %% of the LaTeX Project Public License, either version 1.3 of this @@ -21,19 +21,29 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{hypdvips} - [2010/06/22 v2.00 + [2010/07/06 v2.01 Hyperref extensions for use with dvips] -\RequirePackage{hyperref} -\newif\ifpp@dvips -\def\pp@string{hdvips} -\ifx\Hy@driver\pp@string - \pp@dvipstrue -\else - \PackageError{hypdvips}{Unable to find dvips}\@ehd - \pp@dvipsfalse -\fi +\@ifpackageloaded{hyperref} + { + \def\pp@string{hdvips} + \ifx\Hy@driver\pp@string + \else + \PackageError{hypdvips}{Wrong hyperref driver `\Hy@driver.def' selected!\MessageBreak Please switch to hdvips.def before loading hypdvips}\@ehd + \DeclareOption*{} + \ProcessOptions + \endinput + \fi + } + { + \PackageError{hypdvips}{The hyperref package is not loaded!\MessageBreak Please insert \string\usepackage{hyperref} in your code\MessageBreak before loading hypdvips}\@ehd + \DeclareOption*{} + \ProcessOptions + \endinput + } \RequirePackage{hypcap} +\RequirePackage{xcolor} \RequirePackage{xkeyval} +\RequirePackage[totpages]{zref} \@ifpackageloaded{bookmark} { \PackageWarning{hypdvips}{Package `bookmark' should not be loaded before\MessageBreak hypdvips.\MessageBreak}% @@ -49,13 +59,11 @@ \RequirePackage{bookmark} \let\special\pp@backup@special } -\RequirePackage[totpages]{zref} -\RequirePackage{xcolor} -\hypersetup{breaklinks=true} \ifHy@unicode \else \HyPsd@InitUnicode \fi +\hypersetup{breaklinks=true} %% %% Debug commands: %% @@ -70,7 +78,33 @@ %% %% End of debug commands. %% -\def\pp@language@english{% +\newcommand{\pp@PScatcodes}{% + \edef\pp@backup@dollarsign{\the\catcode`\$}% + \edef\pp@backup@ampersand{\the\catcode`\&}% + \edef\pp@backup@numbersign{\the\catcode`\#}% + \edef\pp@backup@caret{\the\catcode`\^}% + \edef\pp@backup@underscore{\the\catcode`\_}% + \edef\pp@backup@tilde{\the\catcode`\~}% + \edef\pp@backup@quotationmark{\the\catcode`\"}% + \catcode`\$=12 % + \catcode`\&=12 % + \catcode`\#=12 % + \catcode`\^=12 % + \catcode`\_=12 % + \catcode`\~=12 % + \catcode`\"=12 % +} +\newcommand{\pp@TeXcatcodes}{% + \catcode`\$=\pp@backup@dollarsign % + \catcode`\&=\pp@backup@ampersand % + \catcode`\#=\pp@backup@numbersign % + \catcode`\^=\pp@backup@caret % + \catcode`\_=\pp@backup@underscore % + \catcode`\~=\pp@backup@tilde % + \catcode`\"=\pp@backup@quotationmark % +} +\pp@PScatcodes +\newcommand{\pp@pdfstrings@english}{ \def\pp@pdf@info{Details} \def\pp@pdf@name{Name: } \def\pp@pdf@unknown{Unknown} @@ -93,6 +127,34 @@ \def\pp@pdf@openmsg@sixtitle{File attachments} \def\pp@pdf@openmsg@six{This document has " + \string\(pp_efcount + pp_facount\string\) + " file attachment\string\(s\string\).\string\\n\string\\nUse the \string\\"Document \string\273 File Attachments\string\\" menu to view these attachments.} % ef_count = <number of embedded files>, fa_count = <number of FileAttachment-annotations> \def\pp@pdf@openmsg@sixinbrowser{This document has " + \string\(pp_efcount + pp_facount\string\) + " file attachment\string\(s\string\).\string\\n\string\\nTo view these attachments, click on the small black triangle at the top of the window's vertical scrollbar and choose \string\\"File Attachments\string\\".} % ef_count = <number of embedded files>, fa_count = <number of FileAttachment-annotations> +} +\newcommand{\pp@pdfstrings@german}{ + \def\pp@pdf@info{Details} + \def\pp@pdf@name{Name: } + \def\pp@pdf@unknown{Unbekannt} + \def\pp@pdf@size{Gr\string\366\string\337e: } + \def\pp@pdf@mime{MIME-Typ: } + \def\pp@pdf@bytes{ Byte} + \def\pp@pdf@author{Verfasser: } + \def\pp@pdf@subject{Thema: } + \def\pp@pdf@desc{Beschreibung: } + \def\pp@pdf@crd{Erstellt: } + \def\pp@pdf@mod{Ge\string\344ndert am: } + \def\pp@pdf@lid{Ort in Dokument: } + \def\pp@pdf@pl{" + pp_pl + " \string\(Seite " + pp_page + "\string\)} + \def\pp@pdf@nopl{Seite " + pp_page + "} + \def\pp@pdf@tab{Registerkarte \string\\"Anlagen\string\\"} + \def\pp@pdf@fasubj{Dateianlage "\pp@filename"} + \def\pp@pdf@openmsg@fivetitle{Eingebettete Dateien} + \def\pp@pdf@openmsg@five{Dieses Dokument enth\string\344lt " + pp_efcount + " eingebettete Datei\string\(en\string\).\string\\n\string\\nVerwenden Sie das Men\string\374 \string\\"Datei \string\273 Dokumenteigenschaften \string\273 Dateianlagen\string\\" um diese Dateien anzuzeigen.} + \def\pp@pdf@openmsg@fiveinbrowser{Dieses Dokument enth\string\344lt " + pp_efcount + " eingebettete Datei\string\(en\string\).\string\\n\string\\nUm diese Dateien anzuzeigen, klicken Sie zuerst auf die Schaltfl\string\344che \string\\"Speichern\string\\" um eine Kopie dieses Dokuments zu speichern. \string\326ffnen Sie dann die Kopie mit dem Adobe\string\256 Acrobat\string\256 Programm, und verwenden Sie das Men\string\374 \string\\"Datei \string\273 Dokumenteigenschaften \string\273 Dateianlagen\string\\".} + \def\pp@pdf@openmsg@sixtitle{Dateianlagen} + \def\pp@pdf@openmsg@six{Dieses Dokument hat " + \string\(pp_efcount + pp_facount\string\) + " Dateianlage\string\(n\string\).\string\\n\string\\nVerwenden Sie das Men\string\374 \string\\"Dokument \string\273 Dateianlagen\string\\" um diese Anlagen anzuzeigen.} + \def\pp@pdf@openmsg@sixinbrowser{Dieses Dokument hat " + \string\(pp_efcount + pp_facount\string\) + " Dateianlage\string\(n\string\).\string\\n\string\\nUm diese Anlagen anzuzeigen, klicken Sie auf das kleine schwarze Dreieck \string\374ber dem vertikalen Fensterlaufbalken und w\string\344hlen Sie \string\\"Dateianlagen\string\\".} +} +\pp@TeXcatcodes +\def\pp@language@english{% + \pp@pdfstrings@english \def\pp@loastring{List of File Attachments} \def\pp@optionsstring{\\\tiny\textbf{Options: }\sc} \def\pp@infostring{Details} @@ -100,7 +162,6 @@ \def\pp@launchstring{Launch~attachment} \def\pp@tabstring{Attachments~tab} \@ifpackageloaded{babel}{\addtocontents{loa}{\protect\select@language{english}}}{} - \def\pp@br@abstractstring{Abstract} \def\pp@br@pagestring{Page} \def\pp@br@documentstring{(document)} \ifHy@backref @@ -109,72 +170,46 @@ { \renewcommand*{\backrefalt}[4]{% \setlength{\pp@offset}{\baselineskip}% - \\\footnotesize(Referenced in + \\\scriptsize(Referenced in \setlength{\baselineskip}{\pp@offset}% ##2.) } } { - \renewcommand*{\backrefalt}[4]{\\\footnotesize(Referenced\ in: ##2.)} + \renewcommand*{\backrefalt}[4]{\\\scriptsize(Referenced\ in: ##2.)} } \fi \ifx\backrefxxx\hyper@page@backref \renewcommand*{\backrefalt}[4]{% \ifcase##1% \or% - \\\footnotesize(Referenced\ on\ page ##2.) + \\\scriptsize(Referenced\ on\ page ##2.) \else% - \\\footnotesize(Referenced\ on\ pages ##2.) + \\\scriptsize(Referenced\ on\ pages ##2.) \fi% } \fi \fi \@ifpackageloaded{cleveref} { - \Crefname{Hfootnote}{Footnote}{Footnotes} \Crefname{abstract}{Abstract}{Abstract} \if@cref@capitalise - \crefname{Hfootnote}{Footnote}{Footnotes} \crefname{abstract}{Abstract}{Abstracts} \else - \crefname{Hfootnote}{footnote}{footnotes} \crefname{abstract}{abstract}{abstracts} \fi }{} \pp@languagesettrue } - \def\pp@language@german{% - \def\pp@pdf@info{Details} - \def\pp@pdf@name{Name: } - \def\pp@pdf@unknown{Unbekannt} - \def\pp@pdf@size{Gr\string\366\string\337e: } - \def\pp@pdf@mime{MIME-Typ: } - \def\pp@pdf@bytes{ Byte} - \def\pp@pdf@author{Verfasser: } - \def\pp@pdf@subject{Thema: } - \def\pp@pdf@desc{Beschreibung: } - \def\pp@pdf@crd{Erstellt: } - \def\pp@pdf@mod{Ge\string\344ndert am: } - \def\pp@pdf@lid{Ort in Dokument: } - \def\pp@pdf@pl{" + pp_pl + " \string\(Seite " + pp_page + "\string\)} - \def\pp@pdf@nopl{Seite " + pp_page + "} - \def\pp@pdf@tab{Registerkarte \string\\"Anlagen\string\\"} - \def\pp@pdf@fasubj{Dateianlage "\pp@filename"} - \def\pp@pdf@openmsg@fivetitle{Eingebettete Dateien} - \def\pp@pdf@openmsg@five{Dieses Dokument enth\string\344lt " + pp_efcount + " eingebettete Datei\string\(en\string\).\string\\n\string\\nVerwenden Sie das Men\string\374 \string\\"Datei \string\273 Dokumenteigenschaften \string\273 Dateianlagen\string\\" um diese Dateien anzuzeigen.} - \def\pp@pdf@openmsg@fiveinbrowser{Dieses Dokument enth\string\344lt " + pp_efcount + " eingebettete Datei\string\(en\string\).\string\\n\string\\nUm diese Dateien anzuzeigen, klicken Sie zuerst auf die Schaltfl\string\344che \string\\"Speichern\string\\" um eine Kopie dieses Dokuments zu speichern. \string\326ffnen Sie dann die Kopie mit dem Adobe\string\256 Acrobat\string\256 Programm, und verwenden Sie das Men\string\374 \string\\"Datei \string\273 Dokumenteigenschaften \string\273 Dateianlagen\string\\".} - \def\pp@pdf@openmsg@sixtitle{Dateianlagen} - \def\pp@pdf@openmsg@six{Dieses Dokument hat " + \string\(pp_efcount + pp_facount\string\) + " Dateianlage\string\(n\string\).\string\\n\string\\nVerwenden Sie das Men\string\374 \string\\"Dokument \string\273 Dateianlagen\string\\" um diese Anlagen anzuzeigen.} - \def\pp@pdf@openmsg@sixinbrowser{Dieses Dokument hat " + \string\(pp_efcount + pp_facount\string\) + " Dateianlage\string\(n\string\).\string\\n\string\\nUm diese Anlagen anzuzeigen, klicken Sie auf das kleine schwarze Dreieck \string\374ber dem vertikalen Fensterlaufbalken und w\string\344hlen Sie \string\\"Dateianlagen\string\\".} + \pp@pdfstrings@german + \def\pp@loastring{Dateianlagenverzeichnis} \def\pp@optionsstring{\\\tiny\textbf{Optionen: }\sc} \def\pp@infostring{Details} \def\pp@savestring{Kopie~speichern\dots} \def\pp@launchstring{Datei~\"{o}ffnen} \def\pp@tabstring{Registerkarte~``Anlagen''} \@ifpackageloaded{babel}{\addtocontents{loa}{\protect\select@language{german}}}{} - \def\pp@loastring{Dateianlagenverzeichnis} - \def\pp@br@abstractstring{Zusammenfassung} \def\pp@br@pagestring{Seite} \def\pp@br@documentstring{(Dokument)} \ifHy@backref @@ -183,31 +218,29 @@ { \renewcommand*{\backrefalt}[4]{% \setlength{\pp@offset}{\baselineskip}% - \\\footnotesize(Zitiert in + \\\scriptsize(Zitiert in \setlength{\baselineskip}{\pp@offset}% ##2.) } } { - \renewcommand*{\backrefalt}[4]{\\\footnotesize(Zitiert\ in: ##2.)} + \renewcommand*{\backrefalt}[4]{\\\scriptsize(Zitiert\ in: ##2.)} } \fi \ifx\backrefxxx\hyper@page@backref \renewcommand*{\backrefalt}[4]{% \ifcase##1% \or% - \\\footnotesize(Zitiert auf Seite ##2.) + \\\scriptsize(Zitiert auf Seite ##2.) \else% - \\\footnotesize(Zitiert auf den Seiten ##2.) + \\\scriptsize(Zitiert auf den Seiten ##2.) \fi% } \fi \fi \@ifpackageloaded{cleveref} { - \Crefname{Hfootnote}{Fu\ss note}{Fu\ss noten} \Crefname{abstract}{Zusammenfassung}{Zusammenfassungen} - \crefname{Hfootnote}{Fu\ss note}{Fu\ss noten} \crefname{abstract}{Zusammenfassung}{Zusammenfassungen} }{} \pp@languagesettrue @@ -365,6 +398,7 @@ \special{papersize=\the\paperwidth,\the\paperheight} +\pp@PScatcodes \pp@HeaderPS{ true setglobal /pp.globaldict 5 dict def @@ -468,22 +502,22 @@ begin /T [ - 16\string#d76aa478 16\string#e8c7b756 16\string#242070db 16\string#c1bdceee - 16\string#f57c0faf 16\string#4787c62a 16\string#a8304613 16\string#fd469501 - 16\string#698098d8 16\string#8b44f7af 16\string#ffff5bb1 16\string#895cd7be - 16\string#6b901122 16\string#fd987193 16\string#a679438e 16\string#49b40821 - 16\string#f61e2562 16\string#c040b340 16\string#265e5a51 16\string#e9b6c7aa - 16\string#d62f105d 16\string#02441453 16\string#d8a1e681 16\string#e7d3fbc8 - 16\string#21e1cde6 16\string#c33707d6 16\string#f4d50d87 16\string#455a14ed - 16\string#a9e3e905 16\string#fcefa3f8 16\string#676f02d9 16\string#8d2a4c8a - 16\string#fffa3942 16\string#8771f681 16\string#6d9d6122 16\string#fde5380c - 16\string#a4beea44 16\string#4bdecfa9 16\string#f6bb4b60 16\string#bebfbc70 - 16\string#289b7ec6 16\string#eaa127fa 16\string#d4ef3085 16\string#04881d05 - 16\string#d9d4d039 16\string#e6db99e5 16\string#1fa27cf8 16\string#c4ac5665 - 16\string#f4292244 16\string#432aff97 16\string#ab9423a7 16\string#fc93a039 - 16\string#655b59c3 16\string#8f0ccc92 16\string#ffeff47d 16\string#85845dd1 - 16\string#6fa87e4f 16\string#fe2ce6e0 16\string#a3014314 16\string#4e0811a1 - 16\string#f7537e82 16\string#bd3af235 16\string#2ad7d2bb 16\string#eb86d391 + 16#d76aa478 16#e8c7b756 16#242070db 16#c1bdceee + 16#f57c0faf 16#4787c62a 16#a8304613 16#fd469501 + 16#698098d8 16#8b44f7af 16#ffff5bb1 16#895cd7be + 16#6b901122 16#fd987193 16#a679438e 16#49b40821 + 16#f61e2562 16#c040b340 16#265e5a51 16#e9b6c7aa + 16#d62f105d 16#02441453 16#d8a1e681 16#e7d3fbc8 + 16#21e1cde6 16#c33707d6 16#f4d50d87 16#455a14ed + 16#a9e3e905 16#fcefa3f8 16#676f02d9 16#8d2a4c8a + 16#fffa3942 16#8771f681 16#6d9d6122 16#fde5380c + 16#a4beea44 16#4bdecfa9 16#f6bb4b60 16#bebfbc70 + 16#289b7ec6 16#eaa127fa 16#d4ef3085 16#04881d05 + 16#d9d4d039 16#e6db99e5 16#1fa27cf8 16#c4ac5665 + 16#f4292244 16#432aff97 16#ab9423a7 16#fc93a039 + 16#655b59c3 16#8f0ccc92 16#ffeff47d 16#85845dd1 + 16#6fa87e4f 16#fe2ce6e0 16#a3014314 16#4e0811a1 + 16#f7537e82 16#bd3af235 16#2ad7d2bb 16#eb86d391 ] def /F [ @@ -492,14 +526,14 @@ ] def /R [ - 16\string#0007 16\string#010c 16\string#0211 16\string#0316 16\string#0407 16\string#050c 16\string#0611 16\string#0716 - 16\string#0807 16\string#090c 16\string#0a11 16\string#0b16 16\string#0c07 16\string#0d0c 16\string#0e11 16\string#0f16 - 16\string#0105 16\string#0609 16\string#0b0e 16\string#0014 16\string#0505 16\string#0a09 16\string#0f0e 16\string#0414 - 16\string#0905 16\string#0e09 16\string#030e 16\string#0814 16\string#0d05 16\string#0209 16\string#070e 16\string#0c14 - 16\string#0504 16\string#080b 16\string#0b10 16\string#0e17 16\string#0104 16\string#040b 16\string#0710 16\string#0a17 - 16\string#0d04 16\string#000b 16\string#0310 16\string#0617 16\string#0904 16\string#0c0b 16\string#0f10 16\string#0217 - 16\string#0006 16\string#070a 16\string#0e0f 16\string#0515 16\string#0c06 16\string#030a 16\string#0a0f 16\string#0115 - 16\string#0806 16\string#0f0a 16\string#060f 16\string#0d15 16\string#0406 16\string#0b0a 16\string#020f 16\string#0915 + 16#0007 16#010c 16#0211 16#0316 16#0407 16#050c 16#0611 16#0716 + 16#0807 16#090c 16#0a11 16#0b16 16#0c07 16#0d0c 16#0e11 16#0f16 + 16#0105 16#0609 16#0b0e 16#0014 16#0505 16#0a09 16#0f0e 16#0414 + 16#0905 16#0e09 16#030e 16#0814 16#0d05 16#0209 16#070e 16#0c14 + 16#0504 16#080b 16#0b10 16#0e17 16#0104 16#040b 16#0710 16#0a17 + 16#0d04 16#000b 16#0310 16#0617 16#0904 16#0c0b 16#0f10 16#0217 + 16#0006 16#070a 16#0e0f 16#0515 16#0c06 16#030a 16#0a0f 16#0115 + 16#0806 16#0f0a 16#060f 16#0d15 16#0406 16#0b0a 16#020f 16#0915 ] def /W 1 31 bitshift 0 gt def /A W { /add } { /md5add } ifelse def @@ -561,38 +595,34 @@ { 2 copy xor 0 lt % if one is positive and one is negative, can't overflow { add } % if both are positive or negative - { 16\string#80000000 xor add 16\string#80000000 xor } % same as subtracting (or adding) 2^31 and then subtracting (or adding) it back. + { 16#80000000 xor add 16#80000000 xor } % same as subtracting (or adding) 2^31 and then subtracting (or adding) it back. ifelse } bind def } { - /md5add {add 16\string#0FFFFFFFF and} bind def + /md5add {add 16#0FFFFFFFF and} bind def } ifelse /md5.init % arguments: screen_update_rate(ms), file { /md5.file exch def /md5.rate exch def - /a 16\string#67452301 def - /b 16\string#efcdab89 def - /c 16\string#98badcfe def - /d 16\string#10325476 def + /a 16#67452301 def + /b 16#efcdab89 def + /c 16#98badcfe def + /d 16#10325476 def /x 16 array def /md5.eof false def /md5.console (\%stdout) (w) file def /md5.consolewidth 80 def - /md5.00000000b 2\string#00000000 def - /md5.10000000b 2\string#10000000 def - /md5.00000111b 2\string#00000111 def - /md5.11111111b 2\string#11111111 def - /md5.sizebyte0 md5.00000000b def - /md5.sizebyte1 md5.00000000b def - /md5.sizebyte2 md5.00000000b def - /md5.sizebyte3 md5.00000000b def - /md5.sizebyte4 md5.00000000b def - /md5.sizebyte5 md5.00000000b def - /md5.sizebyte6 md5.00000000b def - /md5.sizebyte7 md5.00000000b def + /md5.sizebyte0 2#00000000 def + /md5.sizebyte1 2#00000000 def + /md5.sizebyte2 2#00000000 def + /md5.sizebyte3 2#00000000 def + /md5.sizebyte4 2#00000000 def + /md5.sizebyte5 2#00000000 def + /md5.sizebyte6 2#00000000 def + /md5.sizebyte7 2#00000000 def \ifpp@fish /md5.time realtime def /md5.fish (\string\074\string\047\string\050\string\050\string\076\string\173) def @@ -664,10 +694,10 @@ /md5.carry false def 0 1 7 { - 1 index 1 index -8 mul bitshift md5.11111111b and + 1 index 1 index -8 mul bitshift 2#11111111 and exch 1 string cvs (md5.sizebyte?) exch 1 index exch 12 exch putinterval - exch 1 index cvx exec md5.carry {1 add} if add dup md5.11111111b gt /md5.carry exch def - exch cvn exch md5.11111111b and def + exch 1 index cvx exec md5.carry {1 add} if add dup 2#11111111 gt /md5.carry exch def + exch cvn exch 2#11111111 and def } for md5.carry @@ -690,13 +720,13 @@ } def /md5.filesize { - /md5.carry md5.00000000b def + /md5.carry 2#00000000 def 7 -1 0 { 1 string cvs (md5.sizebyte?) exch 1 index exch 12 exch putinterval cvx exec md5.carry - 1 index md5.00000111b and 8 bitshift /md5.carry exch def + 1 index 2#00000111 and 8 bitshift /md5.carry exch def add -3 bitshift } @@ -719,14 +749,14 @@ } loop counttomark 8 mul md5.addtomsgsize - md5.10000000b + 2#10000000 counttomark 56 gt { - 65 counttomark sub {md5.00000000b} repeat + 65 counttomark sub {2#00000000} repeat md5.calc } if - 57 counttomark sub {md5.00000000b} repeat + 57 counttomark sub {2#00000000} repeat md5.msgsize md5.calc pop @@ -1274,7 +1304,7 @@ } if {8 index} - {[(Illegal timezone offset ") 10 index (" discarded.)] pp.concat pp.warning} + {[(Illegal timezone offset `) 10 index (' discarded.)] pp.concat pp.warning} ifelse ] pp.concat exch pop @@ -1505,14 +1535,14 @@ { [(Illegal annotation flags `) 2 index (' discarded.)] pp.concat pp.warning pop - 2\string#00000000000000000000000000000100 + 2#00000000000000000000000000000100 } { - dup 2\string#11111111111111111111110000000000 and 0 ne + dup 2#11111111111111111111110000000000 and 0 ne { [(Reserved flag bits \string\(positions 11-32\string\) - of annotation flags 2\string#) 2 index 2 32 string cvrs ( set to 0.)] pp.concat pp.warning - 2\string#00000000000000000000001111111111 and + of annotation flags 2#) 2 index 2 32 string cvrs ( set to 0.)] pp.concat pp.warning + 2#00000000000000000000001111111111 and } if } @@ -1823,6 +1853,21 @@ end } put } +\pp@TeXcatcodes + +\let\pp@backup@begin\begin +\renewcommand{\begin}[1]{% + \global\expandafter\let\csname pp@saved@before#1@cref@currentlabel\endcsname\cref@currentlabel% + \global\expandafter\let\csname pp@saved@before#1@@currentHref\endcsname\@currentHref% + \pp@backup@begin{#1}% +} + +\let\pp@backup@end\end +\renewcommand{\end}[1]{% + \pp@backup@end{#1}% + \global\expandafter\let\expandafter\@currentHref\csname pp@saved@before#1@@currentHref\endcsname% + \global\expandafter\let\expandafter\cref@currentlabel\csname pp@saved@before#1@cref@currentlabel\endcsname% +} \newif\ifpp@subfigure \pp@subfigurefalse @@ -1831,13 +1876,7 @@ \pp@subfiguretrue% \pp@backup@@subfigure% } - -\let\pp@backup@endfigure\endfigure -\renewcommand{\endfigure}{% - \global\let\@currentHref\Hy@saved@currentHref% - \pp@subfigurefalse% - \pp@backup@endfigure% -} +\g@addto@macro{\endfigure}{\pp@subfigurefalse}% \def\Gin@setfile#1#2#3{% \ifx\\#2\\\Gread@false\fi @@ -1902,23 +1941,11 @@ \box\z@ \fi} -\let\pp@backup@endtable\endtable -\renewcommand{\endtable}{% - \global\let\@currentHref\Hy@saved@currentHref% - \pp@backup@endtable% -} - -\let\pp@backup@endminipage\endminipage -\renewcommand{\endminipage}{% - \global\let\@currentHref\pp@backup@mpcurrentHref% - \pp@backup@endminipage% -} - \@ifundefined{abstract}{}{ \let\pp@backup@abstract\abstract \renewcommand{\abstract}{% - \protected@edef\cref@currentlabel{[abstract][][]}% - \def\@currentHref{abstract}% + \protected@xdef\cref@currentlabel{[abstract][][]}% + \gdef\@currentHref{abstract}% \hyper@anchorstart{abstract}% \hyper@anchorend% \pp@backup@abstract% @@ -1926,10 +1953,6 @@ } \renewcommand{\capstart}{% - \if@minipage% - \global\let\pp@backup@mpcurrentHref\@currentHref% - \fi% - \global\let\Hy@saved@currentHref\@currentHref% \ifcapstart \H@refstepcounter\@captype % first part of caption \hyper@makecurrent{\@captype} @@ -2127,20 +2150,20 @@ \global\let\Hy@saved@currentHref\@currentHref \hyper@makecurrent{Hfootnote}% \global\let\Hy@footnote@currentHref\@currentHref + \global\let\@currentHref\Hy@saved@currentHref \ifHy@draft% \@makefnmark% \else% \pp@hyperfootnote% \fi% - \global\let\@currentHref\Hy@saved@currentHref \ifhmode\spacefactor\@x@sf\fi \relax } \let\pp@backup@@footnotetext\@footnotetext \renewcommand{\@footnotetext}[1]{% - \let\pp@backup@cref@currentlabel\cref@currentlabel% + \let\pp@saved@beforefootnote@cref@currentlabel\cref@currentlabel% \pp@backup@@footnotetext{#1}% - \let\cref@currentlabel\pp@backup@cref@currentlabel% + \let\cref@currentlabel\pp@saved@beforefootnote@cref@currentlabel% } \let\pp@backup@H@@footnotetext\H@@footnotetext \renewcommand{\H@@footnotetext}[1]{% @@ -2220,25 +2243,30 @@ \@bsphack% \ifpp@detailedbr% \else% - \ifx\backrefxxx\pp@backref@page% + \ifpp@pagebackref% \def\pp@br@currentHref{page.\thepage}% \else% - \def\pp@br@currentHref{\@currentHref}% + \ifx\@currentHref\@empty% + \def\pp@br@currentHref{Doc-Start}% + \else% + \def\pp@br@currentHref{\@currentHref}% + \fi% \fi% \fi% - \ifx\@currentlabel\@empty% - \protected@write\@auxout{}{% - \string\@writefile{brf}{% - \string\backcite{#1}{{\thepage}{\pp@br@documentstring}{\pp@br@currentHref}}% - }% - }% + \ifpp@pagebackref% + \def\pp@string{\pp@br@pagestring~\thepage}% \else% - \protected@write\@auxout{}{% - \string\@writefile{brf}{% - \string\backcite{#1}{{\thepage}{\@currentlabel}{\pp@br@currentHref}}% - }% - }% + \ifx\@currentlabel\@empty% + \def\pp@string{\pp@br@documentstring}% + \else% + \def\pp@string{\@currentlabel}% + \fi% \fi% + \protected@write\@auxout{}{% + \string\@writefile{brf}{% + \string\backcite{#1}{{\thepage}{\pp@string}{\pp@br@currentHref}}% + }% + }% \@esphack% } @@ -2267,11 +2295,17 @@ \@bsphack% \ifpp@detailedbr% \else% - \def\pp@br@currentHref{\@currentHref}% - \fi% - \edef\pp@labelcaption{\@currentlabel}% - \expandafter\@cref@gettype\cref@currentlabel\@nil{\pp@labeltype}% - \ifx\backrefxxx\pp@backref@section% + \ifpp@pagebackref% + \def\pp@br@currentHref{page.\thepage}% + \else% + \def\pp@br@currentHref{\@currentHref}% + \fi% + \fi% + \ifpp@pagebackref% + \def\pp@string{\pp@br@pagestring~\thepage}% + \else% + \edef\pp@labelcaption{\@currentlabel}% + \expandafter\@cref@gettype\cref@currentlabel\@nil{\pp@labeltype}% \@ifundefined{Cref@\pp@labeltype @name}% {% \PackageWarning{hypdvips}{\string\Cref\space reference format for label type `\pp@labeltype'\MessageBreak undefined in reference `\pp@labelcaption'.\MessageBreak Back-referencing to page `\thepage'.\MessageBreak}% @@ -2290,13 +2324,6 @@ \else% \def\pp@string{\pp@labelname~\pp@labelcaption}% \fi% - \fi% - \ifx\backrefxxx\pp@backref@page% - \def\pp@string{\pp@br@pagestring~\thepage}% - \ifpp@detailedbr% - \else% - \def\pp@br@currentHref{page.\thepage}% - \fi% \fi% \protected@write\@auxout{}{% \string\@writefile{brf}{% @@ -2384,14 +2411,14 @@ \define@key[pp]{attachfile}{name}{\def\pp@fa@name{#1}} \define@key[pp]{attachfile}{opacity}{\pp@PSenc\pp@fa@opacity{#1}} \define@boolkey+[pp]{attachfile}[pp@]{overprint}[true]{\def\pp@string{#1}\ifx\pp@string\@empty\PackageWarning{hypdvips}{Illegal option `\XKV@tkey\space= #1' discarded.\MessageBreak}\pp@overprintfalse\fi}{\PackageWarning{hypdvips}{Illegal option `\XKV@tkey\space= #1' discarded.\MessageBreak}\pp@overprintfalse} -\define@key[pp]{attachfile}{print}[]{\PackageWarning{hypdvips}{Option `print' in \string\attachfile\space is obsolete.\MessageBreak Use option `flags' to set the "Print" flag.\MessageBreak}} +\define@key[pp]{attachfile}{print}[]{\PackageWarning{hypdvips}{Option `print' in \string\attachfile\space is obsolete.\MessageBreak Use option `flags' to set the `Print' flag.\MessageBreak}} \define@key[pp]{attachfile}{rect}{\pp@PSenc\pp@fa@rect{#1}} \define@key[pp]{attachfile}{resourcefork}{\pp@PSenc\pp@fa@forkpath{#1}} \define@key[pp]{attachfile}{size}{\pp@PSenc\pp@string{#1}\pp@SDictPS{(\pp@string) pp.size}} \define@key[pp]{attachfile}{subject}{\pdfstringdef\pp@fa@subj{#1}} \define@key[pp]{attachfile}{text}{\def\pp@fa@caption{#1}} \define@key[pp]{attachfile}{timezone}{\pp@PSenc\pp@fa@timezone{#1}} -\define@key[pp]{attachfile}{zoom}[]{\PackageWarning{hypdvips}{Option `zoom' in \string\attachfile\space is obsolete.\MessageBreak Use option `flags' to set the "NoZoom" flag.\MessageBreak}} +\define@key[pp]{attachfile}{zoom}[]{\PackageWarning{hypdvips}{Option `zoom' in \string\attachfile\space is obsolete.\MessageBreak Use option `flags' to set the `NoZoom' flag.\MessageBreak}} \presetkeys[pp]{attachfile}{}{color={\@embeddedbordercolor},flags=4,icon=paperclip,opacity=1,overprint=false,timezone=} \newcounter{pp@AttachmentID} \setcounter{pp@AttachmentID}{1} @@ -2909,52 +2936,19 @@ \fi% } -\newcounter{pp@backrefID} -\setcounter{pp@backrefID}{1} -\ifpp@detailedbr - \let\pp@backup@@cite\@cite - \def\@cite{% - \ifHy@draft% - \else% - \ifHy@backref% - \setlength{\pp@offset}{\the\baselineskip}% - \pp@SDictPS{/pdf@hoff -2 /pdf@voff \strip@pt\pp@offset\space pp.BPToPDF pp.savecurrentpoint}% - \pp@SDictPS{mark /Dest (backref.\arabic{pp@backrefID}) cvn /View [/\@pdfview \@pdfviewparams] /DEST pdfmark}% - \else% - \fi% - \fi% - \edef\pp@br@currentHref{backref.\arabic{pp@backrefID}}% - \stepcounter{pp@backrefID}% - \pp@backup@@cite% - } - -\fi \edef\@backrefcolor{\@citecolor} \edef\@backrefbordercolor{\@citebordercolor} -\long\def\pp@backref@section#1#2#3{% +\long\def\pp@backref@callback#1#2#3{% \edef\Hy@pstringDest{#3}% - \ifHy@draft% - #2% + \ifpp@pagebackref% + \def\pp@string{#1}% \else% - \pdfmark[#2]{% - pdfmark=/ANN,% - linktype=backref,% - Subtype=/Link,% - AcroHighlight=\@pdfhighlight,% - Border=\@pdfborder,% - BorderStyle=\@pdfborderstyle,% - Color=\@backrefbordercolor,% - View={/\@pdfview \@pdfviewparams},% - Dest={\Hy@pstringDest}% - }% + \def\pp@string{#2}% \fi% - } -\long\def\pp@backref@page#1#2#3{% - \edef\Hy@pstringDest{#3}% \ifHy@draft% - #1% + \pp@string% \else% - \pdfmark[#1]{% + \pdfmark[\pp@string]{% pdfmark=/ANN,% linktype=backref,% Subtype=/Link,% @@ -2967,15 +2961,43 @@ }% \fi% } -\ifHy@backref - \renewcommand*{\backref}[1]{}% for backref < 1.33 necessary + +\@ifundefined{backrefxxx} + { + } + { + \newif\ifpp@pagebackref + \pp@pagebackreffalse + \ifx\backrefxxx\page@backref + \pp@pagebackreftrue + \fi \ifx\backrefxxx\hyper@page@backref - \let\backrefxxx\pp@backref@page% + \pp@pagebackreftrue + \let\backrefxxx\pp@backref@callback \fi \ifx\backrefxxx\hyper@section@backref - \let\backrefxxx\pp@backref@section% + \let\backrefxxx\pp@backref@callback \fi -\fi + \ifHy@backref + \renewcommand*{\backref}[1]{}% for backref < 1.33 necessary + \fi + \newcounter{pp@backrefID} + \setcounter{pp@backrefID}{1} + \ifpp@detailedbr + \let\pp@backup@@cite\@cite + \def\@cite{% + \ifHy@draft% + \else% + \setlength{\pp@offset}{\the\baselineskip}% + \pp@SDictPS{/pdf@hoff -2 /pdf@voff \strip@pt\pp@offset\space pp.BPToPDF pp.savecurrentpoint}% + \pp@SDictPS{mark /Dest (backref.\arabic{pp@backrefID}) cvn /View [/\@pdfview \@pdfviewparams] /DEST pdfmark}% + \fi% + \edef\pp@br@currentHref{backref.\arabic{pp@backrefID}}% + \stepcounter{pp@backrefID}% + \pp@backup@@cite% + } + \fi + } \ifHy@draft \def\HyPL@SetPageLabels{} @@ -3183,7 +3205,7 @@ {% \@ifundefined{pp@go@target}% {% - \edef\Hy@pstringDest{\pp@go@destination\space in file "\pp@go@filename"}% + \edef\Hy@pstringDest{\pp@go@destination\space in file `\pp@go@filename'}% \pdfmark[#2]{% pdfmark=/ANN,% linktype=file,% @@ -3202,7 +3224,7 @@ }% }% {% - \edef\Hy@pstringDest{\pp@go@destination\space in <<\pp@go@target>> of file "\pp@go@filename"}% + \edef\Hy@pstringDest{\pp@go@destination\space in <<\pp@go@target>> of file `\pp@go@filename'}% \pdfmark[#2]{% pdfmark=/ANN,% linktype=file,% @@ -3280,6 +3302,30 @@ } \fi +\newcommand{\pp@jsbutton}[3]{% arguments: {caption}{color}{code} + \ifHy@draft% + #1% + \else% + \ifpp@javascript% + \def\Hy@pstringDest{<JavaScript\noexpand™ code>}% + \pdfmark[#1]{% + pdfmark=/ANN,% + linktype=#2,% + Subtype=/Link,% + AcroHighlight=\@pdfhighlight,% + Border=\@pdfborder,% + BorderStyle=\@pdfborderstyle,% + Color={\csname @#2bordercolor\endcsname},% + Action={<< /Type /Action /S /JavaScript /JS (#3) >>},% + }% + \else% + #1% + \fi% + \fi% +} + +\pp@PScatcodes +\catcode`\#=6 % \newcommand{\pp@runattachment}[2]{% arguments: {attachment_id}{text} \ifnum#1>0% \setcounter{pp@id}{#1}% @@ -3303,28 +3349,6 @@ \fi% } -\newcommand{\pp@jsbutton}[3]{% arguments: {caption}{color}{code} - \ifHy@draft% - #1% - \else% - \ifpp@javascript% - \def\Hy@pstringDest{<JavaScript\noexpand™ code>}% - \pdfmark[#1]{% - pdfmark=/ANN,% - linktype=#2,% - Subtype=/Link,% - AcroHighlight=\@pdfhighlight,% - Border=\@pdfborder,% - BorderStyle=\@pdfborderstyle,% - Color={\csname @#2bordercolor\endcsname},% - Action={<< /Type /Action /S /JavaScript /JS (#3) >>},% - }% - \else% - #1% - \fi% - \fi% -} - \newcommand{\pp@faibutton}[1]{% arguments: {attachment_id} \ifnum#1>0% \pp@jsbutton{\pp@infostring}{menu} @@ -3381,6 +3405,7 @@ \pp@jsbutton{\pp@launchstring}{menu}{this.exportDataObject \string\( \string{cName: "Attachment #1", nLaunch: 2\string} \string\);}% \fi% } +\pp@TeXcatcodes \newcommand{\pp@tabbutton}{% \def\Hy@pstringDest{<Named action: ShowHideFileAttachment>}% @@ -3431,7 +3456,7 @@ pdfmark=/DEST,% linktype=anchor,% View={/\@pdfview \@pdfviewparams},% - Dest={\@currentHlabel.note: "\pp@string"}% + Dest={\@currentHlabel.note: \pp@string}% }% }% \renewcommand{\tnote}[1]{% @@ -3451,7 +3476,7 @@ BorderStyle=\@pdfborderstyle,% Color=\@tablenotebordercolor,% View={/\@pdfview \@pdfviewparams},% - Dest={\@currentHlabel.note: "\pp@string"}% + Dest={\@currentHlabel.note: \pp@string}% }% \fi}}% } @@ -3487,40 +3512,30 @@ \fi \fi }{} + %% %% Exported commands: %% -\ifpp@dvips - \providecommand{\attachfile}[2][]{\pp@attachfile[#1]{#2}}% arguments: [options]{filename} - \providecommand{\backrefbordercolor}[1]{\gdef\@backrefbordercolor{#1}}% arguments: {R G B} - \providecommand{\backrefcolor}[1]{\gdef\@backrefcolor{#1}}% arguments: {color} - \providecommand{\bmstyle}[2]{\bookmarkdefinestyle{#1}{#2}}% arguments: {level}{style} - \providecommand{\embeddedbordercolor}[1]{\gdef\@embeddedbordercolor{#1}}% arguments: {R G B} - \providecommand{\embeddedcolor}[1]{\gdef\@embeddedcolor{#1}}% arguments: {color} - \providecommand{\embedfile}[2][]{\pp@embedfile[#1]{#2}}% arguments: [options]{filename} - \providecommand{\evenboxesstring}[1]{\gdef\pp@ABC{#1}}% arguments: {string} - \providecommand{\file}[2]{\pp@file{#1}{#2}}% arguments: {filename}{description} - \providecommand{\footnotebordercolor}[1]{\gdef\@footnotebordercolor{#1}}% arguments: {R G B} - \providecommand{\footnotecolor}[1]{\gdef\@footnotecolor{#1}}% arguments: {color} - \providecommand{\goto}[2][]{\pp@goto[#1]{#2}}% arguments: [options]{text} - \providecommand{\gotoparent}[2]{\pp@goto[dest={#1},target=/R/P]{#2}}% arguments: {destination}{text} - \providecommand{\loaformat}[4]{\pp@loaformat{#1}{#2}{#3}{#4}}% arguments: {attachment_id}{attachment_type}{filename}{options} - \providecommand{\odest}[2]{\pp@odest{#1}{#2}}% arguments: {name}{offset} - \providecommand{\openaction}[1]{\def\pp@openaction{#1}}% arguments: {action} - \providecommand{\pagelabel}[2][]{\pp@pagelabel[#1]{#2}}% {pagenumber}{pagelabel} - \providecommand{\runattachment}[2]{\pp@runattachment{#1}{#2}}% arguments: {attachment_id}{text} - \providecommand{\tablenotebordercolor}[1]{\gdef\@tablenotebordercolor{#1}}% arguments: {R G B} - \providecommand{\tablenotecolor}[1]{\gdef\@tablenotecolor{#1}}% arguments: {color} -\else - \@ifundefined{pdfmark}{\newcommand{\pdfmark}[2][]{#1}}{} - \def\@pdfview{Fit} - \let\@pdfviewparams\@empty -\fi -\@ifpackageloaded{cleveref} - { - \let\autoref\cref - \let\Autoref\Cref - }{} +\providecommand{\attachfile}[2][]{\pp@attachfile[#1]{#2}}% arguments: [options]{filename} +\providecommand{\backrefbordercolor}[1]{\gdef\@backrefbordercolor{#1}}% arguments: {R G B} +\providecommand{\backrefcolor}[1]{\gdef\@backrefcolor{#1}}% arguments: {color} +\providecommand{\bmstyle}[2]{\bookmarkdefinestyle{#1}{#2}}% arguments: {level}{style} +\providecommand{\embeddedbordercolor}[1]{\gdef\@embeddedbordercolor{#1}}% arguments: {R G B} +\providecommand{\embeddedcolor}[1]{\gdef\@embeddedcolor{#1}}% arguments: {color} +\providecommand{\embedfile}[2][]{\pp@embedfile[#1]{#2}}% arguments: [options]{filename} +\providecommand{\evenboxesstring}[1]{\gdef\pp@ABC{#1}}% arguments: {string} +\providecommand{\file}[2]{\pp@file{#1}{#2}}% arguments: {filename}{description} +\providecommand{\footnotebordercolor}[1]{\gdef\@footnotebordercolor{#1}}% arguments: {R G B} +\providecommand{\footnotecolor}[1]{\gdef\@footnotecolor{#1}}% arguments: {color} +\providecommand{\goto}[2][]{\pp@goto[#1]{#2}}% arguments: [options]{text} +\providecommand{\gotoparent}[2]{\pp@goto[dest={#1},target=/R/P]{#2}}% arguments: {destination}{text} +\providecommand{\loaformat}[4]{\pp@loaformat{#1}{#2}{#3}{#4}}% arguments: {attachment_id}{attachment_type}{filename}{options} +\providecommand{\odest}[2]{\pp@odest{#1}{#2}}% arguments: {name}{offset} +\providecommand{\openaction}[1]{\def\pp@openaction{#1}}% arguments: {action} +\providecommand{\pagelabel}[2][]{\pp@pagelabel[#1]{#2}}% {pagenumber}{pagelabel} +\providecommand{\runattachment}[2]{\pp@runattachment{#1}{#2}}% arguments: {attachment_id}{text} +\providecommand{\tablenotebordercolor}[1]{\gdef\@tablenotebordercolor{#1}}% arguments: {R G B} +\providecommand{\tablenotecolor}[1]{\gdef\@tablenotecolor{#1}}% arguments: {color} %% %% End of file `hypdvips.sty'. %%
\ No newline at end of file |