diff options
author | Norbert Preining <norbert@preining.info> | 2023-01-14 03:01:17 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-01-14 03:01:17 +0000 |
commit | 1d1c448a4f84ba2f5329218a68e7fcadf62999e6 (patch) | |
tree | 728549f940a969183d39d82dbdfbf6bc50827200 /support/TeX4ht/source | |
parent | 68c4298fcb81029c78143b3d43802f9ec62d49a5 (diff) |
CTAN sync 202301140301
Diffstat (limited to 'support/TeX4ht/source')
-rw-r--r-- | support/TeX4ht/source/ChangeLog | 10 | ||||
-rw-r--r-- | support/TeX4ht/source/mktex4ht-cnf.tex | 3 | ||||
-rw-r--r-- | support/TeX4ht/source/tex4ht-4ht.tex | 61 |
3 files changed, 71 insertions, 3 deletions
diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog index d1cb7c2edc..46df45ccfe 100644 --- a/support/TeX4ht/source/ChangeLog +++ b/support/TeX4ht/source/ChangeLog @@ -1,3 +1,13 @@ +2023-01-12 Michal Hoftich <michal.h21@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 + 2023-01-10 Michal Hoftich <michal.h21@gmail.com> * tex4ht-html5.tex (html5.4ht): added default CSS style for sections diff --git a/support/TeX4ht/source/mktex4ht-cnf.tex b/support/TeX4ht/source/mktex4ht-cnf.tex index 3143a5b33d..6617373113 100644 --- a/support/TeX4ht/source/mktex4ht-cnf.tex +++ b/support/TeX4ht/source/mktex4ht-cnf.tex @@ -1,4 +1,4 @@ -% $Id: mktex4ht-cnf.tex 1282 2023-01-08 15:27:15Z karl $ +% $Id: mktex4ht-cnf.tex 1285 2023-01-12 13:43:41Z michal_h21 $ % Manually-maintained file, listing *.4ht files created by tex4ht-4ht.tex. % Read by tex4ht-cond4ht. % @@ -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} diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex index 8a63480c63..b26c68c2cf 100644 --- a/support/TeX4ht/source/tex4ht-4ht.tex +++ b/support/TeX4ht/source/tex4ht-4ht.tex @@ -1,7 +1,7 @@ -% $Id: tex4ht-4ht.tex 1280 2022-12-30 23:31:42Z michal_h21 $ +% $Id: tex4ht-4ht.tex 1286 2023-01-12 21:20:42Z michal_h21 $ % 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,63 @@ which will prevent the stop of the processing. >>> +%%%%%%%%%%%%%%%%%%%%%%% +\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]{} +>>> + +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@Error#1#2{} +>>> \AddFile{9}{embedfile-hooks} + + \Section{url.sty} %%%%%%%%%%%%%%%%%% |