texlive[42099] Master/texmf-dist: attachfile (19sep16)
commits+karl at tug.org
commits+karl at tug.org
Mon Sep 19 23:14:03 CEST 2016
Revision: 42099
http://tug.org/svn/texlive?view=revision&revision=42099
Author: karl
Date: 2016-09-19 23:14:03 +0200 (Mon, 19 Sep 2016)
Log Message:
-----------
attachfile (19sep16)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/attachfile/README
trunk/Master/texmf-dist/doc/latex/attachfile/attachfile.pdf
trunk/Master/texmf-dist/source/latex/attachfile/attachfile.dtx
trunk/Master/texmf-dist/source/latex/attachfile/attachfile.ins
trunk/Master/texmf-dist/tex/latex/attachfile/attachfile.sty
Added Paths:
-----------
trunk/Master/texmf-dist/bibtex/bib/attachfile/
trunk/Master/texmf-dist/bibtex/bib/attachfile/attachfile.bib
Added: trunk/Master/texmf-dist/bibtex/bib/attachfile/attachfile.bib
===================================================================
--- trunk/Master/texmf-dist/bibtex/bib/attachfile/attachfile.bib (rev 0)
+++ trunk/Master/texmf-dist/bibtex/bib/attachfile/attachfile.bib 2016-09-19 21:14:03 UTC (rev 42099)
@@ -0,0 +1,31 @@
+ at Book{PDFRef,
+ author = {{Adobe Systems Incorporated}},
+ title = {{PDF} Reference Version~1.6},
+ publisher = {Adobe Press},
+ year = 2004,
+ key = {PDF},
+ edition = {Fifth},
+ month = dec # {~3,},
+ note = {ISBN~\mbox{0321304748}. Available from \url{http://partners.adobe.com/public/developer/en/pdf/PDFReference16.pdf}}
+}
+
+ at Unpublished{MediaTypes,
+ author = {{Internet Assigned Numbers Authority}},
+ title = {{MIME} Media Types},
+ note = {Available from \url{http://www.iana.org/assignments/media-types/}},
+ key = {IANA}
+}
+
+ at TechReport{Freed1996,
+ author = {N. Freed and N. Borenstein},
+ title = {{M}ultipurpose {I}nternet {M}ail {E}xtensions {(MIME)}
+ Part Two: Media Types},
+ institution = {Internet Engineering Task Force (IETF),
+ Network Working Group},
+ year = 1996,
+ type = {Request for Comments (RFC)},
+ number = 2046,
+ month = nov,
+ note = {Available from
+ \url{http://www.rfc-editor.org/rfc/rfc2046.txt}}
+}
Property changes on: trunk/Master/texmf-dist/bibtex/bib/attachfile/attachfile.bib
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/latex/attachfile/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/attachfile/README 2016-09-19 01:10:38 UTC (rev 42098)
+++ trunk/Master/texmf-dist/doc/latex/attachfile/README 2016-09-19 21:14:03 UTC (rev 42099)
@@ -21,7 +21,7 @@
Copyright and license
---------------------
-Copyright (C) 2015 Scott Pakin <scott+af at pakin.org>
+Copyright (C) 2016 Scott Pakin <scott+af at pakin.org>
This package may be distributed and/or modified under the conditions
of the LaTeX Project Public License, either version 1.3c of this
Modified: trunk/Master/texmf-dist/doc/latex/attachfile/attachfile.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/attachfile/attachfile.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/attachfile/attachfile.dtx 2016-09-19 01:10:38 UTC (rev 42098)
+++ trunk/Master/texmf-dist/source/latex/attachfile/attachfile.dtx 2016-09-19 21:14:03 UTC (rev 42099)
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright (C) 2015 by Scott Pakin <scott+af at pakin.org>
+% Copyright (C) 2016 by Scott Pakin <scott+af at 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>
- [2015/11/11 v1.8 PDF 1.3+ file attachment]
+ [2016/09/18 v1.9 PDF 1.3+ file attachment]
%</package>
%
%<*driver>
@@ -89,7 +89,7 @@
%<*package>
% \fi
%
-% \CheckSum{513}
+% \CheckSum{521}
%
% \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
@@ -838,23 +838,29 @@
% \acronym{PDF} files from \latex\ source,
% \pkgname{attachfile}~\fileversion\ supports only \pdflatex\ and
% \lualatex.
-%
+%
+% \item \lualatex~0.85 introduced incompatible changes in the set of
+% \acronym{PDF} primitives supported. Because \pkgname{attachfile}
+% does not yet provide explicit support for these new primitives,
+% documents will need to include a |\usepackage{luatex85}| line in
+% the preamble in order to build under \lualatex~0.85+.
+%
% \item \pkgname{attachfile} will not run unless the following
% \latex\ packages are installed: \pkgname{calc}, \pkgname{keyval},
% \pkgname{color}, \pkgname{hyperref}, and \pkgname{ifpdf}. (Most
% \tex\ distributions include all of these.)
-%
+%
% \item File attachments are a \acronym{PDF}~1.3 feature. They will
% not be visible in \acronym{PDF} viewers that don't support
% \acronym{PDF}~1.3. (Version~4.0 of \adobeacrobat is the first
% version of that program which does.)
-%
+%
% \item Even some viewers that purportedly support \acronym{PDF}~1.3
% don't support file attachments. As far as I can tell, very old
% versions of \adobeacrobatreader (the free, view-only version of
% \adobeacrobat) doesn't seem to support \emph{any} annotations
% except text annotations.
-%
+%
% \item Even some viewers that do support \acronym{PDF}~1.3 and file
% attachments don't support them under all circumstances. For
% instance, some Windows\smallreg\ versions of \adobeacrobat, when
@@ -862,16 +868,16 @@
% message\footnote{``Launching embedded files from within a browser
% environment is not allowed''.} when a file attachment icon is
% activated.
-%
+%
% \item Even in circumstances where file attachments are supported,
% the support may be flawed. For example, some
% Windows\smallreg\ versions of \adobeacrobat change a custom icon
% to the default icon when it's selected.
-%
-% Also, while file-attachment icons with custom appearances printed
+%
+% \item While file-attachment icons with custom appearances printed
% fine in older versions of \adobeacrobat, \adobe introduced a bug
-% circa \adobeacrobat~6.0 that prevents \pkgname{attachfile}'s icons
-% from printing. Unfortunately, because \adobeacrobat lacks
+% circa \adobeacrobat~6.0 that prevents \pkgname{attachfile}'s
+% icons from printing. Unfortunately, because \adobeacrobat lacks
% \pkgname{attachfile}'s ability to create custom appearances for
% file-attachment icons it's unlikely that this bug will ever get
% fixed. Nevertheless, please consider sending a bug report to
@@ -1227,6 +1233,8 @@
% \item It enables (generally older) \acronym{PDF} viewers that don't
% recognize the icon name to still display something meaningful.
% \end{enumerate}
+% \changes{v1.9}{2016/09/16}{Removed redundant \string\texttt{/Subtype
+% /Form} dictionary entries}
% \begin{macrocode}
\DeclareRobustCommand{\atfi at set@appearance}[1]{%
\savebox{\atfi at appearancebox}{#1}%
@@ -1233,9 +1241,7 @@
\settowidth{\atfi at appearancewidth}{\usebox{\atfi at appearancebox}}%
\settoheight{\atfi at appearanceheight}{\usebox{\atfi at appearancebox}}%
\settodepth{\atfi at appearancedepth}{\usebox{\atfi at appearancebox}}%
- \immediate\pdfxform attr {
- /Subtype /Form
- } \atfi at appearancebox
+ \immediate\pdfxform \atfi at appearancebox
\edef\atfi at appearanceobj{\the\pdflastxform}%
}
% \end{macrocode}
@@ -1275,6 +1281,8 @@
% \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}
+% \changes{v1.9}{2016/09/16}{Correctly handle filenames that lack an
+% extension}
% \begin{macrocode}
\DeclareRobustCommand{\atfi at insert@file at annot}[1]{%
\rule{0pt}{0pt}%
@@ -1284,7 +1292,11 @@
\def\noexpand\atfi at file{\atfi at file}%
}\next
\filename at parse{\atfi at file}%
- \edef\atfi at file{\filename at base.\filename at ext}%
+ \@ifundefined{filename at ext}{%
+ \edef\atfi at file{\filename at base}%
+ }{%
+ \edef\atfi at file{\filename at base.\filename at ext}%
+ }%
\ifatfi at appearance
% \end{macrocode}
% We currently use the same appearance for \textsf{N}ormal,
@@ -1349,10 +1361,17 @@
% within this group, embeds the corresponding file into the generated
% \acronym{PDF} file, and places an icon at the current location. Then,
% it ends the group, thereby restoring the original category codes.
+% \changes{v1.9}{2016/09/16}{Issue an error if the requested icon isn't found}
% \begin{macrocode}
\def\atfi at attachfile#1#2{%
\setkeys{AtFi}{#1}%
\atfi at embedfile{#2}%
+ \@ifundefined{atfi at acro\atfi at icon@icon}{%
+ \PackageError{attachfile}{Icon not found}{%
+ attachfile defines only the following icons:\MessageBreak
+ Graph, Paperclip, PushPin, Tag
+ }%
+ }{}%
\atfi at set@appearance{\csname atfi at acro\atfi at icon@icon\endcsname}%
\atfi at flags@to at int%
\atfi at insert@file at annot{#2}%
Modified: trunk/Master/texmf-dist/source/latex/attachfile/attachfile.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/attachfile/attachfile.ins 2016-09-19 01:10:38 UTC (rev 42098)
+++ trunk/Master/texmf-dist/source/latex/attachfile/attachfile.ins 2016-09-19 21:14:03 UTC (rev 42099)
@@ -3,7 +3,7 @@
%% driver files from the doc files in this package when run through
%% LaTeX or TeX.
%%
-%% Copyright (C) 2015 Scott Pakin <scott+af at pakin.org>
+%% Copyright (C) 2016 Scott Pakin <scott+af at pakin.org>
%% -------------------------------------------------------
%%
%% This package may be distributed and/or modified under the
@@ -28,7 +28,7 @@
This is a generated file.
-Copyright (C) 2015 Scott Pakin <scott+af at pakin.org>
+Copyright (C) 2016 Scott Pakin <scott+af at pakin.org>
-------------------------------------------------------
This package may be distributed and/or modified under the
Modified: trunk/Master/texmf-dist/tex/latex/attachfile/attachfile.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/attachfile/attachfile.sty 2016-09-19 01:10:38 UTC (rev 42098)
+++ trunk/Master/texmf-dist/tex/latex/attachfile/attachfile.sty 2016-09-19 21:14:03 UTC (rev 42099)
@@ -8,7 +8,7 @@
%%
%% This is a generated file.
%%
-%% Copyright (C) 2015 Scott Pakin <scott+af at pakin.org>
+%% Copyright (C) 2016 Scott Pakin <scott+af at 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 at appearancewidth}{\usebox{\atfi at appearancebox}}%
\settoheight{\atfi at appearanceheight}{\usebox{\atfi at appearancebox}}%
\settodepth{\atfi at appearancedepth}{\usebox{\atfi at appearancebox}}%
- \immediate\pdfxform attr {
- /Subtype /Form
- } \atfi at appearancebox
+ \immediate\pdfxform \atfi at appearancebox
\edef\atfi at appearanceobj{\the\pdflastxform}%
}
\DeclareRobustCommand{\atfi at flags@to at int}{%
@@ -169,7 +167,11 @@
\def\noexpand\atfi at file{\atfi at file}%
}\next
\filename at parse{\atfi at file}%
- \edef\atfi at file{\filename at base.\filename at ext}%
+ \@ifundefined{filename at ext}{%
+ \edef\atfi at file{\filename at base}%
+ }{%
+ \edef\atfi at file{\filename at base.\filename at ext}%
+ }%
\ifatfi at appearance
\def\atfi at appearance@dict{%
/AP <<
@@ -207,6 +209,12 @@
\def\atfi at attachfile#1#2{%
\setkeys{AtFi}{#1}%
\atfi at embedfile{#2}%
+ \@ifundefined{atfi at acro\atfi at icon@icon}{%
+ \PackageError{attachfile}{Icon not found}{%
+ attachfile defines only the following icons:\MessageBreak
+ Graph, Paperclip, PushPin, Tag
+ }%
+ }{}%
\atfi at set@appearance{\csname atfi at acro\atfi at icon@icon\endcsname}%
\atfi at flags@to at int%
\atfi at insert@file at annot{#2}%
More information about the tex-live-commits
mailing list