diff options
author | Karl Berry <karl@freefriends.org> | 2008-05-10 00:31:48 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2008-05-10 00:31:48 +0000 |
commit | 3affd633834494c279f96078e95831935ea51ca7 (patch) | |
tree | d18cbef6ade390df34099bff78c593f00e9d7971 /Master/texmf-dist/tex/generic/tex4ht/natbib.4ht | |
parent | 78d169458ffb8d121d56a1345471b5dbe3f17a2a (diff) |
tex4ht-1.0.2008_05_07_2048
git-svn-id: svn://tug.org/texlive/trunk@8000 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht/natbib.4ht')
-rw-r--r-- | Master/texmf-dist/tex/generic/tex4ht/natbib.4ht | 45 |
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} |