texlive[65528] Master: embedfile (12jan23)

commits+karl at tug.org commits+karl at tug.org
Thu Jan 12 22:32:05 CET 2023


Revision: 65528
          http://tug.org/svn/texlive?view=revision&revision=65528
Author:   karl
Date:     2023-01-12 22:32:05 +0100 (Thu, 12 Jan 2023)
Log Message:
-----------
embedfile (12jan23)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/embedfile/README.md
    trunk/Master/texmf-dist/doc/latex/embedfile/embedfile-example-collection.tex
    trunk/Master/texmf-dist/doc/latex/embedfile/embedfile-example-plain.tex
    trunk/Master/texmf-dist/doc/latex/embedfile/embedfile.pdf
    trunk/Master/texmf-dist/source/latex/embedfile/embedfile.dtx
    trunk/Master/texmf-dist/tex/generic/embedfile/embedfile.sty
    trunk/Master/texmf-dist/tex/latex/embedfile/dtx-attach.sty
    trunk/Master/tlpkg/libexec/ctan2tds

Modified: trunk/Master/texmf-dist/doc/latex/embedfile/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/embedfile/README.md	2023-01-12 21:26:40 UTC (rev 65527)
+++ trunk/Master/texmf-dist/doc/latex/embedfile/README.md	2023-01-12 21:32:05 UTC (rev 65528)
@@ -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.

Modified: trunk/Master/texmf-dist/doc/latex/embedfile/embedfile-example-collection.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/embedfile/embedfile-example-collection.tex	2023-01-12 21:26:40 UTC (rev 65527)
+++ trunk/Master/texmf-dist/doc/latex/embedfile/embedfile-example-collection.tex	2023-01-12 21:32:05 UTC (rev 65528)
@@ -9,11 +9,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
@@ -31,7 +31,6 @@
 %% Heiko Oberdiek and the Oberdiek Package Support Group
 %% https://github.com/ho-tex/embedfile/issues
 %% 
-%% 
 %% The Base Interpreter refers to any `TeX-Format',
 %% because some files are installed in TDS:tex/generic//.
 %% 

Modified: trunk/Master/texmf-dist/doc/latex/embedfile/embedfile-example-plain.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/embedfile/embedfile-example-plain.tex	2023-01-12 21:26:40 UTC (rev 65527)
+++ trunk/Master/texmf-dist/doc/latex/embedfile/embedfile-example-plain.tex	2023-01-12 21:32:05 UTC (rev 65528)
@@ -9,11 +9,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
@@ -31,7 +31,6 @@
 %% Heiko Oberdiek and the Oberdiek Package Support Group
 %% https://github.com/ho-tex/embedfile/issues
 %% 
-%% 
 %% The Base Interpreter refers to any `TeX-Format',
 %% because some files are installed in TDS:tex/generic//.
 %% 

Modified: trunk/Master/texmf-dist/doc/latex/embedfile/embedfile.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/embedfile/embedfile.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/embedfile/embedfile.dtx	2023-01-12 21:26:40 UTC (rev 65527)
+++ trunk/Master/texmf-dist/source/latex/embedfile/embedfile.dtx	2023-01-12 21:32:05 UTC (rev 65528)
@@ -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 @@
 %<*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 @@
 % \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 @@
 %      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 @@
 %    \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 @@
 %<*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 @@
   \fi
 \expandafter\x\csname ver at 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 @@
 %    \begin{macro}{\EmFi at Error}
 %    \begin{macrocode}
 \EmFi at RequirePackage{infwarerr}[2007/09/09]%
-\def\EmFi at Error{%
-  \@PackageError{embedfile}%
-}
+\ifcsname EmFi at Error\endcsname
+\else
+  \def\EmFi at Error{%
+    \@PackageError{embedfile}%
+  }
+\fi
 %    \end{macrocode}
 %    \end{macro}
 %
@@ -810,7 +818,7 @@
 \ifpdf
 \else
   \EmFi at 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 @@
           \pdf at escapestring{\EmFi at filespec}%
         }%
         \ifx\EmFi at ucfilespec\ltx at empty
-          \let\EmFi@@ucfilespec\ltx at empty
+          \EmFi at convert\EmFi at filespec\EmFi@@ucfilespec
         \else
           \EmFi at convert\EmFi at ucfilespec\EmFi@@ucfilespec
         \fi
@@ -1449,10 +1457,7 @@
             /FS/\pdf at escapename{\EmFi at filesystem}%
             \fi
             /F(\EmFi@@filespec)%
-            \ifx\EmFi@@ucfilespec\ltx at empty
-            \else
-              /UF(\EmFi@@ucfilespec)%
-            \fi
+            /UF(\EmFi@@ucfilespec)%
             \ifx\EmFi@@desc\ltx at empty
             \else
               /Desc(\EmFi@@desc)%
@@ -1967,7 +1972,12 @@
 %   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}
 %

