From 5bd02106a52ef99c949ae00b8b3b9657a36ba044 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 19 Jan 2013 23:33:14 +0000 Subject: natbib.4ht from tex4ht r99 git-svn-id: svn://tug.org/texlive/trunk@28879 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/generic/tex4ht/natbib.4ht | 37 +++++++++++++++++++++---- 1 file changed, 31 insertions(+), 6 deletions(-) (limited to 'Master/texmf-dist/tex') 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 . % % % % 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\nb@link{\NAT@num}\Tg + \def\@citea{\unskip\NAT@sep\penalty\@m\space}% + }% +} \def\NAT@citexnum[#1][#2]#3{% \NAT@sort@cites{#3}% \let\@citea\@empty -- cgit v1.2.3