[tex4ht-commits] [SCM] tex4ht updated: r1151 - trunk/lit

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Wed Jun 15 13:45:57 CEST 2022


Author: michal_h21
Date: 2022-06-15 11:45:57 +0000 (Wed, 15 Jun 2022)
New Revision: 1151

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-jats.tex
Log:
Added support for more document classes

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2022-06-15 09:03:08 UTC (rev 1150)
+++ trunk/lit/ChangeLog	2022-06-15 11:45:57 UTC (rev 1151)
@@ -1,5 +1,8 @@
 2022-06-15  Michal Hoftich  <michal.h21 at gmail.com>
 
+	* tex4ht-jats.tex (jats.4ht): added support for Koma, AMS and Memoir
+	classes.
+
 	* tex4ht-jats.tex (jats.4ht): added xml:lang support for the article
 	element.
 

Modified: trunk/lit/tex4ht-jats.tex
===================================================================
--- trunk/lit/tex4ht-jats.tex	2022-06-15 09:03:08 UTC (rev 1150)
+++ trunk/lit/tex4ht-jats.tex	2022-06-15 11:45:57 UTC (rev 1151)
@@ -68,27 +68,127 @@
 \section{Classes}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
+
 \<configure jats article\><<<
-|<latex sections|>
+|<article,report,book|>
+|<article,report|>
 >>>
 
 \<configure jats book\><<<
-|<latex chapters|>
-|<latex sections|>
+|<article,report,book|>
+|<book,report|>
 >>>
 
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\section{Packages}
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\<configure jats report\><<<
+|<article,report,book|>
+|<article,report|>
+|<book,report|>
+>>>
 
-\<configure jats url\><<<
-|<url links|>
+Shared configurations for base LaTeX classes.
+
+\<article,report,book\><<<
+|<shared latex classes|>
 >>>
 
-\<configure jats hyperref\><<<
-|<hyperref links|>
+Configurations that are shared only for article and report
+
+\<article,report\><<<
+|<shared article,report|>
 >>>
 
+\<book,report\><<<
+|<shared book,report|>
+>>>
+
+\section{Configurations for Koma Script}
+
+\<configure jats scrartcl\><<<
+|<scr article,report,book|>
+|<scr article,report|>
+>>>
+
+\<configure jats scrbook\><<<
+|<scr article,report,book|>
+|<scr report,book|>
+>>>
+
+\<configure jats scrreprt\><<<
+|<scr article,report,book|>
+|<scr article,report|>
+|<scr report,book|>
+>>>
+
+\<scr article,report,book\><<<
+|<shared latex classes|>
+>>>
+
+\<scr article,report\><<<
+|<shared article,report|>
+>>>
+
+\<scr report,book\><<<
+|<shared book,report|>
+>>>
+
+\section{Configurations for AMS classes}
+
+\<configure jats amsart\><<<
+|<ams art,proc,book|>
+|<ams art,proc|>
+>>>
+
+\<configure jats amsproc\><<<
+|<ams art,proc,book|>
+|<ams proc,book|>
+|<ams art,proc|>
+>>>
+
+\<configure jats amsbook\><<<
+|<ams art,proc,book|>
+|<ams proc,book|>
+>>>
+
+|<ams art,proc|><<<
+>>>
+
+\<ams proc,book\><<<
+|<latex numbered chapters|>
+>>>
+
+\<ams art,proc,book\><<<
+|<latex numbered sections|>
+|<figcaption|>
+|<abstract|>
+>>>
+
+\section{Configurations for Memoir}
+
+\<configure jats memoir\><<<
+|<shared latex classes|>
+|<shared article,report|>
+|<shared book,report|>
+>>>
+
+\section{Shared class configurations}
+\<shared latex classes\><<<
+|<latex sections|>
+|<figcaption|>
+>>>
+
+\<shared article,report\><<<
+|<abstract|>
+>>>
+
+\<shared book,report\><<<
+|<latex chapters|>
+>>>
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\chapter{Basic system configurations}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
 \<xml structure\><<<
 \Configure{VERSION}{\HCode{<?xml version="1.0" encoding="UTF-8"?>\Hnewline}}
 
@@ -349,8 +449,21 @@
 >>>
 
 
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\chapter{Document structure}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\section{Sections}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
 \<latex chapters\><<<
+|<latex numbered chapters|>
+|<latex unnumbered chapters|>
+>>>
+
+
+\<latex numbered chapters\><<<
 \Configure{chapter}
 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
@@ -361,11 +474,6 @@
    {\if at mainmatter
        \HCode{<label>}\chaptername\ \thechapter\HCode{</label>}\fi}
 
-\Configure{likechapter}
-{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
-{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
-   {\HCode{<title>}\space\HtmlParOff}
-   {\HCode{</title>}\HtmlParOn \ShowPar\par}
 
 \Configure{appendix}
 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
@@ -377,8 +485,20 @@
    \appendixname\ \thechapter\HCode{</label>}}
 >>>
 
+\<latex unnumbered chapters\><<<
+\Configure{likechapter}
+{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
+{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
+   {\HCode{<title>}\space\HtmlParOff}
+   {\HCode{</title>}\HtmlParOn \ShowPar\par}
+>>>
+
 \<latex sections\><<<
+|<latex numbered sections|>
+|<latex unnumbered sections|>
+>>>
 
+\<latex numbered sections\><<<
 \Configure{section}
 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
@@ -391,11 +511,6 @@
        \HCode{<label>}\@seccntformat{section}%
        \HCode{</label>}\fi }
 
-\Configure{likesection}
-{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
-{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
-   {\HCode{<title>}\space\HtmlParOff}
-   {\HCode{</title>}\HtmlParOn \ShowPar\par}
 
 \Configure{subsection}
 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
@@ -409,11 +524,6 @@
        \HCode{<label>}\@seccntformat{section}%
        \HCode{</label>}\fi }
 
-\Configure{likesubsection}
-{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
-{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
-   {\HCode{<title>}\space\HtmlParOff}
-   {\HCode{</title>}\HtmlParOn \ShowPar\par}
 
 \Configure{subsubsection}
 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
@@ -427,19 +537,34 @@
        \HCode{<label>}\@seccntformat{section}%
        \HCode{</label>}\fi }
 
-\Configure{likesubsubsection}
+
+\Configure{paragraph}
 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
    {\HCode{<title>}\space\HtmlParOff}
    {\HCode{</title>}\HtmlParOn \ShowPar\par}
 
-\Configure{paragraph}
+>>>
+
+\<latex unnumbered sections\><<<
+\Configure{likesection}
 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
    {\HCode{<title>}\space\HtmlParOff}
    {\HCode{</title>}\HtmlParOn \ShowPar\par}
 
+\Configure{likesubsection}
+{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
+{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
+   {\HCode{<title>}\space\HtmlParOff}
+   {\HCode{</title>}\HtmlParOn \ShowPar\par}
 
+\Configure{likesubsubsection}
+{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
+{\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
+   {\HCode{<title>}\space\HtmlParOff}
+   {\HCode{</title>}\HtmlParOn \ShowPar\par}
+
 \Configure{likeparagraph}
 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
@@ -447,5 +572,16 @@
    {\HCode{</title>}\HtmlParOn \ShowPar\par}
 >>>
 
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\chapter{Packages}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
+\<configure jats url\><<<
+|<url links|>
+>>>
+
+\<configure jats hyperref\><<<
+|<hyperref links|>
+>>>
+
 \endinput



More information about the tex4ht-commits mailing list.