diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/hyperref.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/hyperref/hyperref.sty | 49 |
1 files changed, 46 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty index 777459a5046..77e0e906700 100644 --- a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty +++ b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty @@ -25,7 +25,7 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{hyperref} - [2008/04/17 v6.77q + [2008/04/20 v6.77s Hypertext links for LaTeX] \begingroup \@makeother\`% @@ -129,6 +129,7 @@ \newif\ifHy@nesting \newif\ifHy@newwindowset \newif\ifHy@newwindow +\newif\ifHy@ocgcolorlinks \newif\ifHy@pageanchor \newif\ifHy@pagelabels \newif\ifHy@pdfpagehidden @@ -2363,6 +2364,21 @@ \let\@pdfborderstyle\@empty \fi } +\define@key{Hyp}{ocgcolorlinks}[true]{% + \Hy@boolkey{ocgcolorlinks}{#1}% +} +\AtBeginDocument{% + \begingroup + \@ifundefined{OBJ@OCG@view}{% + \ifHy@ocgcolorlinks + \Hy@Warning{% + Driver does not support `ocgcolorlinks',\MessageBreak + using `colorlinks' instead% + }% + \fi + }{}% + \endgroup +} \define@key{Hyp}{frenchlinks}[true]{% \Hy@boolkey{frenchlinks}{#1}% } @@ -2768,9 +2784,9 @@ \Hy@DisableOption{nolinks}% \Hy@DisableOption{final}% } -\Hy@DisableOption{pdfversion}% \Hy@DisableOption{pdfa} \ifHy@pdfa + \setkeys{Hyp}{pdfversion=1.4}% \def\Hy@Acrobatmenu#1#2{% \leavevmode \begingroup @@ -3017,6 +3033,9 @@ \Hy@DisableOption{latex2html} \Hy@DisableOption{ps2pdf} \Hy@DisableOption{xetex} +\AtEndOfPackage{% + \Hy@DisableOption{pdfversion}% +} \def\WriteBookmarks{0} \def\@bookmarkopenstatus#1{% \ifHy@bookmarksopen @@ -3047,6 +3066,20 @@ \fi \Hy@DisableOption{bookmarks} \AtBeginDocument{% + \ifHy@ocgcolorlinks + \setkeys{Hyp}{colorlinks}% + \ifHy@pdfa + \Hy@Warning{% + PDF/A: Optional Content Groups are prohibited,\MessageBreak + using `colorlinks' instead of `ocgcolorlinks'% + }% + \Hy@ocgcolorlinksfalse + \fi + \fi + \ifHy@ocgcolorlinks + \else + \Hy@DisableOption{ocgcolorlinks}% + \fi \ifHy@colorlinks \ifHy@typexml \else @@ -3054,7 +3087,7 @@ \fi \def\Hy@colorlink#1{% \begingroup - \HyColor@UseColor#1% + \HyColor@UseColor#1% }% \def\Hy@endcolorlink{\endgroup}% \Hy@Info{Link coloring ON}% @@ -4120,6 +4153,16 @@ \else \Hy@Info{Link coloring OFF}% \fi +\ifHy@ocgcolorlinks + \Hy@Info{Link coloring with OCG ON}% +\else + \Hy@Info{Link coloring with OCG OFF}% +\fi +\ifHy@pdfa + \Hy@Info{PDF/A mode ON}% +\else + \Hy@Info{PDF/A mode OFF}% +\fi \edef\hyper@hash{\string#} \edef\hyper@tilde{\string~} \edef\hyper@quote{\string"} |