diff options
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/attachfile/attachfile.sty | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/attachfile/attachfile.sty b/Master/texmf-dist/tex/latex/attachfile/attachfile.sty index c7f110aade5..8ba926f85b3 100644 --- a/Master/texmf-dist/tex/latex/attachfile/attachfile.sty +++ b/Master/texmf-dist/tex/latex/attachfile/attachfile.sty @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2015 Scott Pakin <scott+af@pakin.org> +%% Copyright (C) 2016 Scott Pakin <scott+af@pakin.org> %% ------------------------------------------------------- %% %% This package may be distributed and/or modified under the @@ -23,7 +23,7 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{attachfile} - [2015/11/11 v1.8 PDF 1.3+ file attachment] + [2016/09/18 v1.9 PDF 1.3+ file attachment] \RequirePackage{ifpdf} \ifpdf \else @@ -145,9 +145,7 @@ \settowidth{\atfi@appearancewidth}{\usebox{\atfi@appearancebox}}% \settoheight{\atfi@appearanceheight}{\usebox{\atfi@appearancebox}}% \settodepth{\atfi@appearancedepth}{\usebox{\atfi@appearancebox}}% - \immediate\pdfxform attr { - /Subtype /Form - } \atfi@appearancebox + \immediate\pdfxform \atfi@appearancebox \edef\atfi@appearanceobj{\the\pdflastxform}% } \DeclareRobustCommand{\atfi@flags@to@int}{% @@ -169,7 +167,11 @@ \def\noexpand\atfi@file{\atfi@file}% }\next \filename@parse{\atfi@file}% - \edef\atfi@file{\filename@base.\filename@ext}% + \@ifundefined{filename@ext}{% + \edef\atfi@file{\filename@base}% + }{% + \edef\atfi@file{\filename@base.\filename@ext}% + }% \ifatfi@appearance \def\atfi@appearance@dict{% /AP << @@ -207,6 +209,12 @@ \def\atfi@attachfile#1#2{% \setkeys{AtFi}{#1}% \atfi@embedfile{#2}% + \@ifundefined{atfi@acro\atfi@icon@icon}{% + \PackageError{attachfile}{Icon not found}{% + attachfile defines only the following icons:\MessageBreak + Graph, Paperclip, PushPin, Tag + }% + }{}% \atfi@set@appearance{\csname atfi@acro\atfi@icon@icon\endcsname}% \atfi@flags@to@int% \atfi@insert@file@annot{#2}% |