summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/attachfile
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-04-05 21:40:08 +0000
committerKarl Berry <karl@freefriends.org>2015-04-05 21:40:08 +0000
commitb5c336cc046422ec6b8b75be0f12ba52b4137344 (patch)
treeb42c437b1728bde892507fa887e1ad07fd6eabbc /Master/texmf-dist/tex/latex/attachfile
parentbafdf7234ede9e630819d7dd7ee43d73a00e51a7 (diff)
attachfile (5apr15)
git-svn-id: svn://tug.org/texlive/trunk@36721 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/attachfile')
-rw-r--r--Master/texmf-dist/tex/latex/attachfile/attachfile.sty30
1 files changed, 16 insertions, 14 deletions
diff --git a/Master/texmf-dist/tex/latex/attachfile/attachfile.sty b/Master/texmf-dist/tex/latex/attachfile/attachfile.sty
index ca566c0e1fe..b0bc8838fb2 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) 2011 Scott Pakin <scott+af@pakin.org>
+%% Copyright (C) 2015 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}
- [2011/03/27 v1.5b PDF 1.3+ file attachment]
+ [2015/04/04 v1.6 PDF 1.3+ file attachment]
\RequirePackage{ifpdf}
\ifpdf
\else
@@ -120,17 +120,19 @@
}
\newcounter{atfi@tmp}
\DeclareRobustCommand{\atfi@embedfile}[1]{%
- \immediate\pdfobj stream attr {
- /Type /EmbeddedFile
- \atfi@mimetype\space
- \atfi@dlsize\space
- /Params <<
- \atfi@credate\space
- \atfi@moddate\space
- \atfi@size\space
- >>
- } file {#1}%
- \edef\atfi@embedfileobj{\the\pdflastobj}%
+ \expandafter\ifx\csname atfi@embed@file@#1\endcsname\relax
+ \immediate\pdfobj stream attr {
+ /Type /EmbeddedFile
+ \atfi@mimetype\space
+ \atfi@dlsize\space
+ /Params <<
+ \atfi@credate\space
+ \atfi@moddate\space
+ \atfi@size\space
+ >>
+ } file {#1}%
+ \expandafter\xdef\csname atfi@embed@file@#1\endcsname{\the\pdflastobj}%
+ \fi
}
\newlength{\atfi@appearancewidth}
\newlength{\atfi@appearanceheight}
@@ -190,7 +192,7 @@
/Type /Filespec
/F (\atfi@file)
/EF <<
- /F \atfi@embedfileobj\space 0 R
+ /F \csname atfi@embed@file@#1\endcsname\space 0 R
>>
>>
}%