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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Mon Jul 18 19:57:34 CEST 2016


Author: michal_h21
Date: 2016-07-18 20:57:34 +0300 (Mon, 18 Jul 2016)
New Revision: 188

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-sty.tex
Log:
Use \long for pathing with \pend:def and it's variants

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2016-07-17 23:22:26 UTC (rev 187)
+++ trunk/lit/ChangeLog	2016-07-18 17:57:34 UTC (rev 188)
@@ -1,3 +1,10 @@
+2016-07-18  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-sty.tex (tex4ht.sty): make macros patched by \pend:def and similar
+	patching commands \long, in order to correctly support macros defined with
+	\newcommand.
+	<https://puszcza.gnu.org.ua/bugs/index.php?330>.
+
 2016-07-17  Karl Berry  <karl at freefriends.org>
 
 	* tex4ht-4ht.tex (\CodeLineNo): disable again since Michal's

Modified: trunk/lit/tex4ht-sty.tex
===================================================================
--- trunk/lit/tex4ht-sty.tex	2016-07-17 23:22:26 UTC (rev 187)
+++ trunk/lit/tex4ht-sty.tex	2016-07-18 17:57:34 UTC (rev 188)
@@ -10726,18 +10726,18 @@
 
 \<early utilities\><<<
 \long\def\append:def#1#2{%
-   \def\:temp{\def#1}%
+   \long\def\:temp{\long\def#1}%
    \expandafter\expandafter\expandafter\:temp\expandafter{#1#2}}
 \long\def\pend:def#1#2{%
-   \def\:temp{#2}%
-   \def\:tempa{\def#1}%
+   \long\def\:temp{#2}%
+   \long\def\:tempa{\long\def#1}%
    \expandafter\expandafter\expandafter\expandafter
        \expandafter\expandafter\expandafter\:tempa
    \expandafter\expandafter\expandafter{\expandafter\:temp #1}}
 \long\def\pend:defI#1#2{%
-   \def\:tempa{\def#1####1}%
+   \long\def\:tempa{\long\def#1####1}%
    \ex:pend{#2}{\expandafter\:temp #1{##1}}}
-\long\def\ex:pend#1{\def\:temp{#1}%
+\long\def\ex:pend#1{\long\def\:temp{#1}%
   \expandafter\expandafter\expandafter\expandafter
        \expandafter\expandafter\expandafter\:tempa
    \expandafter\expandafter\expandafter}
@@ -10745,19 +10745,19 @@
 
 \<utilities\><<<
 \long\def\append:defI#1#2{%
-   \def\:temp{\def#1####1}%
+   \long\def\:temp{\long\def#1####1}%
    \expandafter\expandafter\expandafter\:temp\expandafter{#1{##1}#2}}   
 \long\def\pend:defII#1#2{%
-   \def\:tempa{\def#1####1####2}%
+   \long\def\:tempa{\long\def#1####1####2}%
    \ex:pend{#2}{\expandafter\:temp #1{##1}{##2}}}
 \long\def\append:defII#1#2{%
-   \def\:temp{\def#1####1####2}%
+   \long\def\:temp{\long\def#1####1####2}%
    \expandafter\expandafter\expandafter\:temp\expandafter{#1{##1}{##2}#2}}
 \long\def\pend:defIII#1#2{%
-   \def\:tempa{\def#1####1####2####3}%
+   \long\def\:tempa{\long\def#1####1####2####3}%
    \ex:pend{#2}{\expandafter\:temp #1{##1}{##2}{##3}}}
 \long\def\append:defIII#1#2{%
-   \def\:temp{\def#1####1####2####3}%
+   \long\def\:temp{\long\def#1####1####2####3}%
    \expandafter\expandafter\expandafter
       \:temp\expandafter{#1{##1}{##2}{##3}#2}}
 >>>



More information about the tex4ht-commits mailing list