diff options
author | Karl Berry <karl@freefriends.org> | 2015-08-21 22:47:21 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-08-21 22:47:21 +0000 |
commit | 3c02af60c2e6306448456cb4c4f93fb5665f718d (patch) | |
tree | bb9ce7c0bcdb68435ba19a7ddfee826048615973 /Master/texmf-dist | |
parent | 42a9c18fa3d5cb69289538cfc584f723b4046acb (diff) |
biblatex.4ht
git-svn-id: svn://tug.org/texlive/trunk@38176 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/tex/generic/tex4ht/biblatex.4ht | 156 |
1 files changed, 144 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/biblatex.4ht b/Master/texmf-dist/tex/generic/tex4ht/biblatex.4ht index 9a8af0d3e3b..99ad2f9ca26 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/biblatex.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/biblatex.4ht @@ -1,4 +1,4 @@ -% biblatex.4ht (2015-02-04-14:23), generated from tex4ht-4ht.tex +% biblatex.4ht (2015-08-05-15:37), generated from tex4ht-4ht.tex % Copyright 2007-2009 Eitan M. Gurari % Copyright 2009-2015 TeX Users Group % @@ -17,9 +17,10 @@ % % If you modify this program, changing the % version identification would be appreciated. -\immediate\write-1{version 2015-02-04-14:23} +\immediate\write-1{version 2015-08-05-15:37} - \ifx\a:printshorthands\Undef\let\blx@shorthands\@empty\fi + \ifdefstring{\abx@version}{3.0}{\xdef\blx:ver:no{3}}{\xdef\blx:ver:no{2.9}} +\ifx\a:printshorthands\Undef\let\blx@shorthands\@empty\fi \ifx\blx@startbib\:UnDef \pend:def\blx@shorthands{% \pend:def\blx@bibinit{% @@ -133,10 +134,19 @@ \NewConfigure{@shorthands}[1]{\concat:config\a:@shorthands{#1}} \let\a:@shorthands\empty \def\nolinkurl{\o:url:} -\def\blx@checksum{\ifx \blx@checksum@old \blx@checksum@new \else - \blx@warning@noline {Page references have changed.\MessageBreak - Rerun to get references right}\@tempswatrue \blx@reruntrue \fi - \@nameuse {blx@rerun}} +% \def\blx@checksum{\ifx \blx@checksum@old \blx@checksum@new \else +% \blx@warning@noline {Page references have changed.\MessageBreak +% Rerun to get references right}\@tempswatrue \blx@reruntrue \fi +% \@nameuse {blx@rerun}} +\def\blx@checksum#1#2#3{% + \begingroup + \blx@tempcnta\the\numexpr0#2*0#3\relax + \blx@tempcntb\blx@tempcnta + \divide\blx@tempcntb10 + \multiply\blx@tempcntb10 + \advance\blx@tempcnta-\blx@tempcntb + \xdef#1{#1\the\blx@tempcnta}% + \endgroup} \pend:def\blx@bibliography{\bibSecConfigure% \pend:def\blx@bibinit{% \bibConfigure @@ -145,7 +155,8 @@ } \let\en:bib\@empty \newcounter{bib} -\protected\def\blx@bbl@entry#1#2#3{% +\ifnum\blx:ver:no < 3 + \protected\def\blx@bbl@entry#1#2#3{% \begingroup \def\texht@bibkey{#1} \edef\abx@field@entrykey{\detokenize{#1}}% @@ -165,14 +176,82 @@ \blx@imc@iffieldundef{options} {} {\blx@bbl@fieldedef{options}{\expandonce\abx@field@options}}} -\protected\def\blx@finentry{% +% + \protected\def\blx@finentry{% \unspace \a:finentry \finentrypunct \blx@postpunct \b:finentry \blx@initunit -} + } +% +\else +% Biblatex 3.0 +% + \protected\def\blx@bbl@entry#1#2#3{% + \begingroup + \edef\abx@field@entrykey{\detokenize{#1}}% + \blx@setoptions@type{#2}% + \blx@bbl@options{#3}% + \blx@setoptions@entry + \edef\blx@bbl@data{blx@data@\the\c@refsection @\blx@slist@scheme + @\abx@field@entrykey}% + \csuse\blx@bbl@data + \blx@bbl@addfield{entrykey}{\abx@field@entrykey}% + \blx@bbl@addfield{entrytype}{#2}% + \blx@imc@iffieldundef{options} + {} + {\blx@bbl@fieldedef{options}{\expandonce\abx@field@options}}} +% + \protected\def\blx@bbl@endentry{% + \csuse\blx@bbl@data + \ifcsundef{blx@pref@\the\c@refsection @\abx@field@entrykey} + {} + {\blx@addpageref{\abx@field@entrykey}}% + \nottoggle{blx@setonly} + {\listcsxadd{blx@slists@\the\c@refsection @entry@\blx@slist@scheme}% + {\abx@field@entrykey}} + {\global\toggletrue{blx@addset}% + \toggletrue{blx@skipbib}% + \toggletrue{blx@skipbiblist}% + \toggletrue{blx@skiplab}}% + \nottoggle{blx@skipbib} + {\listcsxadd{blx@slistsbib@\the\c@refsection @entry@\blx@slist@scheme}% + {\abx@field@entrykey}% + \listcsxadd{blx@type@\the\c@refsection @\abx@field@entrytype}% + {\abx@field@entrykey}% + \ifdef\abx@field@entrysubtype + {\listcsxadd{blx@subt@\the\c@refsection + @\abx@field@entrysubtype}% + {\abx@field@entrykey}} + {}} + {}% + \nottoggle{blx@skipbiblist} + {\blx@bbl@labelfields} + {}% + \nottoggle{blx@skiplab} + {\iftoggle{blx@labelnumber} + {\blx@bbl@labelnumber} + {}% + \iftoggle{blx@labelalpha} + {\blx@bbl@labelalpha} + {}% + \iftoggle{blx@labeltitle} + {\blx@bbl@labeltitle} + {}% + \iftoggle{blx@labeltitleyear} + {\blx@bbl@labeltitleyear} + {}% + \iftoggle{blx@labeldate} + {\blx@bbl@labeldate} + {}% + \blx@bbl@prefixnumber} + {}% + \blx@bbl@titles + \blx@bbl@hooks + \endgroup} +\fi % end of version boolean \NewConfigure{finentry}{2} \def\:tempc[#1]#2{% \expandafter\ifx \csname a:printfield-#2\endcsname\relax @@ -277,7 +356,9 @@ % % This is done now and as per Kristian, the fix works fine now. % -\protected\def\blx@aux@number#1#2#3#4{% +\ifnum\blx:ver:no < 3 +% + \protected\def\blx@aux@number#1#2#3#4{% \blx@bbl@addentryfield{\detokenize{#2}}{#3}{localnumber}{#4}% \ifblank{#4}% {}% @@ -285,13 +366,31 @@ %\blx@addchecksum{#1}{#4} % this can cause a nodocument error! }} % -\iftoggle{blx@defernumbers}% + \iftoggle{blx@defernumbers}% {\setkeys{blx@opt@pre}{labelnumber}% \let\blx@thelabelnumber\blx@addlabelnumber \let\abx@aux@number\blx@aux@number}% {\let\blx@thelabelnumber\relax \let\abx@aux@number\@gobblefour} % +\else + \def\@gobblefive#1#2#3#4#5{}% + \protected\def\blx@aux@number#1#2#3#4#5{% + \blx@bbl@addentryfield{\detokenize{#2}}{#3}{localnumber}{#4}{#5}% + \blx@bbl@addentryfield{\detokenize{#2}}{#3}{labelnumber}{#4}{#5}% + \global\toggletrue{blx@localnumber}% + \ifblank{#5} + {} + {\csgdef{blx@labelnumber@#3@#4}{#5}}} + + \iftoggle{blx@defernumbers}% + {\setkeys{blx@opt@pre}{labelnumber}% + \let\blx@thelabelnumber\blx@addlabelnumber + \let\abx@aux@number\blx@aux@number}% + {\let\blx@thelabelnumber\relax + \let\abx@aux@number\@gobblefive} +\fi % end of version boolean +% \AtEndDocument{% \def\abx@aux@page#1#2{\blx@addpagesum{#1}{#2}}% \def\abx@aux@fnpage#1#2{\blx@addpagesum{#1}{#2}}% @@ -435,6 +534,7 @@ \let\blx@addpagesum\@gobbletwo \let\nolinkurl\relax +\ifx\blx:ver:no < 3 % % biblatex 2.9a % @@ -443,6 +543,38 @@ \let\keylist\description \let\endkeylist\enddescription \def\keyitem#1{\item[#1]}% +% +% +\else +% +% biblatex 3.0 +% +\let\keylist\Un:def +\let\endkeylist\Un:def +\newenvironment*{keylist} + {\list{}{% + \setlength{\labelwidth}{1.25in}% + \setlength{\labelsep}{10pt}% + \setlength{\leftmargin}{0pt}% + \setlength{\itemsep}{0pt}% + \raggedright% + \renewcommand*{\makelabel}[1]{\hss\bfseries##1}}} + {\endlist} +% +\def\keyitem#1{% + \item[#1] + \begingroup + \keyitemhook% + \blx@bibinit% + \midsentence\ifbibstring{#1}{}{\latintext}\biblstring{#1}% + \expandafter\lbx@initnamehook\lsmartoftext% + \par\nobreak + \midsentence\ifbibstring{#1}{}{\latintext}\bibsstring{#1}% + \expandafter\lbx@initnamehook\ssmartoftext% + \endgroup + \par\nobreak} +\fi % End of version boolean + \ConfigureList{keylist}% {\EndP\HCode{<dl \a:LRdir class="description">}% \PushMacro\end:itm |