[tex4ht-commits] [SCM] tex4ht updated: r1152 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Wed Jun 15 15:08:46 CEST 2022
Author: michal_h21
Date: 2022-06-15 13:08:46 +0000 (Wed, 15 Jun 2022)
New Revision: 1152
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-jats.tex
Log:
Added support for floats and tables
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2022-06-15 11:45:57 UTC (rev 1151)
+++ trunk/lit/ChangeLog 2022-06-15 13:08:46 UTC (rev 1152)
@@ -1,7 +1,7 @@
2022-06-15 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-jats.tex (jats.4ht): added support for Koma, AMS and Memoir
- classes.
+ classes, figures and tables.
* 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 11:45:57 UTC (rev 1151)
+++ trunk/lit/tex4ht-jats.tex 2022-06-15 13:08:46 UTC (rev 1152)
@@ -158,8 +158,9 @@
\<ams art,proc,book\><<<
|<latex numbered sections|>
-|<figcaption|>
+|<latex floats|>
|<abstract|>
+|<latex tables|>
>>>
\section{Configurations for Memoir}
@@ -173,7 +174,8 @@
\section{Shared class configurations}
\<shared latex classes\><<<
|<latex sections|>
-|<figcaption|>
+|<latex floats|>
+|<latex tables|>
>>>
\<shared article,report\><<<
@@ -573,6 +575,74 @@
>>>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\section{Abstracts}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\<abstract\><<<
+\ConfigureEnv{abstract}
+{\ifvmode\IgnorePar\fi\EndP\HCode{<abstract>\Hnewline}}
+{\ifvmode\IgnorePar\fi\EndP\HCode{</abstract>}\par}{}{}
+
+\Configure{abstracttitle}{\ifvmode\IgnorePar\fi\EndP\HCode{<label>}\HtmlParOff\NoFonts}
+ {\HCode{</label>}\EndNoFonts\HtmlParOn\par}
+>>>
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\section{Floats}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\<latex floats\><<<
+
+\Configure{float}
+ {\ifOption{refcaption}{}{\csname par\endcsname\ShowPar \leavevmode}}
+ {\IgnorePar\EndP\HCode{<fig>}}
+ {\ifvmode \IgnorePar \fi\EndP
+ \HCode{</fig>}\csname par\endcsname\ShowPar}
+
+\ConfigureEnv{figure}
+{\IgnorePar\EndP\HCode{<fig>\Hnewline}%
+ \bgroup \Configure{float}{\ShowPar}{}{}%
+ }
+ {\egroup
+ \IgnorePar\EndP\HCode{</fig>}|<try env inline par|>\par}
+ {}{}
+
+
+\Configure{caption}{\IgnorePar\EndP\HCode{<label>}}
+ {: } {\HCode{</label><caption>}\noindent\ShowPar}
+ {\HCode{</caption>}\HCode{<!--tex4ht:label?:
+ \cur:th\:currentlabel\space-->}%
+}
+>>>
+%%%%%%%%%%%%%%%%%%%
+\section{Tables}
+%%%%%%%%%%%%%%%%%%%
+
+\<latex tables\><<<
+\ConfigureEnv{table}
+ {\ifvmode \IgnorePar\fi \EndP \HCode{<table-wrap position="float">}
+ \Configure{float}{}{}{}{}
+ }
+ {\ifvmode \IgnorePar\fi \EndP \HCode{</table-wrap>}\par\ShowPar}
+ {}{}
+
+\ConfigureEnv{tabular}
+ {\Configure{noalign}%
+{\f:tabular\d:tabular \HCode{<tr><td colspan="\ar:cnt">}}
+{\HCode{</td></tr>}\pend:def\TableNo{0}\c:tabular\e:tabular}%
+%
+\IgnorePar\ifvmode\else\HCode{<!--tex4ht:inline-->}\fi
+\EndP\PushStack\Col:Marg\AllColMargins
+}
+{\PopStack\Col:Marg\AllColMargins\ShowPar
+\Configure{noalign}{}{}%
+%
+\ShowPar
+%
+}{}{}
+>>>
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Packages}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
More information about the tex4ht-commits
mailing list.