[tex4ht-commits] [SCM] tex4ht updated: r1602 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Fri Nov 22 16:01:36 CET 2024
Author: michal_h21
Date: 2024-11-22 15:01:36 +0000 (Fri, 22 Nov 2024)
New Revision: 1602
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-4ht.tex
Log:
test for optional arguments in \linenumbers
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2024-11-22 12:42:44 UTC (rev 1601)
+++ trunk/lit/ChangeLog 2024-11-22 15:01:36 UTC (rev 1602)
@@ -1,5 +1,8 @@
2024-11-22 Michal Hoftich <michal.h21 at gmail.com>
+ * tex4ht-4ht.tex (lineno.4ht): test for star and optional argument
+ in \linenumbers.
+
* tex4ht-4ht.tex (IEEEtran.4ht): fixed support for cross-references
to subsections.
https://tex.stackexchange.com/a/731404/2891
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2024-11-22 12:42:44 UTC (rev 1601)
+++ trunk/lit/tex4ht-4ht.tex 2024-11-22 15:01:36 UTC (rev 1602)
@@ -34160,8 +34160,10 @@
% \linenumbers don't have any sense in the HTML output
% moreover, they cause equations and possibly other elements to fail
-\HLet\linenumbers\relax
+\def\:tempa{\@ifnextchar [{\resetlinenumber }{\@ifstar {\resetlinenumber }{}}}
+\HLet\linenumbers\:tempa
+
% if \linenumbers were used in the document preamble, we must disable them now:
\LineNumbersfalse
More information about the tex4ht-commits
mailing list.