From fef205d26857e15f9e47723651193a6b6e90c978 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 20 Jan 2024 21:06:56 +0000 Subject: attachfile2 (20jan24) git-svn-id: svn://tug.org/texlive/trunk@69505 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/latex/attachfile2/attachfile2.pdf | Bin 445753 -> 473642 bytes Master/texmf-dist/doc/man/man1/pdfatfi.man1.pdf | Bin 13459 -> 13361 bytes .../source/latex/attachfile2/attachfile2.dtx | 60 ++++++++++----------- .../tex/latex/attachfile2/atfi-dvipdfmx.def | 6 +-- .../tex/latex/attachfile2/atfi-dvips.def | 4 +- .../tex/latex/attachfile2/atfi-luatex.def | 4 +- .../tex/latex/attachfile2/atfi-pdftex.def | 4 +- .../tex/latex/attachfile2/attachfile2.sty | 9 +++- 8 files changed, 45 insertions(+), 42 deletions(-) diff --git a/Master/texmf-dist/doc/latex/attachfile2/attachfile2.pdf b/Master/texmf-dist/doc/latex/attachfile2/attachfile2.pdf index a0a5c5052df..a62aabe340d 100644 Binary files a/Master/texmf-dist/doc/latex/attachfile2/attachfile2.pdf and b/Master/texmf-dist/doc/latex/attachfile2/attachfile2.pdf differ diff --git a/Master/texmf-dist/doc/man/man1/pdfatfi.man1.pdf b/Master/texmf-dist/doc/man/man1/pdfatfi.man1.pdf index c3585e0db89..1b8bd7c68b3 100644 Binary files a/Master/texmf-dist/doc/man/man1/pdfatfi.man1.pdf and b/Master/texmf-dist/doc/man/man1/pdfatfi.man1.pdf differ diff --git a/Master/texmf-dist/source/latex/attachfile2/attachfile2.dtx b/Master/texmf-dist/source/latex/attachfile2/attachfile2.dtx index 2f4aefb8dd1..dfc7336aad9 100644 --- a/Master/texmf-dist/source/latex/attachfile2/attachfile2.dtx +++ b/Master/texmf-dist/source/latex/attachfile2/attachfile2.dtx @@ -1,7 +1,7 @@ % \iffalse meta-comment % % File: attachfile2.dtx -% Version: 2019/11/26 v2.11 +% Version: 2024-01-18 v2.12 % Info: Attach files into PDF % % Copyright (C) @@ -87,7 +87,7 @@ \input docstrip.tex \Msg{************************************************************************} \Msg{* Installation} -\Msg{* Package: attachfile2 2019/11/26 v2.11 Attach files into PDF (HO)} +\Msg{* Package: attachfile2 2024-01-18 v2.12 Attach files into PDF (HO)} \Msg{************************************************************************} \keepsilent @@ -99,7 +99,7 @@ This is a generated file. Project: attachfile2 -Version: 2019/11/26 v2.11 +Version: 2024-01-18 v2.12 Copyright (C) 2005-2010, 2012 Heiko Oberdiek @@ -180,7 +180,7 @@ and the derived files %<*driver> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{attachfile2.drv}% - [2019/11/26 v2.11 Attach files into PDF (HO)]% + [2024-01-18 v2.12 Attach files into PDF (HO)]% \documentclass{ltxdoc} \usepackage{holtxdoc}[2011/11/22] \begin{document} @@ -190,26 +190,11 @@ and the derived files % \fi % % -% \CharacterTable -% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z -% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z -% Digits \0\1\2\3\4\5\6\7\8\9 -% Exclamation \! Double quote \" Hash (number) \# -% Dollar \$ Percent \% Ampersand \& -% Acute accent \' Left paren \( Right paren \) -% Asterisk \* Plus \+ Comma \, -% Minus \- Point \. Solidus \/ -% Colon \: Semicolon \; Less than \< -% Equals \= Greater than \> Question mark \? -% Commercial at \@ Left bracket \[ Backslash \\ -% Right bracket \] Circumflex \^ Underscore \_ -% Grave accent \` Left brace \{ Vertical bar \| -% Right brace \} Tilde \~} % % \GetFileInfo{attachfile2.drv} % % \title{The \xpackage{attachfile2} package} -% \date{2019/11/26 v2.11} +% \date{2024-01-18 v2.12} % \author{Heiko Oberdiek\thanks % {Please report any issues at \url{https://github.com/ho-tex/attachfile2/issues}}} % @@ -318,10 +303,11 @@ and the derived files % if the driver cannot be detected automatically. % \item New options \xoption{final} and \xoption{draft}. % \item New option \xoption{scale} for scaling the annotation rectangle. -% \item Options \xoption{file} and \xoption{nofile} for controlling +% \item Option \xoption{nofiles} for controlling % the generation of the auxiliary file \xfile{.atfi}. % \item New option \xoption{ucfilespec} for file names with % characters outside ASCII (PDF 1.7). +% \item New option \xoption{locked} to set the \texttt{Locked} flag. % \end{itemize} % % \subsubsection{Option \xoption{color}} @@ -437,7 +423,7 @@ and the derived files %<*package> \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{attachfile2}% - [2019/11/26 v2.11 Attach files into PDF (HO)]% + [2024-01-18 v2.12 Attach files into PDF (HO)]% % \end{macrocode} % % \subsubsection{Loading of packages} @@ -793,6 +779,11 @@ and the derived files \DeclareBoolOption[true]{zoom} % \end{macrocode} % +% Option \xoption{locked}. +% \begin{macrocode} +\DeclareBoolOption[true]{locked} +% \end{macrocode} +% % Option \xoption{appearance}. % \begin{macrocode} \DeclareBoolOption[true]{appearance} @@ -884,6 +875,7 @@ and the derived files timezone,% ucfilespec,% zoom,% + locked,% } % \end{macrocode} % @@ -1536,6 +1528,9 @@ and the derived files \else \addtocounter{atfi@flags}{8}% \fi% + \ifatfi@locked + \addtocounter{atfi@flags}{128}% + \fi% } % \end{macrocode} % \end{macro} @@ -1626,7 +1621,7 @@ and the derived files %<*pdftex> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{atfi-pdftex.def}% - [2019/11/26 v2.11 attachfile2 driver for pdfTeX (HO)]% + [2024-01-18 v2.12 attachfile2 driver for pdfTeX (HO)]% % \end{macrocode} % % \paragraph{Macros for graphics data} @@ -1810,7 +1805,7 @@ and the derived files %<*luatex> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{atfi-luatex.def}% - [2019/11/26 v2.11 attachfile2 driver for luaTeX (HO)]% + [2024-01-18 v2.12 attachfile2 driver for luaTeX (HO)]% \protected\def\atfi@literal {\pdfextension literal} \def\atfi@GSAVE{q } \def\atfi@GRESTORE{Q } @@ -1944,7 +1939,7 @@ and the derived files %<*dvips> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{atfi-dvips.def}% - [2019/11/26 v2.11 attachfile2 driver for dvips (HO)]% + [2024-01-18 v2.12 attachfile2 driver for dvips (HO)]% % \end{macrocode} % % \paragraph{Macros for graphics data} @@ -2519,7 +2514,7 @@ and the derived files %<*dvipdfmx> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{atfi-dvipdfmx.def}% - [2019/11/26 v2.11 attachfile2 driver for dvipdfmx/XeTeX (HO)]% + [2024-01-18 v2.12 attachfile2 driver for dvipdfmx/XeTeX (HO)]% % \end{macrocode} % % \paragraph{Macros for graphics data} @@ -2690,7 +2685,7 @@ and the derived files \let\atfi@temp\Hy@Warning \let\Hy@Warning\ltx@gobble \fi - \hypersetup{unicode=false}% + \Hy@unicodefalse% \ifxetex \let\Hy@Warning\atfi@temp \fi @@ -3015,7 +3010,7 @@ ps2pdf test.ps test.pdf .SH OPTIONS Various options are supported -.IP --help +.IP --help Show help text. .IP --version Print version number @@ -3056,7 +3051,7 @@ See attachfile2.pdf for more details. % \item[\CTANinstall{install/macros/latex/contrib/attachfile2.tds.zip}] % \end{description} % \emph{TDS} refers to the standard ``A Directory Structure -% for \TeX\ Files'' (\CTAN{tds/tds.pdf}). Directories +% for \TeX\ Files'' (\CTANpkg{tds}). Directories % with \xfile{texmf} in their name are usually organized this way. % % \subsection{Bundle installation} @@ -3233,7 +3228,7 @@ See attachfile2.pdf for more details. % \bibitem{embedfile} % Heiko Oberdiek: \textit{The \xpackage{embedfile} package}; % 2006/08/16 v1.0; -% \CTAN{macros/latex/contrib/oberdiek/embedfile.pdf}. +% \CTANpkg{embedfile}. % % \bibitem{pdfspec} % Adobe Systems Incorporated: @@ -3339,7 +3334,7 @@ See attachfile2.pdf for more details. % \end{Version} % \begin{Version}{2019/11/24 v2.10} % \item -% Fix perl header comment +% Fix perl header comment % \item % Address perl warning \verb|Scalar value @s[7] better written as $s[7] at pdfatfi.pl line 147| % \item @@ -3349,6 +3344,9 @@ See attachfile2.pdf for more details. % \item % Add man file for \verb|pdfatfi|. % \end{Version} +% \begin{Version}{2024-01-18 v2.12} +% \item Doc corrected for issue 7 +% \end{Version} % \end{History} % % \PrintIndex diff --git a/Master/texmf-dist/tex/latex/attachfile2/atfi-dvipdfmx.def b/Master/texmf-dist/tex/latex/attachfile2/atfi-dvipdfmx.def index 63b56d485d3..f2cb8ac0925 100644 --- a/Master/texmf-dist/tex/latex/attachfile2/atfi-dvipdfmx.def +++ b/Master/texmf-dist/tex/latex/attachfile2/atfi-dvipdfmx.def @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Project: attachfile2 -%% Version: 2019/11/26 v2.11 +%% Version: 2024-01-18 v2.12 %% %% Copyright (C) %% 2005-2010, 2012 Heiko Oberdiek @@ -40,7 +40,7 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesFile{atfi-dvipdfmx.def}% - [2019/11/26 v2.11 attachfile2 driver for dvipdfmx/XeTeX (HO)]% + [2024-01-18 v2.12 attachfile2 driver for dvipdfmx/XeTeX (HO)]% \def\atfi@special#1{% \special{pdf:#1}% } @@ -162,7 +162,7 @@ \let\atfi@temp\Hy@Warning \let\Hy@Warning\ltx@gobble \fi - \hypersetup{unicode=false}% + \Hy@unicodefalse% \ifxetex \let\Hy@Warning\atfi@temp \fi diff --git a/Master/texmf-dist/tex/latex/attachfile2/atfi-dvips.def b/Master/texmf-dist/tex/latex/attachfile2/atfi-dvips.def index 517e75036e7..a665df4392c 100644 --- a/Master/texmf-dist/tex/latex/attachfile2/atfi-dvips.def +++ b/Master/texmf-dist/tex/latex/attachfile2/atfi-dvips.def @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Project: attachfile2 -%% Version: 2019/11/26 v2.11 +%% Version: 2024-01-18 v2.12 %% %% Copyright (C) %% 2005-2010, 2012 Heiko Oberdiek @@ -40,7 +40,7 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesFile{atfi-dvips.def}% - [2019/11/26 v2.11 attachfile2 driver for dvips (HO)]% + [2024-01-18 v2.12 attachfile2 driver for dvips (HO)]% \def\atfi@literal#1{% \special{ps:atfi_dict begin{#1}atfi_?pdfmark end}% } diff --git a/Master/texmf-dist/tex/latex/attachfile2/atfi-luatex.def b/Master/texmf-dist/tex/latex/attachfile2/atfi-luatex.def index b656b948635..e33b9cb9525 100644 --- a/Master/texmf-dist/tex/latex/attachfile2/atfi-luatex.def +++ b/Master/texmf-dist/tex/latex/attachfile2/atfi-luatex.def @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Project: attachfile2 -%% Version: 2019/11/26 v2.11 +%% Version: 2024-01-18 v2.12 %% %% Copyright (C) %% 2005-2010, 2012 Heiko Oberdiek @@ -40,7 +40,7 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesFile{atfi-luatex.def}% - [2019/11/26 v2.11 attachfile2 driver for luaTeX (HO)]% + [2024-01-18 v2.12 attachfile2 driver for luaTeX (HO)]% \protected\def\atfi@literal {\pdfextension literal} \def\atfi@GSAVE{q } \def\atfi@GRESTORE{Q } diff --git a/Master/texmf-dist/tex/latex/attachfile2/atfi-pdftex.def b/Master/texmf-dist/tex/latex/attachfile2/atfi-pdftex.def index 716dc5aaee8..0c9e92529fc 100644 --- a/Master/texmf-dist/tex/latex/attachfile2/atfi-pdftex.def +++ b/Master/texmf-dist/tex/latex/attachfile2/atfi-pdftex.def @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Project: attachfile2 -%% Version: 2019/11/26 v2.11 +%% Version: 2024-01-18 v2.12 %% %% Copyright (C) %% 2005-2010, 2012 Heiko Oberdiek @@ -40,7 +40,7 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesFile{atfi-pdftex.def}% - [2019/11/26 v2.11 attachfile2 driver for pdfTeX (HO)]% + [2024-01-18 v2.12 attachfile2 driver for pdfTeX (HO)]% \let\atfi@literal\pdfliteral \def\atfi@GSAVE{q } \def\atfi@GRESTORE{Q } diff --git a/Master/texmf-dist/tex/latex/attachfile2/attachfile2.sty b/Master/texmf-dist/tex/latex/attachfile2/attachfile2.sty index af91f441111..a78f84b2ec3 100644 --- a/Master/texmf-dist/tex/latex/attachfile2/attachfile2.sty +++ b/Master/texmf-dist/tex/latex/attachfile2/attachfile2.sty @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Project: attachfile2 -%% Version: 2019/11/26 v2.11 +%% Version: 2024-01-18 v2.12 %% %% Copyright (C) %% 2005-2010, 2012 Heiko Oberdiek @@ -40,7 +40,7 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{attachfile2}% - [2019/11/26 v2.11 Attach files into PDF (HO)]% + [2024-01-18 v2.12 Attach files into PDF (HO)]% \RequirePackage{iftex}[2019/11/07] \RequirePackage{keyval} \RequirePackage{color} @@ -231,6 +231,7 @@ } \DeclareBoolOption[true]{print} \DeclareBoolOption[true]{zoom} +\DeclareBoolOption[true]{locked} \DeclareBoolOption[true]{appearance} \DeclareStringOption[1]{scale} \def\atfi@ucfilespec{} @@ -288,6 +289,7 @@ timezone,% ucfilespec,% zoom,% + locked,% } \InputIfFileExists{attachfile.cfg}{}{} \ProcessKeyvalOptions* @@ -761,6 +763,9 @@ \else \addtocounter{atfi@flags}{8}% \fi% + \ifatfi@locked + \addtocounter{atfi@flags}{128}% + \fi% } \def\atfi@textattachfile#1#2{% \endgroup -- cgit v1.2.3