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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Thu Jan 12 14:43:41 CET 2023


Author: michal_h21
Date: 2023-01-12 13:43:41 +0000 (Thu, 12 Jan 2023)
New Revision: 1285

Modified:
   trunk/lit/ChangeLog
   trunk/lit/mktex4ht-cnf.tex
   trunk/lit/tex4ht-4ht.tex
Log:
Added support for the embedfile package

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2023-01-10 21:33:09 UTC (rev 1284)
+++ trunk/lit/ChangeLog	2023-01-12 13:43:41 UTC (rev 1285)
@@ -1,3 +1,9 @@
+2023-01-12  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (embedfile.4ht): added support for the embedfile
+	package.
+	https://github.com/michal-h21/tex4ebook/issues/99
+
 2023-01-10  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-html5.tex (html5.4ht): added default CSS style for sections

Modified: trunk/lit/mktex4ht-cnf.tex
===================================================================
--- trunk/lit/mktex4ht-cnf.tex	2023-01-10 21:33:09 UTC (rev 1284)
+++ trunk/lit/mktex4ht-cnf.tex	2023-01-12 13:43:41 UTC (rev 1285)
@@ -386,6 +386,7 @@
 \AddFile{9}{animate}
 \AddFile{9}{sectionbreak}
 \AddFile{9}{subfiles}
+\AddFile{9}{embedfile}
 \AddFile{9}{fontawesome5}
 \AddFile{9}{mhchem}
 % \AddFile{9}{mktex4ht}

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2023-01-10 21:33:09 UTC (rev 1284)
+++ trunk/lit/tex4ht-4ht.tex	2023-01-12 13:43:41 UTC (rev 1285)
@@ -1,7 +1,7 @@
 % $Id$
 % tex tex4ht-4ht   or   ht tex tex4ht-4ht
 %
-% Copyright 2009-2022 TeX Users Group    
+% Copyright 2009-2023 TeX Users Group    
 % Copyright 1996-2009 Eitan M. Gurari    
 % Released under LPPL 1.3c+.
 % See tex4ht-cpright.tex for license text.
@@ -5045,6 +5045,47 @@
 
 >>>
 
+%%%%%%%%%%%%%%%%%%%%%%%
+\Section{embedfile.sty}
+%%%%%%%%%%%%%%%%%%%%%%%
+
+\<embedfile.4ht\><<< 
+% embedfile.4ht (|version), generated from |jobname.tex 
+% Copyright 2023 TeX Users Group 
+|<TeX4ht license text|> 
+|<embedfile file|>
+|<embedfile dummy commands|>
+\Hinput{embedfile}
+\endinput
+
+>>> \AddFile{9}{embedfile}
+
+The embedfile command included a file to PDF. We cannot do that in the
+HTML output, but we can at least register the file, so it will be for 
+example copied to the output directory.
+
+\<embedfile file\><<<
+\NewConfigure{embedfile}{1}
+\Configure{embedfile}{{\Configure{Needs}{File: \embed:file}\Needs{}}}
+\newcommand\embedfile[2][]{
+  \edef\embed:file{#2}%
+  \a:embedfile%
+}
+>>>
+
+These commands are defined just that we don't get error messages that
+they don't exist. We don't try to emulate them.
+
+\<embedfile dummy commands\><<<
+% dummy commands that can be used in the document
+\newcommand\embedfilefinish{}
+\newcommand\embedfilesetup[1]{}
+\newcommand\embedfilesort[1]{}
+\newcommand\embedfilefield[2]{}
+\newcommand\embedfileifobjectexists[4]{}
+\newcommand\embedfilegetobject[2]{}
+>>>
+
 \Section{url.sty}
 %%%%%%%%%%%%%%%%%%
 



More information about the tex4ht-commits mailing list.