summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/tex4ht/natbib.4ht
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht/natbib.4ht')
-rw-r--r--Master/texmf-dist/tex/generic/tex4ht/natbib.4ht45
1 files changed, 27 insertions, 18 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/natbib.4ht b/Master/texmf-dist/tex/generic/tex4ht/natbib.4ht
index 6452f14cdec..bf41f9ee52a 100644
--- a/Master/texmf-dist/tex/generic/tex4ht/natbib.4ht
+++ b/Master/texmf-dist/tex/generic/tex4ht/natbib.4ht
@@ -1,15 +1,15 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% natbib.4ht 2007-01-03-21:02 %
-% Copyright (C) 1999--2007 Eitan M. Gurari %
+% natbib.4ht 2008-02-28-20:51 %
+% Copyright (C) 1999--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,7 +24,7 @@
% 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}
\HRestore\@lbibitem
@@ -35,6 +35,13 @@
\c@NAT@ctr}\EndLink \gdef\bib:anc{}}%
\def\AnchorLabel{\bib:anc}}
\def\nb:link#1{\Protect\Link{bibitem#1}{}#1\Protect\EndLink}
+\let\nat:lbibitem\@lbibitem
+\def\@lbibitem{
+ \ifx\hyper@natanchorstart\@gobble
+ \def\hyper@natanchorstart##1{\Link{}{bibitem\the
+ \c@NAT@ctr}\EndLink}\fi
+ \nat:lbibitem
+}
\catcode`\:12
\def\NAT@citexnum[#1][#2]#3{%
\NAT@sort@cites{#3}%
@@ -71,21 +78,28 @@
\ifnum\NAT@nm=\@tempcnta
\ifx\NAT@last@yr\relax
\edef\NAT@last@yr{\@citea
- \o:mbox:{\csname nb:link\endcsname
+ \csname o:mbox:\endcsname{\csname nb:link\endcsname
\NAT@num}}%
\else
\edef\NAT@last@yr{--\penalty
- \@m\o:mbox:{\csname nb:link\endcsname
+ \@m\csname o:mbox:\endcsname{\csname nb:link\endcsname
\NAT@num}}%
\fi
\else
- \NAT@last@yr \@citea \o:mbox:{\csname nb:link\endcsname
+ \NAT@last@yr \@citea \csname o:mbox:\endcsname{\csname nb:link\endcsname
\NAT@num}%
\let\NAT@last@yr\relax
\fi
\else
- \@citea \o:mbox:{\hyper@natlinkstart{\@citeb\@extra@b@citeb}\NAT@num
- \hyper@natlinkend}%
+ \@citea \csname o:mbox:\endcsname
+ {\ifx\hyper@natanchorstart\@gobble
+ \Link{bibitem\NAT@num}{}\NAT@num
+ \EndLink
+ \else
+ \hyper@natlinkstart{\@citeb\@extra@b@citeb}\NAT@num
+ \hyper@natlinkend
+ \fi
+ }%
\fi
\fi
\def\@citea{\NAT@sep\penalty\@m\NAT@space}%
@@ -138,13 +152,8 @@
\def\hyper@natanchorstart#1{\Link{}{X#1}\EndLink}
\fi
- \let\o:NAT@citexnum:\NAT@citexnum
-\def\NAT@citexnum[#1][#2]#3{%
- \let\sv:mbox\mbox
- \let\mbox\o:mbox:
- \o:NAT@citexnum:[#1][#2]{#3}%
- \let\mbox\sv:mbox
-}
+ \pend:defIII\NAT@cite{\let\mbox\o:mbox:}
+\pend:defIII\NAT@citenum{\let\mbox\o:mbox:}
\fi
\Hinput{natbib}