texlive[68921] Master/texmf-dist: support citation-style-language,

commits+karl at tug.org commits+karl at tug.org
Mon Nov 20 23:57:33 CET 2023


Revision: 68921
          https://tug.org/svn/texlive?view=revision&revision=68921
Author:   karl
Date:     2023-11-20 23:57:33 +0100 (Mon, 20 Nov 2023)
Log Message:
-----------
support citation-style-language, tex4ht r1412

Revision Links:
--------------
    https://tug.org/svn/texlive?view=revision&revision=1412

Modified Paths:
--------------
    trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
    trunk/Master/texmf-dist/source/generic/tex4ht/mktex4ht-cnf.tex
    trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex

Added Paths:
-----------
    trunk/Master/texmf-dist/tex/generic/tex4ht/citation-style-language.4ht

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2023-11-20 20:54:50 UTC (rev 68920)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2023-11-20 22:57:33 UTC (rev 68921)
@@ -1,3 +1,9 @@
+2023-11-20  Michal Hoftich  <michal.h21 at 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 at gmail.com>
 
 	* tex4ht-fonts-newtx.tex (

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/mktex4ht-cnf.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/mktex4ht-cnf.tex	2023-11-20 20:54:50 UTC (rev 68920)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/mktex4ht-cnf.tex	2023-11-20 22:57:33 UTC (rev 68921)
@@ -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}

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex	2023-11-20 20:54:50 UTC (rev 68920)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex	2023-11-20 22:57:33 UTC (rev 68921)
@@ -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 @@
 >>>
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\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}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
 

Added: trunk/Master/texmf-dist/tex/generic/tex4ht/citation-style-language.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/citation-style-language.4ht	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/citation-style-language.4ht	2023-11-20 22:57:33 UTC (rev 68921)
@@ -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
+


Property changes on: trunk/Master/texmf-dist/tex/generic/tex4ht/citation-style-language.4ht
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property


More information about the tex-live-commits mailing list.