[tex4ht-commits] [SCM] tex4ht updated: r1432 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Thu Jan 4 22:04:24 CET 2024
Author: michal_h21
Date: 2024-01-04 21:04:24 +0000 (Thu, 04 Jan 2024)
New Revision: 1432
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-4ht.tex
Log:
fixed support for empty dimensions in adjustwidth environment
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2024-01-04 15:53:40 UTC (rev 1431)
+++ trunk/lit/ChangeLog 2024-01-04 21:04:24 UTC (rev 1432)
@@ -1,5 +1,8 @@
2024-01-04 Michal Hoftich <michal.h21 at gmail.com>
+ * tex4ht-4ht.tex (changepage.4ht): fixed setting of empty margins.
+ https://github.com/michal-h21/tex4ebook/issues/120
+
* tex4ht-4ht.tex (fancyvrb.4ht): changed redefinition of \FVC at Verb
so it doesn't cause runtime errors with Minted's \mintinline.
https://github.com/michal-h21/make4ht/issues/141
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2024-01-04 15:53:40 UTC (rev 1431)
+++ trunk/lit/tex4ht-4ht.tex 2024-01-04 21:04:24 UTC (rev 1432)
@@ -33281,7 +33281,7 @@
%%%%%%%%%%%%%%%%%%%%%%%
\<changepage.4ht\><<<
% changepage.4ht (|version), generated from |jobname.tex
-% Copyright 2023 TeX Users Group
+% Copyright 2023-2024 TeX Users Group
|<TeX4ht license text|>
|<changepage shared config|>
\Hinput{changepage}
@@ -33293,12 +33293,15 @@
We will instead save the margin didmension for the further processing in the output
format configuration.
+
\<changepage shared config\><<<
\NewConfigure{adjustwidth}{2}
\def\:tempa#1#2{%
- \def\adjustwidth:left{#1}%
- \def\adjustwidth:right{#2}%
+ % arguments can be empty, in that case we must declare
+ % the margins as null dimension, to prevent calculation errors
+ \edef\adjustwidth:left{\if\relax#1\relax0pt\else#1\fi}%
+ \edef\adjustwidth:right{\if\relax#2\relax0pt\else#2\fi}%
\a:adjustwidth%
}
\HLet\adjustwidth\:tempa
More information about the tex4ht-commits
mailing list.