diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/hyperref/nameref.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/hyperref/nameref.dtx | 38 |
1 files changed, 25 insertions, 13 deletions
diff --git a/Master/texmf-dist/source/latex/hyperref/nameref.dtx b/Master/texmf-dist/source/latex/hyperref/nameref.dtx index 7aa3251e3c5..fff510b9bf6 100644 --- a/Master/texmf-dist/source/latex/hyperref/nameref.dtx +++ b/Master/texmf-dist/source/latex/hyperref/nameref.dtx @@ -30,17 +30,19 @@ %<driver>\ProvidesFile{nameref.drv} % \fi % \ProvidesFile{nameref.dtx} - [2012/07/28 v2.41 Cross-referencing by name of section]% + [2012/07/31 v2.42 Cross-referencing by name of section]% % -% \CheckSum{696} +% \CheckSum{700} % % \iffalse %<*driver> \documentclass{ltxdoc} \usepackage[numbered]{hypdoc} \usepackage{bmhydoc} +\usepackage{hologo} \EnableCrossrefs \CodelineIndex +\newcommand*{\xpackage}[1]{\textsf{#1}} \begin{document} \GetFileInfo{nameref.sty}% \title{% @@ -119,7 +121,7 @@ % % We redefine |\label| so that it also writes the name of the % current section to the .aux file; if the name ends in a dot, -% we zap it. To allow for the hyperref package, also write +% we zap it. To allow for the \xpackage{hyperref} package, also write % fourth and fifth fields (empty by default; % used for cross-ref name, and file). % \begin{macro}{\NR@strip@period} @@ -128,6 +130,15 @@ % \end{macrocode} % \end{macro} % +% \begin{macro}{\strip@period} +% Macro \cs{strip@period} was removed in \xpackage{nameref} +% 2012/07/28 v2.41 and reinserted in 2012/07/31 v2.42 for compatibilty +% reasons with package \xpackage{subfig}. +% \begin{macrocode} +\def\strip@period#1.\relax#2\@@@{#1} +% \end{macrocode} +% \end{macro} +% % \begin{macrocode} \def\NR@sanitize@labelname{% \@onelevel@sanitize\@currentlabelname @@ -140,8 +151,8 @@ % % \subsection{\cs{label} stuff} % -% Here is tested, whether package showkeys is loaded. -% But if option final is used, the macros of showkeys +% Here is tested, whether package \xpackage{showkeys} is loaded. +% But if option final is used, the macros of \xpackage{showkeys} % are not defined, so we have to check an additional % test. % \begin{macro}{\ifNR@showkeys} @@ -241,7 +252,7 @@ } % \end{macrocode} % \end{macro} -% Overload an AMS \LaTeX\ command, which uses |\newlabel|. Sigh! +% Overload an AMS \hologo{LaTeX} command, which uses |\newlabel|. Sigh! % \begin{macro}{\@writetocindents@} % \begin{macrocode} \def\@writetocindents@{% @@ -529,7 +540,7 @@ % We have to redefine |\ref| and |\pageref| to know about extra % reference elements. Make them robust, and compatible with Babel. % The Babel switch is mimicked if not already defined. -% Some support for package |showkeys| is implemented. If +% Some support for package \xpackage{showkeys} is implemented. If % option |notref| of that package is set, |\SK@ref| has the % meaning of |\@empty|. % \begin{macro}{\@safe@activestrue} @@ -606,11 +617,12 @@ \fi \fi % \end{macrocode} -% Package |hyperref| uses its own definitions of |\ref| and +% Package \xpackage{hyperref} uses its own definitions of |\ref| and % |\pageref| because it extends the syntax by the star form. -% |\DeclareRobustCommand| is used by hyperref. -% Package |nameref| can be loaded before, after hyperref or after -% hyperref's definitions in |\AtBeginDocument|. +% |\DeclareRobustCommand| is used by \xpackage{hyperref}. +% Package |nameref| can be loaded before, after +% \xpackage{hyperref} or after +% \xpackage{hyperref}'s definitions in |\AtBeginDocument|. % \begin{macrocode} \@ifpackageloaded{hyperref}{% }{% @@ -719,7 +731,7 @@ % \subsection{Compatibility with varioref} % % [This section was derived by Corey Minyard \texttt{minyard@acm.org} -% from the varioref package] +% from the \xpackage{varioref} package] % \begin{macrocode} \AtBeginDocument{% \ifx\csname @@vpageref\endcsname\relax @@ -846,7 +858,7 @@ }% % \end{macrocode} % -% \subsection{Support for listings} +% \subsection{Support for package \xpackage{listings}} % % \begin{macrocode} \AtBeginDocument{% |