From 68c4298fcb81029c78143b3d43802f9ec62d49a5 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Fri, 13 Jan 2023 03:00:58 +0000 Subject: CTAN sync 202301130300 --- macros/latex/contrib/embedfile/README.md | 17 ++++++--- macros/latex/contrib/embedfile/embedfile.dtx | 52 ++++++++++++++++----------- macros/latex/contrib/embedfile/embedfile.pdf | Bin 397270 -> 421169 bytes 3 files changed, 44 insertions(+), 25 deletions(-) (limited to 'macros/latex/contrib/embedfile') diff --git a/macros/latex/contrib/embedfile/README.md b/macros/latex/contrib/embedfile/README.md index d410d5f8c1..5a892264da 100644 --- a/macros/latex/contrib/embedfile/README.md +++ b/macros/latex/contrib/embedfile/README.md @@ -1,7 +1,16 @@ -# embedfile +# embedfile package for LaTeX -embedfile package for LaTeX +## Version: 2023-01-12 v2.12 +This package embeds files in a PDF document, using the PDF format's embedding +operation (note the contrast with the attach operation used by the attachfile +and attachfile2 packages). Currently only pdfTeX and luaTeX in PDF mode are +supported. -This package embeds files to a PDF document. -Currently the only supported drivers are pdfTeX and LuaTeX. +## Copyright (C) +* 2006-2011 Heiko Oberdiek +* 2016-2023 Oberdiek Package Support Group +* https://github.com/ho-tex/embedfile/issues + +## License +LATEX Project Public License, version 1.3c or later. diff --git a/macros/latex/contrib/embedfile/embedfile.dtx b/macros/latex/contrib/embedfile/embedfile.dtx index aed35ec760..62e17326fc 100644 --- a/macros/latex/contrib/embedfile/embedfile.dtx +++ b/macros/latex/contrib/embedfile/embedfile.dtx @@ -1,12 +1,12 @@ % \iffalse meta-comment % % File: embedfile.dtx -% Version: 2020-04-24 v2.11 +% Version: 2023-01-12 v2.12 % Info: Embed files into PDF % % Copyright (C) % 2006-2011 Heiko Oberdiek -% 2016-2020 Oberdiek Package Support Group +% 2016-2023 Oberdiek Package Support Group % https://github.com/ho-tex/embedfile/issues % % This work may be distributed and/or modified under the @@ -89,7 +89,7 @@ \input docstrip.tex \Msg{************************************************************************} \Msg{* Installation} -\Msg{* Package: embedfile 2020-04-24 v2.11 Embed files into PDF (HO)} +\Msg{* Package: embedfile 2023-01-12 v2.12 Embed files into PDF (HO)} \Msg{************************************************************************} \keepsilent @@ -101,11 +101,11 @@ This is a generated file. Project: embedfile -Version: 2020-04-24 v2.11 +Version: 2023-01-12 v2.12 Copyright (C) 2006-2011 Heiko Oberdiek - 2016-2020 Oberdiek Package Support Group + 2016-2023 Oberdiek Package Support Group This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either @@ -179,7 +179,7 @@ and the derived files %<*driver> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{embedfile.drv}% - [2020-04-24 v2.11 Embed files into PDF (HO)]% + [2023-01-12 v2.12 Embed files into PDF (HO)]% \documentclass{ltxdoc} \usepackage{holtxdoc}[2011/11/22] \begin{document} @@ -193,7 +193,7 @@ and the derived files % \GetFileInfo{embedfile.drv} % % \title{The \xpackage{embedfile} package} -% \date{2020-04-24 v2.11} +% \date{2023-01-12 v2.12} % \author{Heiko Oberdiek\thanks % {Please report any issues at \url{https://github.com/ho-tex/embedfile/issues}}} % @@ -289,8 +289,11 @@ and the derived files % are different. % \item[\xoption{ucfilespec}] % Since PDF 1.7 the file name may be provided in Unicode. +% It must be provided for PDF/A-3. +% By default the \xoption{filespec} is used. % The conversion of the option value into a PDF string % is controlled by option \xoption{stringmethod}. +% Non-ascii chars can look funny if hyperref is not loaded! % \item[\xoption{filesystem}] % This sets the entry \verb|/FS| in % the file specification dictionary, see PDF specification @@ -303,8 +306,10 @@ and the derived files % \item[\xoption{desc}] % The description for the file. % \item[\xoption{afrelationship}] -% This adds the /AFRelationship key to the filespec dicrectory. The value is -% a pdf name with or without the leading slash.% +% This adds the /AFRelationship key to the filespec dictionary. The value is +% a pdf name with or without the leading slash. +% Typical values are \verb|Source|, \verb|Data|, \verb|Alternative|, +% \verb|Schema| or \verb|Unspecified|. Mandatory for PDF/A-3. % \item[\xoption{stringmethod}] % The package must convert the values of the keys \xoption{ucfilespec} % and \xoption{desc} into a PDF string (before version 2.4: \xoption{filespec} @@ -623,7 +628,7 @@ You need Acrobat Reader 8 or higher. %<*dtxattach> \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{dtx-attach} - [2020-04-24 v2.11 Embed \string\jobname.dtx (HO)]% + [2023-01-12 v2.12 Embed \string\jobname.dtx (HO)]% \RequirePackage{embedfile}[2019/12/03] \embedfile[% stringmethod=escape,% @@ -714,7 +719,7 @@ You need Acrobat Reader 8 or higher. \fi \expandafter\x\csname ver@embedfile.sty\endcsname \ProvidesPackage{embedfile}% - [2020-04-24 v2.11 Embed files into PDF (HO)]% + [2023-01-12 v2.12 Embed files into PDF (HO)]% % \end{macrocode} % % \subsection{Catcodes} @@ -785,9 +790,12 @@ You need Acrobat Reader 8 or higher. % \begin{macro}{\EmFi@Error} % \begin{macrocode} \EmFi@RequirePackage{infwarerr}[2007/09/09]% -\def\EmFi@Error{% - \@PackageError{embedfile}% -} +\ifcsname EmFi@Error\endcsname +\else + \def\EmFi@Error{% + \@PackageError{embedfile}% + } +\fi % \end{macrocode} % \end{macro} % @@ -810,7 +818,7 @@ You need Acrobat Reader 8 or higher. \ifpdf \else \EmFi@Error{% - Missing pdfTeX in PDF mode% + Missing pdfTeX or luaTeX in PDF mode% }{% Currently other drivers are not supported. % Package loading is aborted.% @@ -1404,7 +1412,7 @@ You need Acrobat Reader 8 or higher. \pdf@escapestring{\EmFi@filespec}% }% \ifx\EmFi@ucfilespec\ltx@empty - \let\EmFi@@ucfilespec\ltx@empty + \EmFi@convert\EmFi@filespec\EmFi@@ucfilespec \else \EmFi@convert\EmFi@ucfilespec\EmFi@@ucfilespec \fi @@ -1449,10 +1457,7 @@ You need Acrobat Reader 8 or higher. /FS/\pdf@escapename{\EmFi@filesystem}% \fi /F(\EmFi@@filespec)% - \ifx\EmFi@@ucfilespec\ltx@empty - \else - /UF(\EmFi@@ucfilespec)% - \fi + /UF(\EmFi@@ucfilespec)% \ifx\EmFi@@desc\ltx@empty \else /Desc(\EmFi@@desc)% @@ -1967,7 +1972,12 @@ You need Acrobat Reader 8 or higher. % converted but name escaped. % \end{Version} % \begin{Version}{2020-04-24 v2.11} -% \item Added a missing fi. +% \item Updated +% \end{Version}% +% \begin{Version}{2023-01-12 v2.12} +% \item Allow the error message to be changed for better tex4ht compability (PR\#7) +% \item Adapted the error message to luatex +% \item The /UF key in the filespec dictionary is now set by default (PR\#6) % \end{Version} % \end{History} % diff --git a/macros/latex/contrib/embedfile/embedfile.pdf b/macros/latex/contrib/embedfile/embedfile.pdf index 76d25b9e45..b0e9dddc1c 100644 Binary files a/macros/latex/contrib/embedfile/embedfile.pdf and b/macros/latex/contrib/embedfile/embedfile.pdf differ -- cgit v1.2.3