summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/generic/tex4ht/tex4ht-jats.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/generic/tex4ht/tex4ht-jats.tex')
-rw-r--r--Master/texmf-dist/source/generic/tex4ht/tex4ht-jats.tex60
1 files changed, 60 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-jats.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-jats.tex
index 6c696ff12cc..e969844c70b 100644
--- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-jats.tex
+++ b/Master/texmf-dist/source/generic/tex4ht/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}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%