From fe3dca04dca5358c6fb9463cfadf9079600e911d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Thu, 30 Jun 2022 03:00:54 +0000 Subject: CTAN sync 202206300300 --- support/TeX4ht/source/ChangeLog | 4 +++ support/TeX4ht/source/tex4ht-jats.tex | 60 +++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) (limited to 'support/TeX4ht') 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 + + * tex4ht-jats.4ht (jats.4ht): added support for list environments. + 2022-06-27 Michal Hoftich * 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 | | | +| >>> \section{Configurations for Memoir} @@ -184,6 +194,7 @@ Configurations that are shared only for article and report | | | +| >>> \<<< @@ -742,6 +753,55 @@ This macro is used to print zeropaded days and months in the ISO date attribute {\IgnorePar\EndP\HCode{}\ShowPar\ShowIndent} >>> +%%%%%%%%%%%%%%%%%%%% +\section{Lists} +%%%%%%%%%%%%%%%%%%%% + +List utilities, copied from the HTML configuration. We need to +keep track of the + +\<<< +\PushMacro\end:itm +>>> + + +\<<< +\PopMacro\end:itm \global\let\end:itm \end:itm +>>> + +\<<< +\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: + +\<<< +\def\ConfigJatsList#1#2{% +\ConfigureList{#1}% + {\ifvmode\IgnorePar\fi\EndP\EndP\HCode{}% + |\global\let\end:itm=\empty} + {|\EndP\HCode{}} + {\end:itm\global\def\end:itm{\EndP\Tg}\DeleteMark} + {\HCode{}|} + } + +\ConfigJatsList{itemize}{bulleted} +\ConfigJatsList{enumerate}{order} +>>> + +Description lists have a little bit different structure, so we need to configure +them separatelly. + +\<<< +\ConfigureList{description}% + {\ifvmode\IgnorePar\fi\EndP\HCode{}% + |\global\let\end:itm=\empty} + {|\EndP\HCode{}\ShowPar} + {\end:itm \global\def\end:itm{\EndP\HCode{}}\HCode{}\NoFonts\HtmlParOff} + {\EndNoFonts\HCode{}\HtmlParOn|} +>>> + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \chapter{Packages} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -- cgit v1.2.3