summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/hyperref/hyperref.dtx')
-rw-r--r--Master/texmf-dist/source/latex/hyperref/hyperref.dtx157
1 files changed, 80 insertions, 77 deletions
diff --git a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
index e6723a8e2c4..a72da763908 100644
--- a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
+++ b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
@@ -44,7 +44,7 @@
%<puenc>\ProvidesFile{puenc.def}
%<puvnenc>\ProvidesFile{puvnenc.def}
%<puarenc>\ProvidesFile{puarenc.def}
-%<!none> [2010/11/26 v6.81v %
+%<!none> [2010/12/03 v6.81w %
%<package> Hypertext links for LaTeX]
%<nohyperref> Dummy hyperref (SR)]
%<driver> Hyperref documentation driver file]
@@ -139,7 +139,7 @@
\end{document}
%</driver>
% \fi
-% \CheckSum{28073}
+% \CheckSum{28076}
%
% \MakeShortVerb{|}
% \StopEventually{}
@@ -7021,9 +7021,7 @@
\Hy@AtBeginDocument{%
\ifHy@texht
\else
- \pdf@ifdraftmode{}{%
- \Hy@CatcodeWrapper\ReadBookmarks
- }%
+ \Hy@CatcodeWrapper\ReadBookmarks
\fi
}
% \end{macrocode}
@@ -9803,13 +9801,16 @@
\fi
\def\Hy@appendixstring{appendix}
\def\Hy@chapapp{\Hy@chapterstring}
-\let\HyOrg@appendix\appendix
-\def\appendix{%
- \ltx@IfUndefined{chapter}%
- {\gdef\theHsection{\Alph{section}}}%
- {\gdef\theHchapter{\Alph{chapter}}}%
- \xdef\Hy@chapapp{\Hy@appendixstring}%
- \HyOrg@appendix
+\ltx@IfUndefined{appendix}{%
+}{%
+ \let\HyOrg@appendix\appendix
+ \def\appendix{%
+ \ltx@IfUndefined{chapter}%
+ {\gdef\theHsection{\Alph{section}}}%
+ {\gdef\theHchapter{\Alph{chapter}}}%
+ \xdef\Hy@chapapp{\Hy@appendixstring}%
+ \HyOrg@appendix
+ }%
}
% \end{macrocode}
% \begin{macro}{\Hy@Test@alph}
@@ -18708,82 +18709,84 @@
% \begin{macrocode}
%<*!vtex>
\def\ReadBookmarks{%
- \begingroup
- \def\do##1{%
- \ifnum\catcode`##1=\active
- \@makeother##1%
- \else
- \ifnum\catcode`##1=6 %
+ \pdf@ifdraftmode{}{%
+ \begingroup
+ \def\do##1{%
+ \ifnum\catcode`##1=\active
\@makeother##1%
+ \else
+ \ifnum\catcode`##1=6 %
+ \@makeother##1%
+ \fi
\fi
+ }%
+ \dospecials
+ \Hy@safe@activestrue
+ \escapechar=`\\%
+ \def\@@BOOKMARK[##1][##2]##3##4##5{%
+ \calc@bm@number{##5}%
+ }%
+ \InputIfFileExists{\jobname.out}{}{}%
+ \ifx\WriteBookmarks\relax
+ \global\let\WriteBookmarks\relax
\fi
- }%
- \dospecials
- \Hy@safe@activestrue
- \escapechar=`\\%
- \def\@@BOOKMARK[##1][##2]##3##4##5{%
- \calc@bm@number{##5}%
- }%
- \InputIfFileExists{\jobname.out}{}{}%
- \ifx\WriteBookmarks\relax
- \global\let\WriteBookmarks\relax
- \fi
- \def\@@BOOKMARK[##1][##2]##3##4##5{%
- \def\Hy@temp{##4}%
+ \def\@@BOOKMARK[##1][##2]##3##4##5{%
+ \def\Hy@temp{##4}%
%<*pdftex>
- \Hy@pstringdef\Hy@pstringName{\HyperDestNameFilter{##3}}%
- \Hy@OutlineName{}\Hy@pstringName{%
- ##2\check@bm@number{##3}%
- }{%
- \expandafter\strip@prefix\meaning\Hy@temp
- }%
+ \Hy@pstringdef\Hy@pstringName{\HyperDestNameFilter{##3}}%
+ \Hy@OutlineName{}\Hy@pstringName{%
+ ##2\check@bm@number{##3}%
+ }{%
+ \expandafter\strip@prefix\meaning\Hy@temp
+ }%
%</pdftex>
%<*pdfmark>
- \pdfmark{%
- pdfmark=/OUT,%
- Count={##2\check@bm@number{##3}},%
- Dest={##3},%
- Title=\expandafter\strip@prefix\meaning\Hy@temp
- }%
+ \pdfmark{%
+ pdfmark=/OUT,%
+ Count={##2\check@bm@number{##3}},%
+ Dest={##3},%
+ Title=\expandafter\strip@prefix\meaning\Hy@temp
+ }%
%</pdfmark>
%<*dvipdfm|xetex>
- \Hy@pstringdef\Hy@pstringName{\HyperDestNameFilter{##3}}%
- \@pdfm@mark{%
- outline \ifHy@DvipdfmxOutlineOpen
- [%
- \ifnum##21>\z@
- \else
- -%
+ \Hy@pstringdef\Hy@pstringName{\HyperDestNameFilter{##3}}%
+ \@pdfm@mark{%
+ outline \ifHy@DvipdfmxOutlineOpen
+ [%
+ \ifnum##21>\z@
+ \else
+ -%
+ \fi
+ ] %
\fi
- ] %
- \fi
- ##1<<%
- /Title(\expandafter\strip@prefix\meaning\Hy@temp)%
- /A<<%
- /S/GoTo%
- /D(\Hy@pstringName)%
+ ##1<<%
+ /Title(\expandafter\strip@prefix\meaning\Hy@temp)%
+ /A<<%
+ /S/GoTo%
+ /D(\Hy@pstringName)%
+ >>%
>>%
- >>%
- }%
+ }%
%</dvipdfm|xetex>
- }%
- {%
- \def\WriteBookmarks{0}%
- \InputIfFileExists{\jobname.out}{}{}%
- }%
- %{\escapechar\m@ne\InputIfFileExists{\jobname.out}{}{}}%
- \ifx\WriteBookmarks\relax
- \else
- \if@filesw
- \newwrite\@outlinefile
- \Hy@OutlineRerunCheck
- \immediate\openout\@outlinefile=\jobname.out\relax
- \ifHy@typexml
- \immediate\write\@outlinefile{<relaxxml>\relax}%
- \fi
- \fi
- \fi
- \endgroup
+ }%
+ \begingroup
+ \def\WriteBookmarks{0}%
+ \InputIfFileExists{\jobname.out}{}{}%
+ \endgroup
+ %{\escapechar\m@ne\InputIfFileExists{\jobname.out}{}{}}%
+ \endgroup
+ }%
+ \ifx\WriteBookmarks\relax
+ \else
+ \if@filesw
+ \newwrite\@outlinefile
+ \Hy@OutlineRerunCheck
+ \immediate\openout\@outlinefile=\jobname.out\relax
+ \ifHy@typexml
+ \immediate\write\@outlinefile{<relaxxml>\relax}%
+ \fi
+ \fi
+ \fi
}
%<*pdftex>
\def\Hy@OutlineName#1#2#3#4{%