summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-06-30 03:00:54 +0000
committerNorbert Preining <norbert@preining.info>2022-06-30 03:00:54 +0000
commitfe3dca04dca5358c6fb9463cfadf9079600e911d (patch)
tree1d7fccaf74ce699c8eb133ec1e0d194358e05e3d /support
parent1803d67dcb084b1d6b825dd2f1a39df83c11db02 (diff)
CTAN sync 202206300300
Diffstat (limited to 'support')
-rw-r--r--support/TeX4ht/source/ChangeLog4
-rw-r--r--support/TeX4ht/source/tex4ht-jats.tex60
2 files changed, 64 insertions, 0 deletions
diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog
index 8960d20452..8e07dd1e80 100644
--- a/support/TeX4ht/source/ChangeLog
+++ b/support/TeX4ht/source/ChangeLog
@@ -1,3 +1,7 @@
+2022-06-29 Michal Hoftich <michal.h21@gmail.com>
+
+ * tex4ht-jats.4ht (jats.4ht): added support for list environments.
+
2022-06-27 Michal Hoftich <michal.h21@gmail.com>
* tex4ht-4ht.tex (nameref.4ht): disable \index and \label inside
diff --git a/support/TeX4ht/source/tex4ht-jats.tex b/support/TeX4ht/source/tex4ht-jats.tex
index 6c696ff12c..e969844c70 100644
--- a/support/TeX4ht/source/tex4ht-jats.tex
+++ b/support/TeX4ht/source/tex4ht-jats.tex
@@ -43,6 +43,15 @@ elements in the back (bibliography, etc.)
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 @@ Configurations that are shared only for article and report
|<latex tables|>
|<latex footnotes|>
|<latex quotes|>
+|<latex lists|>
>>>
\section{Configurations for Memoir}
@@ -184,6 +194,7 @@ Configurations that are shared only for article and report
|<latex tables|>
|<latex footnotes|>
|<latex quotes|>
+|<latex lists|>
>>>
\<shared article,report\><<<
@@ -742,6 +753,55 @@ This macro is used to print zeropaded days and months in the ISO date attribute
{\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}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%