diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht/natbib.4ht')
-rw-r--r-- | Master/texmf-dist/tex/generic/tex4ht/natbib.4ht | 141 |
1 files changed, 141 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/natbib.4ht b/Master/texmf-dist/tex/generic/tex4ht/natbib.4ht new file mode 100644 index 00000000000..2c3f34a9ad8 --- /dev/null +++ b/Master/texmf-dist/tex/generic/tex4ht/natbib.4ht @@ -0,0 +1,141 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% natbib.4ht 2005-10-23-04:19 % +% Copyright (C) 1999--2005 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 % +% 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. % +% % +% This work has the LPPL maintenance status "maintained".% +% % +% This Current Maintainer of this work % +% is Eitan M. Gurari. % +% % +% 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 % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\immediate\write-1{version 2005-10-23-04:19} + + +\HRestore\@lbibitem +\HRestore\@bibitem +\ifNAT@super + \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} +\catcode`\:12 +\def\NAT@citexnum[#1][#2]#3{% + \NAT@sort@cites{#3}% + \let\@citea\@empty + \@cite{\def\NAT@num{-1}\let\NAT@last@yr\relax\let\NAT@nm\@empty + \@for\@citeb:=\NAT@cite@list\do + {\edef\@citeb{\expandafter\@firstofone\@citeb}% + \if@filesw\immediate\write\@auxout{\string\citation{\@citeb}}\fi + \@ifundefined{b@\@citeb\@extra@b@citeb}{% + {\reset@font\bfseries?} + \NAT@citeundefined\PackageWarning{natbib}% + {Citation `\@citeb' on page \thepage \space undefined}}% + {\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 + \ifNAT@swa + \ifnum\NAT@ctype=2\relax\@citea + \hyper@natlinkstart{\@citeb\@extra@b@citeb}% + \NAT@test{2}\hyper@natlinkend\else + \ifnum\NAT@sort>1 + \begingroup\catcode`\_8 + \ifcat _\ifnum\z@<0\NAT@num _\else A\fi + \global\let\NAT@nm=\NAT@num \else \gdef\NAT@nm{-2}\fi + \ifcat _\ifnum\z@<0\NAT@last@num _\else A\fi + \global\@tempcnta\NAT@last@num + \global\advance\@tempcnta \@ne + \else \global\@tempcnta\m@ne\fi + \endgroup + \ifnum\NAT@nm=\@tempcnta + \ifx\NAT@last@yr\relax + \edef\NAT@last@yr{\@citea + \mbox{\csname nb:link\endcsname\NAT@num}}% + \else + \edef\NAT@last@yr{--\penalty + \@m\mbox{\csname nb:link\endcsname\NAT@num}}% + \fi + \else + \NAT@last@yr \@citea \mbox{\csname nb:link\endcsname\NAT@num}% + \let\NAT@last@yr\relax + \fi + \else + \@citea \mbox{\hyper@natlinkstart{\@citeb\@extra@b@citeb}\NAT@num + \hyper@natlinkend}% + \fi + \fi + \def\@citea{\NAT@sep\penalty\@m\NAT@space}% + \else + \ifcase\NAT@ctype\relax + \ifx\NAT@last@nm\NAT@nm \NAT@yrsep\penalty\@m\NAT@space\else + \@citea \NAT@test{1}\ \NAT@@open + \if\relax#1\relax\else#1\ \fi\fi \NAT@mbox{% + \hyper@natlinkstart{\@citeb\@extra@b@citeb}% + \NAT@num\hyper@natlinkend}% + \def\@citea{\NAT@@close\NAT@sep\penalty\@m\ }% + \or\@citea + \hyper@natlinkstart{\@citeb\@extra@b@citeb}% + \NAT@test{1}\hyper@natlinkend + \def\@citea{\NAT@sep\penalty\@m\ }% + \or\@citea + \hyper@natlinkstart{\@citeb\@extra@b@citeb}\NAT@test{2}% + \hyper@natlinkend + \def\@citea{\NAT@sep\penalty\@m\ }% + \fi + \fi + }}% + \ifnum\NAT@sort>1\NAT@last@yr\fi + \ifNAT@swa\else\ifnum\NAT@ctype=0\if\relax#2\relax\else + \NAT@cmt\ #2\fi \NAT@@close\fi\fi}{#1}{#2}} + \let\@citex\NAT@citexnum +\catcode`\:11 + +\else + \def\hyper@natlinkstart#1{% + \let\rel:hyper\def \hyper@linkstart{cite}{X#1}% + \def\hyper@nat@current{#1}% + } + \def\hyper@natlinkbreak#1#2{% + \hyper@linkend#1\let\rel:hyper\def \hyper@linkstart{cite}{X#2}% + } + \def\hyper@natlinkend{\hyper@linkend} + \expandafter\ifx \csname hyper@linkstart\endcsname\relax + \def\hyper@linkstart#1#2{% + \def\:temp{#1}% + \ifx\:temp\@urltype + \Link[#2]{}{}% + \else + \ifx\rel:hyper\def\Link{#2}{}\else\Link[\##2]{}{}\fi + \fi \global\let\rel:hyper=\:UnDef + } + \def\hyper@linkend{\EndLink} +\fi +\long\def\:temp#1{}\ifx \:temp\hyper@natanchorstart + \def\hyper@natanchorstart#1{\Link{}{X#1}\EndLink} +\fi + +\fi +\Hinput{natbib} +\endinput + |