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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Thu Jan 12 22:20:42 CET 2023


Author: michal_h21
Date: 2023-01-12 21:20:42 +0000 (Thu, 12 Jan 2023)
New Revision: 1286

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
prevent error message from embedfile

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2023-01-12 13:43:41 UTC (rev 1285)
+++ trunk/lit/ChangeLog	2023-01-12 21:20:42 UTC (rev 1286)
@@ -1,5 +1,9 @@
 2023-01-12  Michal Hoftich  <michal.h21 at gmail.com>
 
+	* tex4ht-4ht.tex (embedfile-hooks.4ht, usepackage.4ht): declared
+	error printing command, to prevent actual error message.
+	https://github.com/ho-tex/embedfile/pull/7
+
 	* tex4ht-4ht.tex (embedfile.4ht): added support for the embedfile
 	package.
 	https://github.com/michal-h21/tex4ebook/issues/99

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2023-01-12 13:43:41 UTC (rev 1285)
+++ trunk/lit/tex4ht-4ht.tex	2023-01-12 21:20:42 UTC (rev 1286)
@@ -5086,6 +5086,22 @@
 \newcommand\embedfilegetobject[2]{}
 >>>
 
+The embedfile stops it's loading once it finds that we use engine that
+doesn't output PDF. We need to declare a command that prints an error
+message before the package quits.
+
+\<add to usepackage\><<<
+\Configure{PackageHooks}{embedfile.sty}{embedfile-hooks.4ht}
+>>>
+
+\<embedfile-hooks.4ht\><<< 
+% embedfile-hooks.4ht (|version), generated from |jobname.tex 
+% Copyright 2023 TeX Users Group 
+|<TeX4ht license text|> 
+\def\EmFi at Error#1#2{}
+>>> \AddFile{9}{embedfile-hooks}
+
+
 \Section{url.sty}
 %%%%%%%%%%%%%%%%%%
 



More information about the tex4ht-commits mailing list.