diff options
author | Karl Berry <karl@freefriends.org> | 2013-01-19 23:33:14 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-01-19 23:33:14 +0000 |
commit | 5bd02106a52ef99c949ae00b8b3b9657a36ba044 (patch) | |
tree | c3b0390c40c3b3bff13762442d58fd1904e53406 | |
parent | ef8e0d0207b02d009234e83d15b764cadbe2985a (diff) |
natbib.4ht from tex4ht r99
git-svn-id: svn://tug.org/texlive/trunk@28879 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/tex/generic/tex4ht/natbib.4ht | 37 |
1 files changed, 31 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/natbib.4ht b/Master/texmf-dist/tex/generic/tex4ht/natbib.4ht index cabde8b1106..620216407db 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/natbib.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/natbib.4ht @@ -1,6 +1,7 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% natbib.4ht 2009-05-21-09:32 % +% natbib.4ht 2013-01-19-12:33 % % Copyright (C) 1999--2009 Eitan M. Gurari % +% 2009--2013 TeX Users Group % % % % This work may be distributed and/or modified under the % % conditions of the LaTeX Project Public License, either % @@ -14,35 +15,59 @@ % This work has the LPPL maintenance status "maintained".% % % % This Current Maintainer of this work % -% is Eitan M. Gurari. % +% is the TeX4ht Project <tex4ht@tug.org>. % % % % If you modify this program your changing its signature % % with a directive of the following form will be % % appreciated. % % \message{signature} % % % -% gurari@cse.ohio-state.edu % -% http://www.cse.ohio-state.edu/~gurari % +% tex4ht@tug.org % +% http://www.tug.org/tex4ht % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\immediate\write-1{version 2009-05-21-09:32} +\immediate\write-1{version 2013-01-19-12:33} \HRestore\@lbibitem \HRestore\@bibitem \ifNAT@super + \def\citet{\@ifstar{\NAT@longnamestrue\ht@citet}% + {\NAT@longnamesfalse\ht@citet}} + \def\setb:anc#1{\let\sv:anc\AnchorLabel \def\bib:anc{\Link{}{bibitem\the \c@NAT@ctr}\EndLink \gdef\bib:anc{}}% \def\AnchorLabel{\bib:anc}} \def\nb:link#1{\Protect\Link{bibitem#1}{}#1\Protect\EndLink} +\def\nb@link#1{\Protect\Link{bibitem#1}{}#1\Protect\EndLink} \let\nat:lbibitem\@lbibitem -\def\@lbibitem{ +\def\@lbibitem{% \ifx\hyper@natanchorstart\@gobble \def\hyper@natanchorstart##1{\Link{}{bibitem\the \c@NAT@ctr}\EndLink}\fi \nat:lbibitem } \catcode`\:12 + \def\ht@citet#1{\def\NAT@num{-1}\let\NAT@last@yr\relax\let\NAT@nm\@empty + \let\@citea\@empty + \@for\@citeb:=#1\do{% + \@ifundefined{b@\@citeb\@extra@b@citeb}% + {{\reset@font\bfseries?}\NAT@citeundefined\PackageWarning{natbib}% + {Citation `\@citeb' on page \thepage \space undefined}% + }% + {\@citea\let\NAT@last@num\NAT@num\let\NAT@last@nm\NAT@nm + \NAT@parse{\@citeb}% + \ifNAT@longnames\@ifundefined{bv@\@citeb\@extra@b@citeb}{% + \let\NAT@name=\NAT@all@names + \global\@namedef{bv@\@citeb\@extra@b@citeb}{}}{}% + \fi + \ifNAT@full\let\NAT@nm\NAT@all@names\else + \let\NAT@nm\NAT@name + \fi + \NAT@nm}\Tg<sup>\nb@link{\NAT@num}\Tg</sup> + \def\@citea{\unskip\NAT@sep\penalty\@m\space}% + }% +} \def\NAT@citexnum[#1][#2]#3{% \NAT@sort@cites{#3}% \let\@citea\@empty |