From 3ccfe4b1586c1cafd045993a517e3b9ad3ed631e Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Wed, 22 Nov 2023 03:02:50 +0000 Subject: CTAN sync 202311220302 --- support/TeX4ht/source/ChangeLog | 6 +++++ support/TeX4ht/source/mktex4ht-cnf.tex | 3 ++- support/TeX4ht/source/tex4ht-4ht.tex | 41 +++++++++++++++++++++++++++++++++- 3 files changed, 48 insertions(+), 2 deletions(-) (limited to 'support') diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog index 39332dce3f..f36bdba955 100644 --- a/support/TeX4ht/source/ChangeLog +++ b/support/TeX4ht/source/ChangeLog @@ -1,3 +1,9 @@ +2023-11-20 Michal Hoftich + + * tex4ht-4ht.tex (citation-style-language.4ht): added Citation Style + Language support. + https://github.com/zepinglee/citeproc-lua/issues/40 + 2023-11-19 Michal Hoftich * tex4ht-fonts-newtx.tex ( diff --git a/support/TeX4ht/source/mktex4ht-cnf.tex b/support/TeX4ht/source/mktex4ht-cnf.tex index e7f3a6d6a5..894e50b7c1 100644 --- a/support/TeX4ht/source/mktex4ht-cnf.tex +++ b/support/TeX4ht/source/mktex4ht-cnf.tex @@ -1,4 +1,4 @@ -% $Id: mktex4ht-cnf.tex 1408 2023-11-10 14:51:19Z michal_h21 $ +% $Id: mktex4ht-cnf.tex 1412 2023-11-20 10:08:03Z michal_h21 $ % Manually-maintained file, listing *.4ht files created by tex4ht-4ht.tex. % Read by tex4ht-cond4ht. % @@ -149,6 +149,7 @@ \AddFile{9}{jurabib} \AddFile{9}{scrjura} \AddFile{7}{natbib} +\AddFile{5}{citation-style-language} \AddFile{5}{babel} \AddFile{9}{babel-sty-hooks} \AddFile{7}{csquotes} 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 @@ -24406,6 +24406,45 @@ This modification is needed since Stefan \csname nb:link\endcsname >>> +%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\Section{citation-style-language} +%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +CSL support using LuaTeX + +\<<< +% citation-style-language.4ht (|version), generated from |jobname.tex +% Copyright 2023 TeX Users Group +| +| +| +\Hinput{citation-style-language} +\endinput +>>> \AddFile{5}{citation-style-language} + + +\<<< +\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 +>>> + +\<<< +% 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} %%%%%%%%%%%%%%%%%%%%%%%%%%%% -- cgit v1.2.3