[tex4ht-commits] [SCM] tex4ht updated: r1162 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Wed Jun 29 13:41:04 CEST 2022
Author: michal_h21
Date: 2022-06-29 11:41:04 +0000 (Wed, 29 Jun 2022)
New Revision: 1162
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-jats.tex
Log:
Added support for list environments in JATS
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2022-06-27 10:03:53 UTC (rev 1161)
+++ trunk/lit/ChangeLog 2022-06-29 11:41:04 UTC (rev 1162)
@@ -1,3 +1,7 @@
+2022-06-29 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-jats.4ht (jats.4ht): added support for list environments.
+
2022-06-27 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-4ht.tex (nameref.4ht): disable \index and \label inside
Modified: trunk/lit/tex4ht-jats.tex
===================================================================
--- trunk/lit/tex4ht-jats.tex 2022-06-27 10:03:53 UTC (rev 1161)
+++ trunk/lit/tex4ht-jats.tex 2022-06-29 11:41:04 UTC (rev 1162)
@@ -43,7 +43,16 @@
Only basic structures will be configured by hand in this configuration
file.
+We support the Journal Archiving and Interchange Tag Library NISO JATS
+Version 1.3. Documentation for tags is available at:
+\Link{https://jats.nlm.nih.gov/archiving/tag-library/1.3/chapter/getting-started.html}{}
+https://jats.nlm.nih.gov/archiving/tag-library/1.3/chapter/getting-started.html
+\EndLink
+
+
+
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Package configurations}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -166,6 +175,7 @@
|<latex tables|>
|<latex footnotes|>
|<latex quotes|>
+|<latex lists|>
>>>
\section{Configurations for Memoir}
@@ -184,6 +194,7 @@
|<latex tables|>
|<latex footnotes|>
|<latex quotes|>
+|<latex lists|>
>>>
\<shared article,report\><<<
@@ -742,6 +753,55 @@
{\IgnorePar\EndP\HCode{</disp-quote>}\ShowPar\ShowIndent}
>>>
+%%%%%%%%%%%%%%%%%%%%
+\section{Lists}
+%%%%%%%%%%%%%%%%%%%%
+
+List utilities, copied from the HTML configuration. We need to
+keep track of the
+
+\<save end:itm\><<<
+\PushMacro\end:itm
+>>>
+
+
+\<recall end:itm\><<<
+\PopMacro\end:itm \global\let\end:itm \end:itm
+>>>
+
+\<list par\><<<
+\par\ShowPar
+>>>
+
+JATS list have a similar structure, so we can use a custom macro that
+takes just the environment name and list-type attribute:
+
+\<latex lists\><<<
+\def\ConfigJatsList#1#2{%
+\ConfigureList{#1}%
+ {\ifvmode\IgnorePar\fi\EndP\EndP\HCode{<list list-type="#2">}%
+ |<save end:itm|>\global\let\end:itm=\empty}
+ {|<recall end:itm|>\EndP\HCode{</list-item></list>}}
+ {\end:itm\global\def\end:itm{\EndP\Tg</list-item>}\DeleteMark}
+ {\HCode{<list-item>}|<list par|>}
+ }
+
+\ConfigJatsList{itemize}{bulleted}
+\ConfigJatsList{enumerate}{order}
+>>>
+
+Description lists have a little bit different structure, so we need to configure
+them separatelly.
+
+\<latex lists\><<<
+\ConfigureList{description}%
+ {\ifvmode\IgnorePar\fi\EndP\HCode{<def-list>}%
+ |<save end:itm|>\global\let\end:itm=\empty}
+ {|<recall end:itm|>\EndP\HCode{</def></def-item></def-list>}\ShowPar}
+ {\end:itm \global\def\end:itm{\EndP\HCode{</def></def-item>}}\HCode{<def-item><term>}\NoFonts\HtmlParOff}
+ {\EndNoFonts\HCode{</term><def>}\HtmlParOn|<list par|>}
+>>>
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Packages}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
More information about the tex4ht-commits
mailing list.