[tex4ht-commits] [SCM] tex4ht updated: r881 - trunk/lit
michal_h21 at gnu.org.ua
michal_h21 at gnu.org.ua
Sun Feb 7 23:51:16 CET 2021
Author: michal_h21
Date: 2021-02-08 00:51:16 +0200 (Mon, 08 Feb 2021)
New Revision: 881
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-4ht.tex
trunk/lit/tex4ht-html4.tex
Log:
Fixed exerquiz packgage support
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2021-02-06 16:23:32 UTC (rev 880)
+++ trunk/lit/ChangeLog 2021-02-07 22:51:16 UTC (rev 881)
@@ -1,8 +1,13 @@
+2021-02-07 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-4ht.tex (exerquiz.4ht, exerquiz-hooks.4ht, usepackage.4ht),
+ * tex4ht-html4.tex (html4.4ht): fixed exerquiz package support.
+
2021-02-06 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-4ht.tex (latex.4ht),
- tex4ht-unicode.tex (unicode.4ht),
- tex4ht-mathml.tex (mathml.4ht): use \protect in \:nbsp and similar commands
+ * tex4ht-unicode.tex (unicode.4ht),
+ * tex4ht-mathml.tex (mathml.4ht): use \protect in \:nbsp and similar commands
that use \leavevmode internally.
2021-02-03 Michal Hoftich <michal.h21 at gmail.com>
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2021-02-06 16:23:32 UTC (rev 880)
+++ trunk/lit/tex4ht-4ht.tex 2021-02-07 22:51:16 UTC (rev 881)
@@ -31302,12 +31302,12 @@
\def\hyperlink#1#2{\Link{#1}{}#2\EndLink}
\append:def\exercise{\Link{}{page.ex\the at exno}\EndLink }
-\pend:def\endsolution{\def\thepage{ex\the at exno}}
+\pend:def\endsolution at sq{\def\thepage{ex\the at exno}}
\let\:shortquiz|=\shortquiz
\def\shortquiz{\gHAdvance\:onClick by 1
\Link{}{page.qz\:onClick}\EndLink \:shortquiz
- \pend:def\endsolution{\def\thepage{qz\:onClick}}}
+ \pend:def\endsolution at sq{\def\thepage{qz\:onClick}}}
\pend:def\include at quizsolutions{%
\let\sv:newpage|=\newpage
@@ -31320,6 +31320,8 @@
\endinput
>>> \AddFile{9}{exerquiz}
+
+
\<configure answers\><<<
\HAssign\:onClick = 0
\HAssign\Prob:N = 0
@@ -31420,8 +31422,24 @@
\Configure{quiz*}{}{}{}
>>>
-
+We must fix some exerquiz issues before we load the package itself.
+\<add to usepackage\><<<
+\Configure{PackageHooks}{exerquiz.sty}{exerquiz-hooks.4ht}
+>>>
+
+\<exerquiz-hooks.4ht\><<<
+% exerquiz-hooks.4ht (|version), generated from |jobname.tex
+% Copyright 2021 TeX Users Group
+|<TeX4ht copywrite|>
+\ifdefined\headerps at out\else%
+\def\headerps at out#1{}%
+\fi
+% \AtBeginDocument{\let\origa:Form\a:Form\let\a:Form\relax}
+% \AtEndDocument{\let\b:Form\relax}
+% \AtEndOfPackage{\AtBeginDocument{\let\a:form\origa:Form}}
+>>>\AddFile{9}{exerquiz-hooks}
+
\Section{nicefrac.sty}
Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex 2021-02-06 16:23:32 UTC (rev 880)
+++ trunk/lit/tex4ht-html4.tex 2021-02-07 22:51:16 UTC (rev 881)
@@ -20510,9 +20510,16 @@
|<4 exerquiz|>
>>>
+% Edit 2021: The JavaScript stuff defined in exerqz.4ht
+% respective it's HTML configuration below doesn't work
+% at all. It even results in fatal compilatio error.
+% I've removed the following line that introduces
+% this JavaScript code.
+
+%\Configure{@HEAD}{\input exerqz.4ht }
+
\<32,4 exerquiz\><<<
\Configure{Form}{}{}
-\Configure{@HEAD}{\input exerqz.4ht }
\Css{.onClick {color:green;}}
\Configure{TextField::}{}{%
\IgnorePar \EndP
More information about the tex4ht-commits
mailing list.