summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/attachfile/attachfile.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/attachfile/attachfile.dtx')
-rw-r--r--Master/texmf-dist/source/latex/attachfile/attachfile.dtx12
1 files changed, 9 insertions, 3 deletions
diff --git a/Master/texmf-dist/source/latex/attachfile/attachfile.dtx b/Master/texmf-dist/source/latex/attachfile/attachfile.dtx
index 51870e52b79..1a0b5edb1da 100644
--- a/Master/texmf-dist/source/latex/attachfile/attachfile.dtx
+++ b/Master/texmf-dist/source/latex/attachfile/attachfile.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright (C) 2010 by Scott Pakin <scott+af@pakin.org>
+% Copyright (C) 2011 by Scott Pakin <scott+af@pakin.org>
% -------------------------------------------------------
%
% This file may be distributed and/or modified under the conditions of
@@ -22,7 +22,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{attachfile}
%<*package>
- [2010/09/14 v1.5a PDF 1.3+ file attachment]
+ [2011/03/27 v1.5b PDF 1.3+ file attachment]
%</package>
%
%<*driver>
@@ -84,7 +84,7 @@
%<*package>
% \fi
%
-% \CheckSum{489}
+% \CheckSum{493}
%
% \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
@@ -1734,12 +1734,18 @@
% does all the work. We define two groups: one for keeping the
% attachment options local and one for temporarily altering category
% codes.
+% \changes{v1.5b}{2011/03/27}{Reset ``\texttt{\char`\\}''
+% to category code~0 to enable the use of
+% \texttt{\string\string\string\jobname} in the name of the file
+% attachment for compatibility with \texttt{\string\string\string\attachfile}
+% (reported by Uwe Bieling)}
% \begin{macrocode}
\DeclareRobustCommand{\textattachfile}[1][]{%
\begingroup
\begingroup
\let\do\@makeother
\dospecials
+ \catcode`\\=0\relax
\catcode`\{=1\relax
\catcode`\}=2\relax
\atfi@textattachfile{#1}%