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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Mon Apr 3 15:19:40 CEST 2023


Author: michal_h21
Date: 2023-04-03 13:19:40 +0000 (Mon, 03 Apr 2023)
New Revision: 1317

Modified:
   trunk/lit/ChangeLog
   trunk/lit/mktex4ht-cnf.tex
   trunk/lit/tex4ht-4ht.tex
   trunk/lit/tex4ht-html4.tex
Log:
Added support for the tabto package

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2023-04-03 10:35:23 UTC (rev 1316)
+++ trunk/lit/ChangeLog	2023-04-03 13:19:40 UTC (rev 1317)
@@ -1,4 +1,8 @@
 2023-04-03  Michal Hoftich  <michal.h21 at gmail.com>
+	
+	* tex4ht-4ht.tex (tabto.4ht),
+	* tex4ht-html4.tex (html4.4ht): added support for the Tabto package.
+	https://github.com/michal-h21/make4ht/issues/116
 
 	* tex4ht-4ht.tex (titlesec-hooks.4ht): disable declaration of title
 	formatting.

Modified: trunk/lit/mktex4ht-cnf.tex
===================================================================
--- trunk/lit/mktex4ht-cnf.tex	2023-04-03 10:35:23 UTC (rev 1316)
+++ trunk/lit/mktex4ht-cnf.tex	2023-04-03 13:19:40 UTC (rev 1317)
@@ -53,6 +53,7 @@
 \AddFile{9}{threeparttable}
 \AddFile{9}{tabularray}
 \AddFile{9}{mdwtab}
+\AddFile{9}{tabto}
 \AddFile{9}{multirow}
 \AddFile{8}{theorem}
 \AddFile{8}{ntheorem}

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2023-04-03 10:35:23 UTC (rev 1316)
+++ trunk/lit/tex4ht-4ht.tex	2023-04-03 13:19:40 UTC (rev 1317)
@@ -11355,6 +11355,27 @@
 >>>
 
 %%%%%%%%%%%%%%%%%%%
+\Section{tabto}
+%%%%%%%%%%%%%%%%%%%
+
+\<tabto.4ht\><<<
+% tabto.4ht (|version), generated from |jobname.tex 
+% Copyright 2023 TeX Users Group 
+|<TeX4ht license text|> 
+|<tabto redefine|>
+\Hinput{tabto}
+\endinput
+>>>\AddFile{9}{tabto}
+
+\<tabto redefine\><<<
+\NewConfigure{tabto}{1}
+\NewConfigure{tabtos}{1} % for starred version \tabto*
+% the provided dimension is stored in \Htabsize
+\ProvideDocumentCommand\tabto:fourht{sm}{\def\Htabsize{\the\dimexpr#2\relax}\IfBooleanTF {#1}{\a:tabtos}{\a:tabto}}
+\HLet\tabto\tabto:fourht
+>>>
+
+%%%%%%%%%%%%%%%%%%%
 \Chapter{multirow}
 %%%%%%%%%%%%%%%%%%%
 

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2023-04-03 10:35:23 UTC (rev 1316)
+++ trunk/lit/tex4ht-html4.tex	2023-04-03 13:19:40 UTC (rev 1317)
@@ -2323,8 +2323,23 @@
 >>>
 
 
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\subsection{tabto}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
+HTML doesn't support concept of tabbing, so we will just
+insert fixed-length space. I am not sure if it is better
+than nothing.
 
+\<configure html4 tabto\><<<
+\Configure{tabto}{\HCode{<span class="tabto" style="width:\Htabsize;"> </span>}}
+\Configure{tabtos}{\HCode{<span class="tabto" style="width:\Htabsize;"> </span>}}
+
+\Css{.tabto{display: inline-block;}}
+>>>
+
+
+
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \section{Bibliography}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



More information about the tex4ht-commits mailing list.