summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/attachfile
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2006-10-12 01:55:05 +0000
committerNorbert Preining <preining@logic.at>2006-10-12 01:55:05 +0000
commitf516b1a1044ae23e71bda0e1fb2fb82d869a34ba (patch)
treea7e7b49b9645684e4adf59693ff099480a19e821 /Master/texmf-dist/tex/latex/attachfile
parent24da87217b6a2fdc1a3bea6528cbcff988acb75e (diff)
add attachfile to ctan-tpm-check, update the package
git-svn-id: svn://tug.org/texlive/trunk@2317 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/attachfile')
-rw-r--r--Master/texmf-dist/tex/latex/attachfile/attachfile.sty29
1 files changed, 21 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/attachfile/attachfile.sty b/Master/texmf-dist/tex/latex/attachfile/attachfile.sty
index 27e25aa5f19..7f4afbe4fab 100644
--- a/Master/texmf-dist/tex/latex/attachfile/attachfile.sty
+++ b/Master/texmf-dist/tex/latex/attachfile/attachfile.sty
@@ -8,20 +8,22 @@
%%
%% This is a generated file.
%%
-%% Copyright (C) 2005 Scott Pakin <scott+af@pakin.org>
+%% Copyright (C) 2006 Scott Pakin <scott+af@pakin.org>
%% -------------------------------------------------------
%%
%% This package may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either version 1.2
-%% of this license or (at your option) any later version.
-%% The latest version of this license is in
+%% conditions of the LaTeX Project Public License, either
+%% version 1.3b of this license or (at your option) any later
+%% version. The latest version of this license is in
+%%
%% http://www.latex-project.org/lppl.txt
-%% and version 1.2 or later is part of all distributions of LaTeX
-%% version 1999/12/01 or later.
+%%
+%% and version 1.3b or later is part of all distributions of
+%% LaTeX version 2006/01/07 or later.
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{attachfile}
- [2005/02/20 v1.2 PDF 1.3+ file attachment]
+ [2006/03/28 v1.2a PDF 1.3+ file attachment]
\RequirePackage{ifpdf}
\ifpdf
\else
@@ -209,10 +211,21 @@
\atfi@insert@file@annot{#2}%
\endgroup
}
+\bgroup
+ \lccode`\@=`\#
+ \lowercase{\gdef\atfi@pdf@slash{@2f}}
+\egroup
+\def\atfi@split@mimetype#1/#2/{%
+ \def\atfi@mime@type{#1}%
+ \def\atfi@mime@subtype{#2}%
+}
\def\atfi@mimetype{}
\define@key{AtFi}{mimetype}{%
\atfi@pdfstringdef\atfi@mimetype{#1}%
- \edef\atfi@mimetype{/Subtype (\atfi@mimetype)}%
+ \atfi@split@mimetype#1/%
+ \edef\atfi@mimetype{%
+ /Subtype /\atfi@mime@type\atfi@pdf@slash\atfi@mime@subtype
+ }%
}
\define@key{AtFi}{icon}{%
\def\atfi@icon{/Name /#1}%