texlive[63762] Master/texmf-dist: list envs in jats, tex4ht r1162
commits+karl at tug.org
commits+karl at tug.org
Wed Jun 29 23:14:41 CEST 2022
Revision: 63762
http://tug.org/svn/texlive?view=revision&revision=63762
Author: karl
Date: 2022-06-29 23:14:41 +0200 (Wed, 29 Jun 2022)
Log Message:
-----------
list envs in jats, tex4ht r1162
Revision Links:
--------------
http://tug.org/svn/texlive?view=revision&revision=1162
Modified Paths:
--------------
trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-jats.tex
trunk/Master/texmf-dist/tex/generic/tex4ht/jats.4ht
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2022-06-29 20:49:55 UTC (rev 63761)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2022-06-29 21:14:41 UTC (rev 63762)
@@ -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/Master/texmf-dist/source/generic/tex4ht/tex4ht-jats.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-jats.tex 2022-06-29 20:49:55 UTC (rev 63761)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-jats.tex 2022-06-29 21:14:41 UTC (rev 63762)
@@ -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}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/jats.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/jats.4ht 2022-06-29 20:49:55 UTC (rev 63761)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/jats.4ht 2022-06-29 21:14:41 UTC (rev 63762)
@@ -1,4 +1,4 @@
-% jats.4ht (2022-06-24-15:06), generated from tex4ht-jats.tex
+% jats.4ht (2022-06-29-13:40), generated from tex4ht-jats.tex
% Copyright 2022 TeX Users Group
%
% This work may be distributed and/or modified under the
@@ -16,7 +16,7 @@
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2022-06-24-15:06}
+\immediate\write-1{version 2022-06-29-13:40}
\exit:ifnot{amsart,%
amsbook,%
@@ -433,8 +433,32 @@
\HCode{<disp-quote>}}
{\IgnorePar\EndP\HCode{</disp-quote>}\ShowPar\ShowIndent}
+\def\ConfigJatsList#1#2{%
+\ConfigureList{#1}%
+ {\ifvmode\IgnorePar\fi\EndP\EndP\HCode{<list list-type="#2">}%
+ \PushMacro\end:itm
+\global\let\end:itm=\empty}
+ {\PopMacro\end:itm \global\let\end:itm \end:itm
+\EndP\HCode{</list-item></list>}}
+ {\end:itm\global\def\end:itm{\EndP\Tg</list-item>}\DeleteMark}
+ {\HCode{<list-item>}\par\ShowPar
+}
+ }
+\ConfigJatsList{itemize}{bulleted}
+\ConfigJatsList{enumerate}{order}
+\ConfigureList{description}%
+ {\ifvmode\IgnorePar\fi\EndP\HCode{<def-list>}%
+ \PushMacro\end:itm
+\global\let\end:itm=\empty}
+ {\PopMacro\end:itm \global\let\end:itm \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\par\ShowPar
+}
+
+
\Configure{chapter}
{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
@@ -632,8 +656,32 @@
\HCode{<disp-quote>}}
{\IgnorePar\EndP\HCode{</disp-quote>}\ShowPar\ShowIndent}
+\def\ConfigJatsList#1#2{%
+\ConfigureList{#1}%
+ {\ifvmode\IgnorePar\fi\EndP\EndP\HCode{<list list-type="#2">}%
+ \PushMacro\end:itm
+\global\let\end:itm=\empty}
+ {\PopMacro\end:itm \global\let\end:itm \end:itm
+\EndP\HCode{</list-item></list>}}
+ {\end:itm\global\def\end:itm{\EndP\Tg</list-item>}\DeleteMark}
+ {\HCode{<list-item>}\par\ShowPar
+}
+ }
+\ConfigJatsList{itemize}{bulleted}
+\ConfigJatsList{enumerate}{order}
+\ConfigureList{description}%
+ {\ifvmode\IgnorePar\fi\EndP\HCode{<def-list>}%
+ \PushMacro\end:itm
+\global\let\end:itm=\empty}
+ {\PopMacro\end:itm \global\let\end:itm \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\par\ShowPar
+}
+
+
\ConfigureEnv{abstract}
{\ifvmode\IgnorePar\fi\EndP\HCode{<abstract>\Hnewline}}
{\ifvmode\IgnorePar\fi\EndP\HCode{</abstract>}\par}{}{}
@@ -840,8 +888,32 @@
\HCode{<disp-quote>}}
{\IgnorePar\EndP\HCode{</disp-quote>}\ShowPar\ShowIndent}
+\def\ConfigJatsList#1#2{%
+\ConfigureList{#1}%
+ {\ifvmode\IgnorePar\fi\EndP\EndP\HCode{<list list-type="#2">}%
+ \PushMacro\end:itm
+\global\let\end:itm=\empty}
+ {\PopMacro\end:itm \global\let\end:itm \end:itm
+\EndP\HCode{</list-item></list>}}
+ {\end:itm\global\def\end:itm{\EndP\Tg</list-item>}\DeleteMark}
+ {\HCode{<list-item>}\par\ShowPar
+}
+ }
+\ConfigJatsList{itemize}{bulleted}
+\ConfigJatsList{enumerate}{order}
+\ConfigureList{description}%
+ {\ifvmode\IgnorePar\fi\EndP\HCode{<def-list>}%
+ \PushMacro\end:itm
+\global\let\end:itm=\empty}
+ {\PopMacro\end:itm \global\let\end:itm \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\par\ShowPar
+}
+
+
\ConfigureEnv{abstract}
{\ifvmode\IgnorePar\fi\EndP\HCode{<abstract>\Hnewline}}
{\ifvmode\IgnorePar\fi\EndP\HCode{</abstract>}\par}{}{}
@@ -1015,9 +1087,33 @@
\HCode{<disp-quote>}}
{\IgnorePar\EndP\HCode{</disp-quote>}\ShowPar\ShowIndent}
+\def\ConfigJatsList#1#2{%
+\ConfigureList{#1}%
+ {\ifvmode\IgnorePar\fi\EndP\EndP\HCode{<list list-type="#2">}%
+ \PushMacro\end:itm
+\global\let\end:itm=\empty}
+ {\PopMacro\end:itm \global\let\end:itm \end:itm
+\EndP\HCode{</list-item></list>}}
+ {\end:itm\global\def\end:itm{\EndP\Tg</list-item>}\DeleteMark}
+ {\HCode{<list-item>}\par\ShowPar
+}
+ }
+\ConfigJatsList{itemize}{bulleted}
+\ConfigJatsList{enumerate}{order}
+\ConfigureList{description}%
+ {\ifvmode\IgnorePar\fi\EndP\HCode{<def-list>}%
+ \PushMacro\end:itm
+\global\let\end:itm=\empty}
+ {\PopMacro\end:itm \global\let\end:itm \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\par\ShowPar
+}
+
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
@@ -1168,7 +1264,31 @@
\HCode{<disp-quote>}}
{\IgnorePar\EndP\HCode{</disp-quote>}\ShowPar\ShowIndent}
+\def\ConfigJatsList#1#2{%
+\ConfigureList{#1}%
+ {\ifvmode\IgnorePar\fi\EndP\EndP\HCode{<list list-type="#2">}%
+ \PushMacro\end:itm
+\global\let\end:itm=\empty}
+ {\PopMacro\end:itm \global\let\end:itm \end:itm
+\EndP\HCode{</list-item></list>}}
+ {\end:itm\global\def\end:itm{\EndP\Tg</list-item>}\DeleteMark}
+ {\HCode{<list-item>}\par\ShowPar
+}
+ }
+\ConfigJatsList{itemize}{bulleted}
+\ConfigJatsList{enumerate}{order}
+\ConfigureList{description}%
+ {\ifvmode\IgnorePar\fi\EndP\HCode{<def-list>}%
+ \PushMacro\end:itm
+\global\let\end:itm=\empty}
+ {\PopMacro\end:itm \global\let\end:itm \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\par\ShowPar
+}
+
+
\Configure{chapter}
{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
@@ -1340,7 +1460,31 @@
\HCode{<disp-quote>}}
{\IgnorePar\EndP\HCode{</disp-quote>}\ShowPar\ShowIndent}
+\def\ConfigJatsList#1#2{%
+\ConfigureList{#1}%
+ {\ifvmode\IgnorePar\fi\EndP\EndP\HCode{<list list-type="#2">}%
+ \PushMacro\end:itm
+\global\let\end:itm=\empty}
+ {\PopMacro\end:itm \global\let\end:itm \end:itm
+\EndP\HCode{</list-item></list>}}
+ {\end:itm\global\def\end:itm{\EndP\Tg</list-item>}\DeleteMark}
+ {\HCode{<list-item>}\par\ShowPar
+}
+ }
+\ConfigJatsList{itemize}{bulleted}
+\ConfigJatsList{enumerate}{order}
+\ConfigureList{description}%
+ {\ifvmode\IgnorePar\fi\EndP\HCode{<def-list>}%
+ \PushMacro\end:itm
+\global\let\end:itm=\empty}
+ {\PopMacro\end:itm \global\let\end:itm \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\par\ShowPar
+}
+
+
\Configure{chapter}
{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
@@ -1663,7 +1807,31 @@
\HCode{<disp-quote>}}
{\IgnorePar\EndP\HCode{</disp-quote>}\ShowPar\ShowIndent}
+\def\ConfigJatsList#1#2{%
+\ConfigureList{#1}%
+ {\ifvmode\IgnorePar\fi\EndP\EndP\HCode{<list list-type="#2">}%
+ \PushMacro\end:itm
+\global\let\end:itm=\empty}
+ {\PopMacro\end:itm \global\let\end:itm \end:itm
+\EndP\HCode{</list-item></list>}}
+ {\end:itm\global\def\end:itm{\EndP\Tg</list-item>}\DeleteMark}
+ {\HCode{<list-item>}\par\ShowPar
+}
+ }
+\ConfigJatsList{itemize}{bulleted}
+\ConfigJatsList{enumerate}{order}
+\ConfigureList{description}%
+ {\ifvmode\IgnorePar\fi\EndP\HCode{<def-list>}%
+ \PushMacro\end:itm
+\global\let\end:itm=\empty}
+ {\PopMacro\end:itm \global\let\end:itm \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\par\ShowPar
+}
+
+
\ConfigureEnv{abstract}
{\ifvmode\IgnorePar\fi\EndP\HCode{<abstract>\Hnewline}}
{\ifvmode\IgnorePar\fi\EndP\HCode{</abstract>}\par}{}{}
@@ -1935,8 +2103,32 @@
\HCode{<disp-quote>}}
{\IgnorePar\EndP\HCode{</disp-quote>}\ShowPar\ShowIndent}
+\def\ConfigJatsList#1#2{%
+\ConfigureList{#1}%
+ {\ifvmode\IgnorePar\fi\EndP\EndP\HCode{<list list-type="#2">}%
+ \PushMacro\end:itm
+\global\let\end:itm=\empty}
+ {\PopMacro\end:itm \global\let\end:itm \end:itm
+\EndP\HCode{</list-item></list>}}
+ {\end:itm\global\def\end:itm{\EndP\Tg</list-item>}\DeleteMark}
+ {\HCode{<list-item>}\par\ShowPar
+}
+ }
+\ConfigJatsList{itemize}{bulleted}
+\ConfigJatsList{enumerate}{order}
+\ConfigureList{description}%
+ {\ifvmode\IgnorePar\fi\EndP\HCode{<def-list>}%
+ \PushMacro\end:itm
+\global\let\end:itm=\empty}
+ {\PopMacro\end:itm \global\let\end:itm \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\par\ShowPar
+}
+
+
\Configure{chapter}
{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
@@ -2134,8 +2326,32 @@
\HCode{<disp-quote>}}
{\IgnorePar\EndP\HCode{</disp-quote>}\ShowPar\ShowIndent}
+\def\ConfigJatsList#1#2{%
+\ConfigureList{#1}%
+ {\ifvmode\IgnorePar\fi\EndP\EndP\HCode{<list list-type="#2">}%
+ \PushMacro\end:itm
+\global\let\end:itm=\empty}
+ {\PopMacro\end:itm \global\let\end:itm \end:itm
+\EndP\HCode{</list-item></list>}}
+ {\end:itm\global\def\end:itm{\EndP\Tg</list-item>}\DeleteMark}
+ {\HCode{<list-item>}\par\ShowPar
+}
+ }
+\ConfigJatsList{itemize}{bulleted}
+\ConfigJatsList{enumerate}{order}
+\ConfigureList{description}%
+ {\ifvmode\IgnorePar\fi\EndP\HCode{<def-list>}%
+ \PushMacro\end:itm
+\global\let\end:itm=\empty}
+ {\PopMacro\end:itm \global\let\end:itm \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\par\ShowPar
+}
+
+
\ConfigureEnv{abstract}
{\ifvmode\IgnorePar\fi\EndP\HCode{<abstract>\Hnewline}}
{\ifvmode\IgnorePar\fi\EndP\HCode{</abstract>}\par}{}{}
@@ -2314,8 +2530,32 @@
\HCode{<disp-quote>}}
{\IgnorePar\EndP\HCode{</disp-quote>}\ShowPar\ShowIndent}
+\def\ConfigJatsList#1#2{%
+\ConfigureList{#1}%
+ {\ifvmode\IgnorePar\fi\EndP\EndP\HCode{<list list-type="#2">}%
+ \PushMacro\end:itm
+\global\let\end:itm=\empty}
+ {\PopMacro\end:itm \global\let\end:itm \end:itm
+\EndP\HCode{</list-item></list>}}
+ {\end:itm\global\def\end:itm{\EndP\Tg</list-item>}\DeleteMark}
+ {\HCode{<list-item>}\par\ShowPar
+}
+ }
+\ConfigJatsList{itemize}{bulleted}
+\ConfigJatsList{enumerate}{order}
+\ConfigureList{description}%
+ {\ifvmode\IgnorePar\fi\EndP\HCode{<def-list>}%
+ \PushMacro\end:itm
+\global\let\end:itm=\empty}
+ {\PopMacro\end:itm \global\let\end:itm \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\par\ShowPar
+}
+
+
\ConfigureEnv{abstract}
{\ifvmode\IgnorePar\fi\EndP\HCode{<abstract>\Hnewline}}
{\ifvmode\IgnorePar\fi\EndP\HCode{</abstract>}\par}{}{}
More information about the tex-live-commits
mailing list.