summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/source/generic/tex4ht/ChangeLog6
-rw-r--r--Master/texmf-dist/source/generic/tex4ht/mktex4ht-cnf.tex3
-rw-r--r--Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex41
-rw-r--r--Master/texmf-dist/tex/generic/tex4ht/citation-style-language.4ht41
4 files changed, 89 insertions, 2 deletions
diff --git a/Master/texmf-dist/source/generic/tex4ht/ChangeLog b/Master/texmf-dist/source/generic/tex4ht/ChangeLog
index 39332dce3f6..f36bdba9554 100644
--- a/Master/texmf-dist/source/generic/tex4ht/ChangeLog
+++ b/Master/texmf-dist/source/generic/tex4ht/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/Master/texmf-dist/source/generic/tex4ht/mktex4ht-cnf.tex b/Master/texmf-dist/source/generic/tex4ht/mktex4ht-cnf.tex
index e7f3a6d6a5d..894e50b7c15 100644
--- a/Master/texmf-dist/source/generic/tex4ht/mktex4ht-cnf.tex
+++ b/Master/texmf-dist/source/generic/tex4ht/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/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
index bc5e4739860..e163fca2d94 100644
--- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
+++ b/Master/texmf-dist/source/generic/tex4ht/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}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/Master/texmf-dist/tex/generic/tex4ht/citation-style-language.4ht b/Master/texmf-dist/tex/generic/tex4ht/citation-style-language.4ht
new file mode 100644
index 00000000000..c96fb87ec09
--- /dev/null
+++ b/Master/texmf-dist/tex/generic/tex4ht/citation-style-language.4ht
@@ -0,0 +1,41 @@
+% citation-style-language.4ht (2023-11-20-14:31), generated from tex4ht-4ht.tex
+% Copyright 2023 TeX Users Group
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either
+% version 1.3c 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.3c or later is part of all distributions
+% of LaTeX version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status "maintained".
+%
+% The Current Maintainer of this work
+% is the TeX4ht Project <http://tug.org/tex4ht>.
+%
+% If you modify this program, changing the
+% version identification would be appreciated.
+\immediate\write-1{version 2023-11-20-14:31}
+
+\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}%
+}
+
+\Hinput{citation-style-language}
+\endinput
+