From 2101024e5e179f4877fea0ee75597a4691c6dbf1 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Sun, 5 Apr 2009 20:50:43 +0000
Subject: hyperref update (4apr)

git-svn-id: svn://tug.org/texlive/trunk@12636 c570f23f-e606-0410-a88d-b1316a301751
---
 .../texmf-dist/source/latex/hyperref/hyperref.dtx  | 69 ++++++++++++++++++++--
 1 file changed, 65 insertions(+), 4 deletions(-)

(limited to 'Master/texmf-dist/source/latex/hyperref/hyperref.dtx')

diff --git a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
index 068d9875ac4..9c7243af0b6 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>  [2009/02/22 v6.78p
+%<!none>  [2009/04/04 v6.78q
 %<package>  Hypertext links for LaTeX]
 %<nohyperref>  Dummy hyperref (SR)]
 %<driver>  Hyperref documentation driver file]
@@ -114,7 +114,7 @@
 \end{document}
 %</driver>
 % \fi
-% \CheckSum{24498}
+% \CheckSum{24557}
 %
 % \MakeShortVerb{|}
 % \StopEventually{}
@@ -1063,6 +1063,9 @@
     \let\small\@empty
     \let\tiny\@empty
     \let\mathversion\@gobble
+    \let\phantom\@gobble
+    \let\vphantom\@gobble
+    \let\hphantom\@gobble
 %    \end{macrocode}
 %
 % \paragraph{Package color.}
@@ -1070,6 +1073,12 @@
     \def\textcolor##1##{\@secondoftwo}%
 %    \end{macrocode}
 %
+% \paragraph{Upper- and lowercase.}
+%    \begin{macrocode}
+    \def\MakeUppercase{\MakeUppercaseIsNotSupportedInPdfStrings}%
+    \def\MakeLowercase{\MakeLowercaseIsNotSupportedInPdfStrings}%
+%    \end{macrocode}
+%
 % \paragraph{Package babel.}
 %    Whereever ``naturalnames'' is used, disable \cs{textlatin}
 %    (from Babel 3.6k). Thanks to Felix Neubauer
@@ -1162,6 +1171,9 @@
 %    \begin{macrocode}
     \def\halign{\pdfstringdefWarn\halign\@gobble}%
 %    \end{macrocode}
+%    \begin{macrocode}
+    \let\ignorespaces\HyPsd@ignorespaces
+%    \end{macrocode}
 %
 % \paragraph{Patch for cjk bookmarks.}
 %    \begin{macrocode}
@@ -1804,6 +1816,29 @@
 %
 % \subsection{Help macros for expansion}
 %
+% \subsubsection{\cs{ignorespaces}}
+%
+%    \begin{macro}{\HyPsd@ignorespaces}
+%    With the help of a trick using \cs{romannumeral} the
+%    effect of \cs{ignorespaces} can be simulated a little,
+%    In a special case using an alphabetic constant
+%    \cs{romannumeral} eats an optional space. If the constant
+%    is zero, then the \cs{romannumeral} expression vanishes.
+%    The following macro uses this trick twice, thus \cs{HyPsd@ignorespaces}
+%    eats up to two following spaces.^^A
+%    \begin{macrocode}
+\begingroup
+  \catcode0=12 %
+  \def\x{\endgroup
+    \def\HyPsd@ignorespaces{%
+      \romannumeral\expandafter`\expandafter^^@%
+      \romannumeral`^^@%
+    }%
+  }%
+\x
+%    \end{macrocode}
+%    \end{macro}
+%
 % \subsubsection{Babel languages}
 %    \begin{macrocode}
 \newif\ifHy@next
@@ -3661,7 +3696,10 @@
 %    \begin{macrocode}
 \def\Hy@boolkey{\@dblarg\Hy@@boolkey}
 \def\Hy@@boolkey[#1]#2#3{%
-  \lowercase{\def\Hy@tempa{#3}}%
+  \edef\Hy@tempa{#3}%
+  \lowercase\expandafter{%
+    \expandafter\def\expandafter\Hy@tempa\expandafter{\Hy@tempa}%
+  }%
   \ifx\Hy@tempa\@empty
     \let\Hy@tempa\Hy@true
   \fi
@@ -4237,7 +4275,10 @@
   \fi
 }
 \define@key{Hyp}{pagebackref}[true]{%
-  \lowercase{\def\Hy@tempa{#1}}%
+  \edef\Hy@tempa{#1}%
+  \lowercase\expandafter{%
+    \expandafter\def\expandafter\Hy@tempa\expandafter{\Hy@tempa}%
+  }%
   \ifx\Hy@tempa\@empty
     \let\Hy@tempa\Hy@true
   \fi
@@ -10559,6 +10600,10 @@
   \leavevmode
   \protected@edef\Hy@testname{#2}%
   \ifx\Hy@testname\@empty
+    \Hy@Warning{%
+      Empty destination name,\MessageBreak
+      using `\Hy@undefinedname'%
+    }%
     \let\Hy@testname\Hy@undefinedname
   \else
     \Hy@pstringdef\Hy@testname{%
@@ -11727,6 +11772,10 @@
 \def\hyper@linkstart#1#2{%
   \protected@edef\Hy@testname{#2}%
   \ifx\Hy@testname\@empty
+    \Hy@Warning{%
+      Empty destination name,\MessageBreak
+      using `\Hy@undefinedname'%
+    }%
     \let\Hy@testname\Hy@undefinedname
   \else
     \Hy@pstringdef\Hy@testname{%
@@ -12153,6 +12202,10 @@
   \else
     \protected@edef\Hy@testname{#2}%
     \ifx\Hy@testname\@empty
+      \Hy@Warning{%
+        Empty destination name,\MessageBreak
+        using `\Hy@undefinedname'%
+      }%
       \let\Hy@testname\Hy@undefinedname
     \fi
     \special{!%
@@ -12220,6 +12273,10 @@
   \leavevmode
   \protected@edef\Hy@testname{#2}%
   \ifx\Hy@testname\@empty
+    \Hy@Warning{%
+      Empty destination name,\MessageBreak
+      using `\Hy@undefinedname'%
+    }%
     \let\Hy@testname\Hy@undefinedname
   \fi
   \special{!%
@@ -12906,6 +12963,10 @@
   \begingroup
     \protected@edef\Hy@testname{#2}%
     \ifx\Hy@testname\@empty
+      \Hy@Warning{%
+        Empty destination name,\MessageBreak
+        using `\Hy@undefinedname'%
+      }%
       \let\Hy@testname\Hy@undefinedname
     \fi
     \pdfmark[{#3}]{%
-- 
cgit v1.2.3

