summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-11-12 22:17:27 +0000
committerKarl Berry <karl@freefriends.org>2015-11-12 22:17:27 +0000
commit31d980cd523570aec67a173fcddcd6d8bcf7764b (patch)
tree85745c0def300881abd134d3ac9e8a05571efb36 /Master/texmf-dist/source
parentd7234c8b1a0b9dd638531f41e22cb99a6952c474 (diff)
attachfile (12nov15)
git-svn-id: svn://tug.org/texlive/trunk@38830 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r--Master/texmf-dist/source/latex/attachfile/attachfile.dtx9
1 files changed, 7 insertions, 2 deletions
diff --git a/Master/texmf-dist/source/latex/attachfile/attachfile.dtx b/Master/texmf-dist/source/latex/attachfile/attachfile.dtx
index 09c4f559820..d66e72726d1 100644
--- a/Master/texmf-dist/source/latex/attachfile/attachfile.dtx
+++ b/Master/texmf-dist/source/latex/attachfile/attachfile.dtx
@@ -22,7 +22,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{attachfile}
%<*package>
- [2015/09/30 v1.7 PDF 1.3+ file attachment]
+ [2015/11/11 v1.8 PDF 1.3+ file attachment]
%</package>
%
%<*driver>
@@ -89,7 +89,7 @@
%<*package>
% \fi
%
-% \CheckSum{507}
+% \CheckSum{513}
%
% \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
@@ -1272,6 +1272,9 @@
% |\atfi@embedfile|.
% \changes{v1.3}{2007/01/15}{Made robust to running
% \protect\pkgname{hyperref} with \cs{Hy@unicodetrue}}
+% \changes{v1.8}{2015/11/11}{Strip path names from included files.
+% Mikkel Futtrup reported that path names often confuse PDF readers
+% on tablets and smartphones}
% \begin{macrocode}
\DeclareRobustCommand{\atfi@insert@file@annot}[1]{%
\rule{0pt}{0pt}%
@@ -1280,6 +1283,8 @@
\edef\next{\egroup
\def\noexpand\atfi@file{\atfi@file}%
}\next
+ \filename@parse{\atfi@file}%
+ \edef\atfi@file{\filename@base.\filename@ext}%
\ifatfi@appearance
% \end{macrocode}
% We currently use the same appearance for \textsf{N}ormal,