summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/tex4ht/nameref.4ht
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht/nameref.4ht')
-rwxr-xr-xMaster/texmf-dist/tex/generic/tex4ht/nameref.4ht34
1 files changed, 26 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/nameref.4ht b/Master/texmf-dist/tex/generic/tex4ht/nameref.4ht
index 98882658343..949c1d265ff 100755
--- a/Master/texmf-dist/tex/generic/tex4ht/nameref.4ht
+++ b/Master/texmf-dist/tex/generic/tex4ht/nameref.4ht
@@ -1,15 +1,15 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% nameref.4ht 2007-01-03-21:02 %
-% Copyright (C) 2005--2007 Eitan M. Gurari %
+% nameref.4ht 2008-02-28-20:51 %
+% Copyright (C) 2005--2008 Eitan M. Gurari %
% %
% This work may be distributed and/or modified under the %
% conditions of the LaTeX Project Public License, either %
-% version 1.3 of this license or (at your option) any %
+% version 1.3c of this license or (at your option) any %
% later version. The latest version of this license is %
% in %
% http://www.latex-project.org/lppl.txt %
-% and version 1.3 or later is part of all distributions %
-% of LaTeX version 2003/12/01 or later. %
+% and version 1.3c or later is part of all distributions %
+% of LaTeX version 2005/12/01 or later. %
% %
% This work has the LPPL maintenance status "maintained".%
% %
@@ -24,14 +24,15 @@
% gurari@cse.ohio-state.edu %
% http://www.cse.ohio-state.edu/~gurari %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\immediate\write-1{version 2007-01-03-21:02}
+\immediate\write-1{version 2008-02-28-20:51}
- \def\prf:label{{\ifx \NR:Title\:UnDef \else \NR:Title\fi}{}{}}%
+ \let\ltx@label\label
+\def\prf:label{{\ifx \NR:Title\:UnDef \else \NR:Title\fi}{}{}}%
\let\NR:StartSec\:StartSec
\def\:StartSec#1#2#3{%
\gdef\NR:Title{\a:newlabel{#3}}%
\NR:StartSec{#1}{#2}{#3}%
- \gdef\@currentlabelname{#3}%
+ \gdef\@currentlabelname{#1}%
}
\def\:tempc#1#2#3#4#5#6[#7]#8{%
\gdef\NR:Title{\a:newlabel{#7}}%
@@ -74,6 +75,23 @@
\@safe@activesfalse
}
+ \Configure{newlabel}
+ {\cur:th \:currentlabel}
+ {\string\csname\space
+ :autoref\string\endcsname {\@currentlabelname}#1}
+\ifx \@currentlabelname\:UnDef
+ \let\@currentlabelname\empty
+\fi
+\append:defI\refstepcounter{\def\@currentlabelname{#1}}
+\pend:def\eqnarray{\def\@currentlabelname{equation}}
+\pend:def\equation{\def\@currentlabelname{equation}}
+\ifx \figure\:UnDef \else
+ \pend:def\figure{\def\@currentlabelname{figure}}
+ \expandafter\pend:def\csname
+ figure*\endcsname{\def\@currentlabelname{figure}}
+\fi
+\pend:defII\:thm{\def\@currentlabelname{##1}}
+
\Hinput{nameref}
\endinput