Modified: trunk/Master/texmf-dist/tex/generic/embedfile/embedfile.sty
===================================================================
--- trunk/Master/texmf-dist/tex/generic/embedfile/embedfile.sty	2023-01-12 21:26:40 UTC (rev 65527)
+++ trunk/Master/texmf-dist/tex/generic/embedfile/embedfile.sty	2023-01-12 21:32:05 UTC (rev 65528)
@@ -9,11 +9,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
@@ -31,7 +31,6 @@
 %% Heiko Oberdiek and the Oberdiek Package Support Group
 %% https://github.com/ho-tex/embedfile/issues
 %% 
-%% 
 %% The Base Interpreter refers to any `TeX-Format',
 %% because some files are installed in TDS:tex/generic//.
 %% 
@@ -109,7 +108,7 @@
   \fi
 \expandafter\x\csname ver at 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)]%
 \begingroup\catcode61\catcode48\catcode32=10\relax%
   \catcode13=5 % ^^M
   \endlinechar=13 %
@@ -164,9 +163,12 @@
   \let\EmFi at RequirePackage\RequirePackage
 \fi
 \EmFi at RequirePackage{infwarerr}[2007/09/09]%
-\def\EmFi at Error{%
-  \@PackageError{embedfile}%
-}
+\ifcsname EmFi at Error\endcsname
+\else
+  \def\EmFi at Error{%
+    \@PackageError{embedfile}%
+  }
+\fi
 \ifx\pdfextension\@undefined\else
     \protected\def\pdflastobj {\numexpr\pdffeedback lastobj\relax}
     \protected\def\pdfnames   {\pdfextension names }
@@ -178,7 +180,7 @@
 \ifpdf
 \else
   \EmFi at Error{%
-    Missing pdfTeX in PDF mode%
+    Missing pdfTeX or luaTeX in PDF mode%
   }{%
     Currently other drivers are not supported. %
     Package loading is aborted.%
@@ -538,7 +540,7 @@
           \pdf at escapestring{\EmFi at filespec}%
         }%
         \ifx\EmFi at ucfilespec\ltx at empty
-          \let\EmFi@@ucfilespec\ltx at empty
+          \EmFi at convert\EmFi at filespec\EmFi@@ucfilespec
         \else
           \EmFi at convert\EmFi at ucfilespec\EmFi@@ucfilespec
         \fi
@@ -583,10 +585,7 @@
             /FS/\pdf at escapename{\EmFi at filesystem}%
             \fi
             /F(\EmFi@@filespec)%
-            \ifx\EmFi@@ucfilespec\ltx at empty
-            \else
-              /UF(\EmFi@@ucfilespec)%
-            \fi
+            /UF(\EmFi@@ucfilespec)%
             \ifx\EmFi@@desc\ltx at empty
             \else
               /Desc(\EmFi@@desc)%

Modified: trunk/Master/texmf-dist/tex/latex/embedfile/dtx-attach.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/embedfile/dtx-attach.sty	2023-01-12 21:26:40 UTC (rev 65527)
+++ trunk/Master/texmf-dist/tex/latex/embedfile/dtx-attach.sty	2023-01-12 21:32:05 UTC (rev 65528)
@@ -9,11 +9,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
@@ -31,7 +31,6 @@
 %% Heiko Oberdiek and the Oberdiek Package Support Group
 %% https://github.com/ho-tex/embedfile/issues
 %% 
-%% 
 %% The Base Interpreter refers to any `TeX-Format',
 %% because some files are installed in TDS:tex/generic//.
 %% 
@@ -45,7 +44,7 @@
 %% 
 \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,%

Modified: trunk/Master/tlpkg/libexec/ctan2tds
===================================================================
--- trunk/Master/tlpkg/libexec/ctan2tds	2023-01-12 21:26:40 UTC (rev 65527)
+++ trunk/Master/tlpkg/libexec/ctan2tds	2023-01-12 21:32:05 UTC (rev 65528)
@@ -1682,6 +1682,7 @@
  'digestif'		=> '&POSTdigestif',
  'doipubmed'            => '&POSTlatex2html',
  'e-french'             => '&POSTe_french',
+ 'embedfile'            => '&POSTembedfile',
  'encxvlna'             => '&POSTencxvlna',
  'endofproofwd'		=> '&POSTendofproofwd',
  'enigma'               => '&POSTenigma',
@@ -3111,6 +3112,7 @@
  'ekaia'        => 'latex',  # requires interaction
  'ellipsis'	=> 'tex',
  'elteikthesis' => 'latex',  # requires interaction
+ 'embedfile'	=> 'etex',
  'emisa'	=> 'pdflatex-preserve-pdf',
  'engpron'      => 'latex -translate-file=empty.tcx',   # no 8-bit
  'ecclesiastic' => 'latex',  # requires interaction
@@ -6766,6 +6768,13 @@
   &SYSTEM ("$MV texmf/doc/* .");
 }
 
+sub POSTembedfile {
+  print "POST$package - one .sty generic, one latex\n";
+  # since two different destinations, handle it specially.
+  &mv_with_mkdir ("$DEST/tex/latex/$package/$package.sty",
+                  "$DEST/tex/generic/$package/");
+}
+
 sub POSTencxvlna {
   print "POST$package - .tex name conflict\n";
   &SYSTEM ("$MV doc/* .");



More information about the tex-live-commits mailing list.