[tex4ht-commits] [SCM] tex4ht updated: r1545 - trunk/lit

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Tue Aug 13 21:02:54 CEST 2024


Author: michal_h21
Date: 2024-08-13 19:02:54 +0000 (Tue, 13 Aug 2024)
New Revision: 1545

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-jats.tex
Log:
Added support for bibliographies in JATS

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2024-08-11 15:32:08 UTC (rev 1544)
+++ trunk/lit/ChangeLog	2024-08-13 19:02:54 UTC (rev 1545)
@@ -1,3 +1,8 @@
+2024-08-13  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-jats.tex (jats.4ht): added support for LaTeX
+	bibliographies.
+
 2024-08-11  Karl Berry  <karl at freefriends.org>
 
 	* tex4ht-mathml.tex (html-mml.4ht): copyright 2024.

Modified: trunk/lit/tex4ht-jats.tex
===================================================================
--- trunk/lit/tex4ht-jats.tex	2024-08-11 15:32:08 UTC (rev 1544)
+++ trunk/lit/tex4ht-jats.tex	2024-08-13 19:02:54 UTC (rev 1545)
@@ -201,6 +201,7 @@
 |<latex footnotes|>
 |<latex quotes|>
 |<latex lists|>
+|<latex bibliography|>
 >>>
 
 \<shared article,report\><<<
@@ -841,6 +842,29 @@
    {\EndNoFonts\HCode{</term><def>}\HtmlParOn|<list par|>}
 >>>
 
+
+We cannot create a structured bibliographic record for plain LaTeX references, so we 
+at least mark individual entries.
+
+Entry id is set on the label element. The id comes from a child xref element that is removed 
+by make4ht. Ideally, it should be set on ref, but we need to use label here, to catch 
+potential entry number.
+
+
+\<latex bibliography\><<<
+\ConfigureList{thebibliography}%
+   {\ifvmode\IgnorePar\fi \EndP \HCode{<ref-list>}\let\en:bib=\empty}
+   {\en:bib \ifvmode\IgnorePar\fi \EndP \HCode{</ref-list>}}
+   {\en:bib\def\en:bib{\HCode{</mixed-citation></ref>}}%
+    \HCode{<ref><label>}%
+     \Configure{HtmlPar}%
+    {\EndP}%
+    {\EndP}%
+    {} {}%
+  }
+   {\HCode{</label><mixed-citation>}}
+>>>
+
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \chapter{Packages}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



More information about the tex4ht-commits mailing list.