| 1 |
%% |
| 2 |
%% This is file `lwarp-attachfile2.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% lwarp.dtx (with options: `attachfile2') |
| 8 |
%% This is a generated file. |
| 9 |
%% Copyright 2016-2026 Brian Dunn |
| 10 |
%% |
| 11 |
%% This work may be distributed and/or modified under the |
| 12 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 13 |
%% of this license or (at your option) any later version. |
| 14 |
%% The latest version of this license is in |
| 15 |
%% http://www.latex-project.org/lppl.txt |
| 16 |
%% and version 1.3 or later is part of all distributions of LaTeX |
| 17 |
%% version 2005/12/01 or later. |
| 18 |
|
| 19 |
\LWR@ProvidesPackagePass{attachfile2}[2016/05/16] |
| 20 |
\def\LWR@attachfiletwo@color{}% |
| 21 |
|
| 22 |
\define@key{AtFi}{color}{% |
| 23 |
\def\LWR@attachfiletwo@color{#1}% lwarp |
| 24 |
\HyColor@AttachfileColor{#1}% |
| 25 |
\atfi@color@tex\atfi@color@inline\atfi@color@annot |
| 26 |
{attachfile2}{color}% |
| 27 |
} |
| 28 |
\newenvironment*{LWR@attachfile@icon} |
| 29 |
{ |
| 30 |
\begin{lateximage}*% |
| 31 |
[-attachfile-]% |
| 32 |
[% |
| 33 |
\detokenize\expandafter{\atfi@icon@icon}-% |
| 34 |
\detokenize\expandafter{\LWR@attachfiletwo@color}% |
| 35 |
]% |
| 36 |
} |
| 37 |
{ |
| 38 |
\end{lateximage} |
| 39 |
} |
| 40 |
\xpretocmd{\atfi@acroGraph}{\LWR@attachfile@icon}{}{} |
| 41 |
\xapptocmd{\atfi@acroGraph}{\endLWR@attachfile@icon}{}{} |
| 42 |
|
| 43 |
\xpretocmd{\atfi@acroPaperclip}{\LWR@attachfile@icon}{}{} |
| 44 |
\xapptocmd{\atfi@acroPaperclip}{\endLWR@attachfile@icon}{}{} |
| 45 |
|
| 46 |
\xpretocmd{\atfi@acroPushPin}{\LWR@attachfile@icon}{}{} |
| 47 |
\xapptocmd{\atfi@acroPushPin}{\endLWR@attachfile@icon}{}{} |
| 48 |
|
| 49 |
\xpretocmd{\atfi@acroTag}{\LWR@attachfile@icon}{}{} |
| 50 |
\xapptocmd{\atfi@acroTag}{\endLWR@attachfile@icon}{}{} |
| 51 |
\DeclareRobustCommand{\atfi@embedfile}[1]{} |
| 52 |
\newcommand*{\LWR@attachfile@appearance}{} |
| 53 |
|
| 54 |
\def\atfi@set@appearance@icon{% |
| 55 |
\atfi@set@appearance{\csname atfi@acro\atfi@icon@icon\endcsname}% |
| 56 |
} |
| 57 |
|
| 58 |
\DeclareRobustCommand{\atfi@set@appearance}[1]{% |
| 59 |
\def\LWR@attachfile@appearance{#1}% |
| 60 |
} |
| 61 |
\DeclareRobustCommand{\atfi@insert@file@annot}[1]{% |
| 62 |
\LWR@href@partsanitized{#1}{\LWR@attachfile@appearance}% |
| 63 |
} |
| 64 |
\VerifyCommand[lwarp][attachfile2]{\notextattachfile}{CE78259EFC576D4A15920EADF824D7EF} |
| 65 |
|
| 66 |
\DeclareRobustCommand{\notextattachfile}[2][]{% |
| 67 |
\begingroup |
| 68 |
\atfi@setup{#1}% |
| 69 |
\ifatfi@print |
| 70 |
\leavevmode |
| 71 |
\begingroup |
| 72 |
\HyColor@UseColor\atfi@color@tex |
| 73 |
\LWR@textcurrentcolor{#2}% lwarp |
| 74 |
\endgroup |
| 75 |
\fi |
| 76 |
\endgroup |
| 77 |
} |
| 78 |
\VerifyCommand[lwarp][attachfile2]{\noattachfile}{CE78259EFC576D4A15920EADF824D7EF} |
| 79 |
|
| 80 |
\DeclareRobustCommand{\noattachfile}[1][]{% |
| 81 |
\begingroup |
| 82 |
\atfi@setup{#1}% |
| 83 |
\atfi@set@appearance@icon |
| 84 |
\ifatfi@print |
| 85 |
\LWR@attachfile@appearance% lwarp |
| 86 |
\fi |
| 87 |
\endgroup |
| 88 |
} |
| 89 |
|
| 90 |
|
| 91 |
\endinput |
| 92 |
%% |
| 93 |
%% End of file `lwarp-attachfile2.sty'. |