summaryrefslogtreecommitdiff
path: root/support/TeX4ht
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-11-22 03:02:50 +0000
committerNorbert Preining <norbert@preining.info>2023-11-22 03:02:50 +0000
commit3ccfe4b1586c1cafd045993a517e3b9ad3ed631e (patch)
treeb3eebfb1e1c308c79c5d664d4de82d4fa01d8463 /support/TeX4ht
parentff01be90452ac7aec530af4623f334ca21869cc5 (diff)
CTAN sync 202311220302
Diffstat (limited to 'support/TeX4ht')
-rw-r--r--support/TeX4ht/source/ChangeLog6
-rw-r--r--support/TeX4ht/source/mktex4ht-cnf.tex3
-rw-r--r--support/TeX4ht/source/tex4ht-4ht.tex41
3 files changed, 48 insertions, 2 deletions
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 <michal.h21@gmail.com>
+
+ * 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 <michal.h21@gmail.com>
* 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
@@ -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}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%