diff options
Diffstat (limited to 'support/TeX4ht/source/tex4ht-4ht.tex')
-rw-r--r-- | support/TeX4ht/source/tex4ht-4ht.tex | 41 |
1 files changed, 40 insertions, 1 deletions
diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex index bc5e473986..e163fca2d9 100644 --- a/support/TeX4ht/source/tex4ht-4ht.tex +++ b/support/TeX4ht/source/tex4ht-4ht.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-4ht.tex 1408 2023-11-10 14:51:19Z michal_h21 $ +% $Id: tex4ht-4ht.tex 1412 2023-11-20 10:08:03Z michal_h21 $ % tex tex4ht-4ht or ht tex tex4ht-4ht % % Copyright 2009-2023 TeX Users Group @@ -24407,6 +24407,45 @@ This modification is needed since Stefan >>> %%%%%%%%%%%%%%%%%%%%%%%%%%%% +\Section{citation-style-language} +%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +CSL support using LuaTeX + +\<citation-style-language.4ht\><<< +% citation-style-language.4ht (|version), generated from |jobname.tex +% Copyright 2023 TeX Users Group +|<TeX4ht license text|> +|<csl cite|> +|<csl bibitem|> +\Hinput{citation-style-language} +\endinput +>>> \AddFile{5}{citation-style-language} + + +\<csl cite\><<< +\ExplSyntaxOn +% add links to bibliography around citations +\cs_set:Npn \__csl_print_citation:N #1 +{ + \bool_if:NT \l__csl_regression_test_bool + { \tl_show:N #1 } + \bool_if:NTF \l__csl_note_bool + { \footnote {\a:cite\cIteLink{X\l__csl_cite_keys_tl}{bk-\l__csl_citation_id_tl}#1\EndcIteLink\b:cite} } + {\a:cite\cIteLink{X\l__csl_cite_keys_tl}{bk-\l__csl_citation_id_tl}#1\EndcIteLink\b:cite} +} +\ExplSyntaxOff +>>> + +\<csl bibitem\><<< +% fix problems with \bibitem in the bibliography +\def\setb:anc#1{\def\bib:anc{\def\bib:anc{#1}\ifx \bib:anc\empty \else% + \a:bibitem{}{\a:bibanchor#1}\b:bibitem\fi \gdef\bib:anc{}}% + \def\AnchorLabel{\bib:anc}% +} +>>> + +%%%%%%%%%%%%%%%%%%%%%%%%%%%% \Chapter{Languages} %%%%%%%%%%%%%%%%%%%%%%%%%%%% |