[tex4ht-commits] [SCM] tex4ht updated: r822 - trunk/lit
michal_h21 at gnu.org.ua
michal_h21 at gnu.org.ua
Sat Oct 17 11:49:48 CEST 2020
Author: michal_h21
Date: 2020-10-17 12:49:48 +0300 (Sat, 17 Oct 2020)
New Revision: 822
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-4ht.tex
Log:
adapted savetrees for the new package mechanism
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2020-10-17 09:42:16 UTC (rev 821)
+++ trunk/lit/ChangeLog 2020-10-17 09:49:48 UTC (rev 822)
@@ -16,6 +16,10 @@
the new package hook mechanism.
* tex4ht-4ht.tex (usepackage.4ht, xecjk-hooks.4ht): adapted xeCJK for
the new package hook mechanism.
+ * tex4ht-4ht.tex (usepackage.4ht, xecjk-hooks.4ht): adapted xeCJK for
+ the new package hook mechanism.
+ * tex4ht-4ht.tex (usepackage.4ht, savetrees-hooks.4ht): adapted savetrees for
+ the new package hook mechanism.
2020-10-16 Michal Hoftich <michal.h21 at gmail.com>
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2020-10-17 09:42:16 UTC (rev 821)
+++ trunk/lit/tex4ht-4ht.tex 2020-10-17 09:49:48 UTC (rev 822)
@@ -3648,15 +3648,20 @@
\Section{savetrees.sty}
%%%%%%%%%%%%%%%%%%
-\<use package\><<<
-savetrees,>>>
+This fix is really simple. Savetrees package doesn't make sense in HTML and it
+breaks TeX4ht, so we just disable it.
\<add to usepackage\><<<
-\def\:temp{savetrees}\ifx \@currname\:temp
-\:dontusepackage{savetrees}
-\fi
+\Configure{PackageHooks}{savetrees.sty}{savetrees-hooks.4ht}
>>>
+\<savetrees-hooks.4ht\><<<
+% savetrees-hooks.4ht (|version), generated from |jobname.tex
+% Copyright 2020 TeX Users Group
+|<TeX4ht license text|>
+\:dontusepackage{savetrees}
+>>> \AddFile{9}{savetrees-hooks}
+
%%%%%%%%%%%%%%%%%
\Section{biblatex}
%%%%%%%%%%%%%%%%%
@@ -3666,11 +3671,14 @@
can't be loaded, even if they were loaded
correctly. This just removes the error message.
-\<use package\><<<
-biblatex,>>>
+\<add to usepackage\><<<
+\Configure{PackageHooks}{biblatex.sty}{biblatex-hooks.4ht}
+>>>
-\<add to usepackage\><<<
-\def\:temp{biblatex}\ifx \@currname\:temp
+\<biblatex-hooks.4ht\><<<
+% biblatex-hooks.4ht (|version), generated from |jobname.tex
+% Copyright 2020 TeX Users Group
+|<TeX4ht license text|>
\:AtEndOfPackage{%
\def\blx at mknoautolang{%
\blx at lbxinput{\blx at languagename}%
@@ -3678,8 +3686,7 @@
}%
|<fix biblatex lang handling|>
}
-\fi
->>>
+>>> \AddFile{9}{biblatex-hooks}
Some biblatex styles reported error missing English language.
\Link[https://tex.stackexchange.com/q/469718/2891]{}{}For example here\EndLink.
More information about the tex4ht-commits
mailing list.