diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/hyperref/hyperref.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/hyperref/hyperref.dtx | 62 |
1 files changed, 57 insertions, 5 deletions
diff --git a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx index 05c4781607a..7a6d07cb33d 100644 --- a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx +++ b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx @@ -38,7 +38,7 @@ %<puenc>\ProvidesFile{puenc.def} %<puvnenc>\ProvidesFile{puvnenc.def} %<puarenc>\ProvidesFile{puarenc.def} -%<!none> [2008/09/13 v6.78j +%<!none> [2008/09/27 v6.78k %<package> Hypertext links for LaTeX] %<nohyperref> Dummy hyperref (SR)] %<driver> Hyperref documentation driver file] @@ -114,7 +114,7 @@ \end{document} %</driver> % \fi -% \CheckSum{24287} +% \CheckSum{24334} % % \MakeShortVerb{|} % \StopEventually{} @@ -5546,6 +5546,49 @@ \Hy@DisableOption{bookmarks} % \end{macrocode} % +% Add wrapper for setting standard catcodes (babel's shorthands). +% \begin{macrocode} +\def\Hy@CatcodeWrapper#1{% + \def\Hy@EndWrap{}% + \def\TMP@EnsureCode##1##2{% + \edef\Hy@EndWrap{% + \Hy@EndWrap + \catcode##1 \the\catcode##1\relax + }% + \catcode##1 ##2\relax + }% + \TMP@EnsureCode{10}{12}% ^^J + \TMP@EnsureCode{33}{12}% ! + \TMP@EnsureCode{34}{12}% " + \TMP@EnsureCode{36}{3}% $ (math) + \TMP@EnsureCode{38}{4}% & (alignment) + \TMP@EnsureCode{39}{12}% ' + \TMP@EnsureCode{40}{12}% ( + \TMP@EnsureCode{41}{12}% ) + \TMP@EnsureCode{42}{12}% * + \TMP@EnsureCode{43}{12}% + + \TMP@EnsureCode{44}{12}% , + \TMP@EnsureCode{45}{12}% - + \TMP@EnsureCode{46}{12}% . + \TMP@EnsureCode{47}{12}% / + \TMP@EnsureCode{58}{12}% : + \TMP@EnsureCode{59}{12}% ; + \TMP@EnsureCode{60}{12}% < + \TMP@EnsureCode{61}{12}% = + \TMP@EnsureCode{62}{12}% > + \TMP@EnsureCode{63}{12}% ? + \TMP@EnsureCode{91}{12}% [ + \TMP@EnsureCode{93}{12}% ] + \TMP@EnsureCode{94}{7}% ^ (superscript) + \TMP@EnsureCode{95}{8}% _ (subscript) + \TMP@EnsureCode{96}{12}% ` + \TMP@EnsureCode{124}{12}% | + \TMP@EnsureCode{126}{13}% ~ (active) + #1\relax + \Hy@EndWrap +} +% \end{macrocode} +% % |\HyColor@UseColor| expects a macro as argument. It contains % the color specification. % \begin{macrocode} @@ -5569,7 +5612,9 @@ \let\@pdfborderstyle\@empty \ifHy@typexml \else - \RequirePackage{color}% + \Hy@CatcodeWrapper{% + \RequirePackage{color}% + }% \fi \def\Hy@colorlink#1{% \begingroup @@ -5612,7 +5657,12 @@ \Hy@safe@activesfalse }% \else - \ifHy@typexml\else\RequirePackage{nameref}\fi + \ifHy@typexml + \else + \Hy@CatcodeWrapper{% + \RequirePackage{nameref}% + }% + \fi \fi \DeclareRobustCommand\ref{\@ifstar\@refstar\T@ref}% \DeclareRobustCommand\pageref{% @@ -5622,7 +5672,9 @@ \AfterBeginDocument{% \ifHy@texht \else - \ReadBookmarks + \Hy@CatcodeWrapper{% + \ReadBookmarks + }% \fi } % \end{macrocode} |