| 1 |
%% |
| 2 |
%% This is file `attachfile2.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% attachfile2.dtx (with options: `package') |
| 8 |
%% |
| 9 |
%% This is a generated file. |
| 10 |
%% |
| 11 |
%% Project: attachfile2 |
| 12 |
%% Version: 2024-01-18 v2.12 |
| 13 |
%% |
| 14 |
%% Copyright (C) |
| 15 |
%% 2005-2010, 2012 Heiko Oberdiek |
| 16 |
%% 2016-2019 Oberdiek Package Support Group |
| 17 |
%% |
| 18 |
%% This work may be distributed and/or modified under the |
| 19 |
%% conditions of the LaTeX Project Public License, either |
| 20 |
%% version 1.3c of this license or (at your option) any later |
| 21 |
%% version. This version of this license is in |
| 22 |
%% https://www.latex-project.org/lppl/lppl-1-3c.txt |
| 23 |
%% and the latest version of this license is in |
| 24 |
%% https://www.latex-project.org/lppl.txt |
| 25 |
%% and version 1.3 or later is part of all distributions of |
| 26 |
%% LaTeX version 2005/12/01 or later. |
| 27 |
%% |
| 28 |
%% This work has the LPPL maintenance status "maintained". |
| 29 |
%% |
| 30 |
%% The Current Maintainers of this work are |
| 31 |
%% Heiko Oberdiek and the Oberdiek Package Support Group |
| 32 |
%% https://github.com/ho-tex/attachfile2/issues |
| 33 |
%% |
| 34 |
%% |
| 35 |
%% This work consists of the main source file attachfile2.dtx |
| 36 |
%% and the derived files |
| 37 |
%% attachfile2.sty, attachfile2.pdf, |
| 38 |
%% atfi-dvips.def, atfi-pdftex.def, atfi-dvipdfmx.def, atfi-luatex.def |
| 39 |
%% pdfatfi.pl, pdfatfi.1. |
| 40 |
%% |
| 41 |
\NeedsTeXFormat{LaTeX2e} |
| 42 |
\ProvidesPackage{attachfile2}% |
| 43 |
[2024-01-18 v2.12 Attach files into PDF (HO)]% |
| 44 |
\RequirePackage{iftex}[2019/11/07] |
| 45 |
\RequirePackage{keyval} |
| 46 |
\RequirePackage{color} |
| 47 |
\RequirePackage{infwarerr}[2010/04/08] |
| 48 |
\RequirePackage{ltxcmds}[2010/04/26] |
| 49 |
\RequirePackage{kvoptions}[2009/07/21] |
| 50 |
\RequirePackage{pdftexcmds}[2010/04/01] |
| 51 |
\RequirePackage{pdfescape}[2007/11/11] |
| 52 |
\RequirePackage{hyperref} |
| 53 |
\RequirePackage{hycolor}[2008/07/29] |
| 54 |
\ltx@IfUndefined{pdfmatch}{% |
| 55 |
\def\atfi@Match#1#2#3#4#5{}% |
| 56 |
}{% |
| 57 |
\def\atfi@Match#1#2#3{% |
| 58 |
\begingroup |
| 59 |
\edef\^{\ltx@backslashchar\string^}% |
| 60 |
\edef\.{\ltx@backslashchar.}% |
| 61 |
\let\#\ltx@hashchar |
| 62 |
\edef\[{\ltx@backslashchar[}% ]] |
| 63 |
\edef\${\ltx@backslashchar$}% |
| 64 |
\let\%\ltx@percentchar |
| 65 |
\edef\&{\string&}% |
| 66 |
\edef\({\ltx@backslashchar(}% |
| 67 |
\edef\){\ltx@backslashchar)}% |
| 68 |
\edef\|{\ltx@backslashchar|}% |
| 69 |
\edef\*{\ltx@backslashchar*}% |
| 70 |
\edef\+{\ltx@backslashchar+}% |
| 71 |
\edef\?{\ltx@backslashchar?}% |
| 72 |
\edef\{{\ltx@backslashchar\ltx@leftbracechar}% |
| 73 |
\edef\}{\ltx@rightbracechar}% |
| 74 |
\edef\\{\ltx@backslashchar\ltx@backslashchar}% |
| 75 |
\edef\~{\string~}% |
| 76 |
\ifcase\pdfmatch#3{#2}{#1} % |
| 77 |
\endgroup |
| 78 |
\expandafter\ltx@secondoftwo |
| 79 |
\or |
| 80 |
\endgroup |
| 81 |
\expandafter\ltx@firstoftwo |
| 82 |
\else |
| 83 |
\atfi@Warning{% |
| 84 |
Internal error: Wrong pattern!\MessageBreak |
| 85 |
--> #2 <--\MessageBreak |
| 86 |
Pattern check ignored% |
| 87 |
}% |
| 88 |
\endgroup |
| 89 |
\expandafter\ltx@firstoftwo |
| 90 |
\fi |
| 91 |
}% |
| 92 |
\def\atfi@PatToken{% |
| 93 |
[% |
| 94 |
-% first character |
| 95 |
!% |
| 96 |
\#$\%\&'% |
| 97 |
\*\+\.% |
| 98 |
0-9% |
| 99 |
A-Z% |
| 100 |
\^_`% |
| 101 |
a-z% |
| 102 |
\{\}\|\~% |
| 103 |
]+% |
| 104 |
}% |
| 105 |
\begingroup |
| 106 |
\lccode64=13 % @ |
| 107 |
\lowercase{\endgroup |
| 108 |
\def\atfi@CR{@}% |
| 109 |
}% |
| 110 |
\def\atfi@PatQuotedString{% |
| 111 |
"% |
| 112 |
([^"\\\atfi@CR]|\\.)*% |
| 113 |
"% |
| 114 |
}% |
| 115 |
\ltx@ifpackagelater{ltxcmds}{2010/09/11}{}{% |
| 116 |
\begingroup |
| 117 |
\lccode`0=`\{\relax |
| 118 |
\lowercase{\endgroup |
| 119 |
\def\ltx@leftbracechar{0}% |
| 120 |
}% |
| 121 |
\begingroup |
| 122 |
\lccode`0=`\}\relax |
| 123 |
\lowercase{\endgroup |
| 124 |
\def\ltx@rightbracechar{0}% |
| 125 |
}% |
| 126 |
}% |
| 127 |
} |
| 128 |
\def\atfi@Warning{\PackageWarning{attachfile2}} |
| 129 |
\SetupKeyvalOptions{% |
| 130 |
family=AtFi,% |
| 131 |
prefix=atfi@% |
| 132 |
} |
| 133 |
\def\atfi@setup{\setkeys{AtFi}} |
| 134 |
\DeclareBoolOption{draft} |
| 135 |
\DeclareComplementaryOption{final}{draft} |
| 136 |
\def\atfi@mimetype{} |
| 137 |
\define@key{AtFi}{mimetype}{% |
| 138 |
\edef\atfi@mimetype{#1}% |
| 139 |
\ifx\atfi@mimetype\ltx@empty |
| 140 |
\else |
| 141 |
\atfi@Match\atfi@mimetype{% |
| 142 |
^(application|audio|image|model|text|video|x-\atfi@PatToken)% |
| 143 |
/% |
| 144 |
([a-z\-\+_\.0-9]+)% |
| 145 |
(; ?\atfi@PatToken=(\atfi@PatToken|\atfi@PatQuotedString))*$% |
| 146 |
}{icase}{}{% |
| 147 |
\atfi@Warning{% |
| 148 |
Invalid value `\atfi@mimetype'\MessageBreak |
| 149 |
of option `mimetype'.\MessageBreak |
| 150 |
Value is discarded% |
| 151 |
}% |
| 152 |
\let\atfi@mimetype\ltx@empty |
| 153 |
}% |
| 154 |
\fi |
| 155 |
\ifx\atfi@mimetype\ltx@empty |
| 156 |
\else |
| 157 |
\EdefEscapeName\atfi@mimetype{\atfi@mimetype}% |
| 158 |
\edef\atfi@mimetype{/Subtype/\atfi@mimetype}% |
| 159 |
\fi |
| 160 |
} |
| 161 |
\define@key{AtFi}{icon}{% |
| 162 |
\def\atfi@icon{/Name/#1}% |
| 163 |
\def\atfi@icon@icon{#1}% |
| 164 |
} |
| 165 |
\atfi@setup{icon=PushPin} |
| 166 |
\define@key{AtFi}{color}{% |
| 167 |
\HyColor@AttachfileColor{#1}% |
| 168 |
\atfi@color@tex\atfi@color@inline\atfi@color@annot |
| 169 |
{attachfile2}{color}% |
| 170 |
} |
| 171 |
\atfi@setup{color=1 0.9255 0.7765} |
| 172 |
\def\atfi@pad@ii#1{% |
| 173 |
\ifnum#1>9 % |
| 174 |
\number#1% |
| 175 |
\else |
| 176 |
0\number#1% |
| 177 |
\fi% |
| 178 |
} |
| 179 |
\let\atfi@timezone\ltx@empty |
| 180 |
\define@key{AtFi}{timezone}{\def\atfi@timezone{#1}} |
| 181 |
\edef\atfi@time{\the\time} |
| 182 |
\def\atfi@hours{% |
| 183 |
\numexpr\dimexpr0.01667\dimexpr\atfi@time sp\relax\relax\relax |
| 184 |
} |
| 185 |
\def\atfi@minutes{% |
| 186 |
\numexpr\atfi@time-60*\atfi@hours\relax |
| 187 |
} |
| 188 |
\def\atfi@seconds{0} |
| 189 |
\def\atfi@date{% |
| 190 |
/M(D:\the\year |
| 191 |
\atfi@pad@ii\month |
| 192 |
\atfi@pad@ii\day |
| 193 |
\atfi@pad@ii\atfi@hours |
| 194 |
\atfi@pad@ii\atfi@minutes |
| 195 |
\atfi@pad@ii\atfi@seconds |
| 196 |
\atfi@timezone)% |
| 197 |
} |
| 198 |
\define@key{AtFi}{date}{% |
| 199 |
\EdefEscapeString\atfi@date{#1}% |
| 200 |
\edef\atfi@date{/M(\atfi@date)}% |
| 201 |
} |
| 202 |
\DeclareRobustCommand{\atfi@pdfstringdef}[2]{% |
| 203 |
\pdfstringdef\atfi@temp@string{#2}% |
| 204 |
\edef#1{\atfi@temp@string}% |
| 205 |
} |
| 206 |
\def\atfi@NoValue{\NoValue} |
| 207 |
\def\atfi@DefNoValueName#1#2#3{% |
| 208 |
\def#1{#3}% |
| 209 |
\ifx#1\atfi@NoValue |
| 210 |
\let#1\ltx@empty |
| 211 |
\else |
| 212 |
\atfi@pdfstringdef#1{#1}% |
| 213 |
\edef#1{/#2(#1)}% |
| 214 |
\fi |
| 215 |
} |
| 216 |
\let\atfi@annotname\ltx@empty |
| 217 |
\define@key{AtFi}{annotname}[\NoValue]{% |
| 218 |
\atfi@DefNoValueName\atfi@annotname{NM}{#1}% |
| 219 |
} |
| 220 |
\def\atfi@author{} |
| 221 |
\define@key{AtFi}{author}[\NoValue]{% |
| 222 |
\atfi@DefNoValueName\atfi@author{T}{#1}% |
| 223 |
} |
| 224 |
\def\atfi@description{} |
| 225 |
\define@key{AtFi}{description}[\NoValue]{% |
| 226 |
\atfi@DefNoValueName\atfi@description{Contents}{#1}% |
| 227 |
} |
| 228 |
\def\atfi@subject{} |
| 229 |
\define@key{AtFi}{subject}[\NoValue]{% |
| 230 |
\atfi@DefNoValueName\atfi@subject{Subj}{#1}% |
| 231 |
} |
| 232 |
\DeclareBoolOption[true]{print} |
| 233 |
\DeclareBoolOption[true]{zoom} |
| 234 |
\DeclareBoolOption[true]{locked} |
| 235 |
\DeclareBoolOption[true]{appearance} |
| 236 |
\DeclareStringOption[1]{scale} |
| 237 |
\def\atfi@ucfilespec{} |
| 238 |
\define@key{AtFi}{ucfilespec}[1]{% |
| 239 |
\def\atfi@ucfilespec{#1}% |
| 240 |
\ifx\atfi@ucfilespec\ltx@empty |
| 241 |
\else |
| 242 |
\atfi@pdfstringdef\atfi@ucfilespec{#1}% |
| 243 |
\fi |
| 244 |
} |
| 245 |
\DeclareBoolOption{nofiles} |
| 246 |
\let\atfi@driver\ltx@empty |
| 247 |
\def\atfi@driver@pdftex{pdftex} |
| 248 |
\def\atfi@driver@luatex{luatex} |
| 249 |
\def\atfi@driver@dvips{dvips} |
| 250 |
\def\atfi@driver@dvipdfmx{dvipdfmx} |
| 251 |
\DeclareVoidOption{pdftex}{% |
| 252 |
\ifpdf |
| 253 |
\let\atfi@driver\atfi@driver@pdftex |
| 254 |
\else |
| 255 |
\let\atfi@driver\ltx@empty |
| 256 |
\PackageError{attachfile2}{% |
| 257 |
Wrong driver option `pdftex',\MessageBreak |
| 258 |
because pdfTeX in PDF mode is not detected% |
| 259 |
}\@ehc |
| 260 |
\fi |
| 261 |
} |
| 262 |
\DeclareVoidOption{luatex}{% |
| 263 |
\let\atfi@driver\atfi@driver@luatex |
| 264 |
} |
| 265 |
\DeclareVoidOption{dvips}{% |
| 266 |
\let\atfi@driver\atfi@driver@dvips |
| 267 |
} |
| 268 |
\DeclareVoidOption{dvipdfmx}{% |
| 269 |
\let\atfi@driver\atfi@driver@dvipdfmx |
| 270 |
} |
| 271 |
\DeclareVoidOption{xetex}{% |
| 272 |
\let\atfi@driver\atfi@driver@dvipdfmx |
| 273 |
} |
| 274 |
\DeclareStringOption{driverfallback} |
| 275 |
\DeclareRobustCommand{\attachfilesetup}[1]{\setkeys{AtFi}{#1}} |
| 276 |
\DeclareLocalOptions{% |
| 277 |
annotname,% |
| 278 |
appearance,% |
| 279 |
author,% |
| 280 |
color,% |
| 281 |
date,% |
| 282 |
description,% |
| 283 |
icon,% |
| 284 |
mimetype,% |
| 285 |
nofiles,% |
| 286 |
print,% |
| 287 |
scale,% |
| 288 |
subject,% |
| 289 |
timezone,% |
| 290 |
ucfilespec,% |
| 291 |
zoom,% |
| 292 |
locked,% |
| 293 |
} |
| 294 |
\InputIfFileExists{attachfile.cfg}{}{} |
| 295 |
\ProcessKeyvalOptions* |
| 296 |
\def\atfi@DisableOption{% |
| 297 |
\DisableKeyvalOption[action=error,package=attachfile2]{AtFi}% |
| 298 |
} |
| 299 |
\ifpdf |
| 300 |
\ifluatex |
| 301 |
\let\atfi@driver\atfi@driver@luatex |
| 302 |
\else |
| 303 |
\let\atfi@driver\atfi@driver@pdftex |
| 304 |
\fi |
| 305 |
\else |
| 306 |
\ifxetex |
| 307 |
\let\atfi@driver\atfi@driver@dvipdfmx |
| 308 |
\else |
| 309 |
\ifx\atfi@driver\ltx@empty |
| 310 |
\ifx\atfi@driverfallback\ltx@empty |
| 311 |
\else |
| 312 |
\expandafter\let\expandafter\atfi@driver |
| 313 |
\csname atfi@driver@\atfi@driverfallback\endcsname |
| 314 |
\ifx\atfi@driver\atfi@driver@dvips |
| 315 |
\else |
| 316 |
\ifx\atfi@driver\atfi@driver@dvipdfmx |
| 317 |
\else |
| 318 |
\let\atfi@driver\ltx@empty |
| 319 |
\PackageWarningNoLine{attachfile2}{% |
| 320 |
Option `driverfallback' with unsupported\MessageBreak |
| 321 |
DVI driver (\atfi@driverfallback)% |
| 322 |
}% |
| 323 |
\fi |
| 324 |
\fi |
| 325 |
\fi |
| 326 |
\ifx\atfi@driver\ltx@empty |
| 327 |
\PackageWarningNoLine{attachfile2}{% |
| 328 |
Driver is not specified,\MessageBreak |
| 329 |
enforce draft settings% |
| 330 |
}% |
| 331 |
\atfi@drafttrue |
| 332 |
\fi |
| 333 |
\fi |
| 334 |
\fi |
| 335 |
\fi |
| 336 |
\atfi@DisableOption{pdftex} |
| 337 |
\atfi@DisableOption{dvips} |
| 338 |
\atfi@DisableOption{dvipdfmx} |
| 339 |
\atfi@DisableOption{xetex} |
| 340 |
\atfi@DisableOption{driverfallback} |
| 341 |
\DeclareRobustCommand{\notextattachfile}[2][]{% |
| 342 |
\begingroup |
| 343 |
\atfi@setup{#1}% |
| 344 |
\ifatfi@print |
| 345 |
\leavevmode |
| 346 |
\begingroup |
| 347 |
\HyColor@UseColor\atfi@color@tex |
| 348 |
#2\strut |
| 349 |
\endgroup |
| 350 |
\else |
| 351 |
\sbox\ltx@zero{#2\strut}% |
| 352 |
\makebox[\wd0]{}% |
| 353 |
\fi |
| 354 |
\endgroup |
| 355 |
} |
| 356 |
\atfi@DisableOption{draft}% |
| 357 |
\atfi@DisableOption{final}% |
| 358 |
\ifatfi@draft |
| 359 |
\def\atfi@dummy@pushpin{% |
| 360 |
\raisebox{-1.25bp}{\parbox[b][14bp]{24bp}{}}% |
| 361 |
}% |
| 362 |
\DeclareRobustCommand{\textattachfile}[3][]{% |
| 363 |
\notextattachfile[{#1}]{#3}% |
| 364 |
}% |
| 365 |
\DeclareRobustCommand{\noattachfile}[1][]{% |
| 366 |
\notextattachfile[{#1}]{\atfi@dummy@pushpin}% |
| 367 |
}% |
| 368 |
\DeclareRobustCommand{\attachfile}[2][]{% |
| 369 |
\noattachfile[{#1}]% |
| 370 |
}% |
| 371 |
\expandafter\endinput |
| 372 |
\fi |
| 373 |
\input{atfi-\[email protected]} |
| 374 |
\def\atfi@acroGraph@data{% |
| 375 |
\atfi@GSAVE |
| 376 |
0.5 \atfi@SETGRAYFILL |
| 377 |
1.1133 0 20.7202 18.2754 \atfi@RECTFILL |
| 378 |
0 \atfi@SETFLAT |
| 379 |
0.5 \atfi@SETLINEWIDTH |
| 380 |
4 \atfi@SETMITERLIMIT |
| 381 |
\atfi@RECTSTROKEFILL{% |
| 382 |
1 \atfi@SETGRAYFILL |
| 383 |
}{% |
| 384 |
0 \atfi@SETGRAYSTROKE |
| 385 |
}{% |
| 386 |
0.25 1.6453 20.145 17.7715 % |
| 387 |
}% |
| 388 |
0 \atfi@SETGRAYFILL |
| 389 |
2.7319 4.1367 3.9571 13.8867 \atfi@RECTFILL |
| 390 |
8.7031 4.1367 3.9571 9.8867 \atfi@RECTFILL |
| 391 |
14.7471 4.1367 3.9571 11.8867 \atfi@RECTFILL |
| 392 |
\atfi@color@inline{FILL}% |
| 393 |
1.689 3.0938 3.9571 13.8867 \atfi@RECTFILL |
| 394 |
7.6602 3.0938 3.9571 9.8867 \atfi@RECTFILL |
| 395 |
13.7041 3.0938 3.9571 11.8867 \atfi@RECTFILL |
| 396 |
\atfi@GRESTORE |
| 397 |
} |
| 398 |
\def\atfi@acroGraph{% |
| 399 |
\raisebox{-1.5bp}{\parbox[b][20bp]{22bp}{% |
| 400 |
\rule{0pt}{0pt}\atfi@literal{\atfi@acroGraph@data}}% |
| 401 |
}% |
| 402 |
} |
| 403 |
\newcommand{\atfi@acroPaperclip@data}{% |
| 404 |
\atfi@GSAVE |
| 405 |
0.75 \atfi@SETGRAYSTROKE |
| 406 |
0 \atfi@SETFLAT |
| 407 |
2.5 \atfi@SETLINEWIDTH |
| 408 |
1 \atfi@SETLINECAP |
| 409 |
4 \atfi@SETMITERLIMIT |
| 410 |
1.9619 11.7559 \atfi@MOVETO |
| 411 |
1.9619 3.3037 1.9619 2.5059 \atfi@CURVETOV |
| 412 |
1.9619 1.707 4.0947 1.25 \atfi@CURVETOY |
| 413 |
7.4141 1.25 \atfi@LINETO |
| 414 |
9.4292 1.8223 9.4292 3.3066 \atfi@CURVETOV |
| 415 |
9.4292 4.79 9.4292 16.8945 \atfi@CURVETOY |
| 416 |
9.7852 18.1514 8.481 18.1514 \atfi@CURVETOV |
| 417 |
7.1768 18.1514 5.1616 18.1514 \atfi@CURVETOY |
| 418 |
3.8574 17.9209 3.8574 16.8945 \atfi@CURVETOV |
| 419 |
3.8574 15.8652 3.8574 6.6172 \atfi@CURVETOY |
| 420 |
4.3325 5.418 5.1025 5.418 \atfi@CURVETOV |
| 421 |
5.8726 5.418 6.5845 5.418 \atfi@CURVETOY |
| 422 |
7.6812 5.6455 7.6812 6.4736 \atfi@CURVETOV |
| 423 |
7.6812 7.3027 7.6812 11.5264 \atfi@CURVETOY |
| 424 |
\atfi@STROKE |
| 425 |
0 \atfi@SETGRAYSTROKE |
| 426 |
1.2495 12.4404 \atfi@MOVETO |
| 427 |
1.2495 3.9883 1.2495 3.1895 \atfi@CURVETOV |
| 428 |
1.2495 2.3906 3.3833 1.9326 \atfi@CURVETOY |
| 429 |
6.7026 1.9326 \atfi@LINETO |
| 430 |
8.7178 2.5068 8.7178 3.9902 \atfi@CURVETOV |
| 431 |
8.7178 5.4736 8.7178 17.5781 \atfi@CURVETOY |
| 432 |
9.0732 18.834 7.769 18.834 \atfi@CURVETOV |
| 433 |
6.4653 18.834 4.4497 18.834 \atfi@CURVETOY |
| 434 |
3.146 18.6055 3.146 17.5781 \atfi@CURVETOV |
| 435 |
3.146 16.5498 3.146 7.3018 \atfi@CURVETOY |
| 436 |
3.6201 6.1016 4.3911 6.1016 \atfi@CURVETOV |
| 437 |
5.1611 6.1016 5.873 6.1016 \atfi@CURVETOY |
| 438 |
6.9692 6.3301 6.9692 7.1572 \atfi@CURVETOV |
| 439 |
6.9692 7.9863 6.9692 12.21 \atfi@CURVETOY |
| 440 |
\atfi@STROKE |
| 441 |
\atfi@color@inline{STROKE}% |
| 442 |
1 \atfi@SETLINEWIDTH |
| 443 |
1.2495 12.4404 \atfi@MOVETO |
| 444 |
1.2495 3.9883 1.2495 3.1895 \atfi@CURVETOV |
| 445 |
1.2495 2.3906 3.3833 1.9326 \atfi@CURVETOY |
| 446 |
6.7026 1.9326 \atfi@LINETO |
| 447 |
8.7178 2.5068 8.7178 3.9902 \atfi@CURVETOV |
| 448 |
8.7178 5.4736 8.7178 17.5781 \atfi@CURVETOY |
| 449 |
9.0732 18.834 7.769 18.834 \atfi@CURVETOV |
| 450 |
6.4653 18.834 4.4497 18.834 \atfi@CURVETOY |
| 451 |
3.146 18.6055 3.146 17.5781 \atfi@CURVETOV |
| 452 |
3.146 16.5498 3.146 7.3018 \atfi@CURVETOY |
| 453 |
3.6201 6.1016 4.3911 6.1016 \atfi@CURVETOV |
| 454 |
5.1611 6.1016 5.873 6.1016 \atfi@CURVETOY |
| 455 |
6.9692 6.3301 6.9692 7.1572 \atfi@CURVETOV |
| 456 |
6.9692 7.9863 6.9692 12.21 \atfi@CURVETOY |
| 457 |
\atfi@STROKE |
| 458 |
\atfi@GRESTORE |
| 459 |
} |
| 460 |
\def\atfi@acroPaperclip{% |
| 461 |
\raisebox{-1.25bp}{\parbox[b][21bp]{12bp}{% |
| 462 |
\rule{0pt}{0pt}\atfi@literal{\atfi@acroPaperclip@data}}% |
| 463 |
}% |
| 464 |
} |
| 465 |
\def\atfi@acroPushPin@data{% |
| 466 |
\atfi@GSAVE |
| 467 |
1 \atfi@SETLINEWIDTH |
| 468 |
1 6 \atfi@MOVETO |
| 469 |
11 6 \atfi@LINETO |
| 470 |
11 13 \atfi@LINETO |
| 471 |
12 13 \atfi@LINETO |
| 472 |
14 11 \atfi@LINETO |
| 473 |
21 11 \atfi@LINETO |
| 474 |
22 12 \atfi@LINETO |
| 475 |
23 12 \atfi@LINETO |
| 476 |
23 2 \atfi@LINETO |
| 477 |
22 2 \atfi@LINETO |
| 478 |
21 3 \atfi@LINETO |
| 479 |
14 3 \atfi@LINETO |
| 480 |
12 1 \atfi@LINETO |
| 481 |
11 1 \atfi@LINETO |
| 482 |
11 6 \atfi@LINETO |
| 483 |
\atfi@FILLSTROKE{% |
| 484 |
\atfi@color@inline{FILL}% |
| 485 |
}{% |
| 486 |
0 \atfi@SETGRAYSTROKE |
| 487 |
}% |
| 488 |
0.5 \atfi@SETGRAYSTROKE |
| 489 |
0 7 \atfi@MOVETO |
| 490 |
10 7 \atfi@LINETO |
| 491 |
10 8 \atfi@LINETO |
| 492 |
1 8 \atfi@LINETO |
| 493 |
\atfi@STROKE |
| 494 |
1 \atfi@SETGRAYSTROKE |
| 495 |
12 12 \atfi@MOVETO |
| 496 |
14 10 \atfi@LINETO |
| 497 |
22 10 \atfi@LINETO |
| 498 |
22 11 \atfi@LINETO |
| 499 |
\atfi@STROKE |
| 500 |
\atfi@GRESTORE |
| 501 |
} |
| 502 |
\def\atfi@acroPushPin{% |
| 503 |
\raisebox{-1.25bp}{\parbox[b][14bp]{24bp}{% |
| 504 |
\rule{0pt}{0pt}\atfi@literal{\atfi@acroPushPin@data}}% |
| 505 |
}% |
| 506 |
} |
| 507 |
\def\atfi@acroTag@data{% |
| 508 |
\atfi@GSAVE |
| 509 |
0.5 \atfi@SETGRAYFILL |
| 510 |
10.0542 14.9873 \atfi@MOVETO |
| 511 |
24.27 14.9873 \atfi@LINETO |
| 512 |
25.252 14.0059 \atfi@LINETO |
| 513 |
25.252 1.1455 \atfi@LINETO |
| 514 |
24.1064 0 \atfi@LINETO |
| 515 |
9.9609 0 \atfi@LINETO |
| 516 |
6.0327 6.0088 \atfi@LINETO |
| 517 |
6.0327 9.002 \atfi@LINETO |
| 518 |
10.0542 14.9873 \atfi@LINETO |
| 519 |
9.3994 9.376 \atfi@MOVETO |
| 520 |
8.5215 9.376 7.8096 8.5596 7.8096 7.5527 \atfi@CURVETO |
| 521 |
7.8096 6.5449 8.5215 5.7285 9.3994 5.7285 \atfi@CURVETO |
| 522 |
10.2778 5.7285 10.9897 6.5449 10.9897 7.5527 \atfi@CURVETO |
| 523 |
10.9897 8.5596 10.2778 9.376 9.3994 9.376 \atfi@CURVETO |
| 524 |
\atfi@CLOSEPATH |
| 525 |
\atfi@FILL |
| 526 |
0 \atfi@SETFLAT |
| 527 |
0.5 \atfi@SETLINEWIDTH |
| 528 |
4 \atfi@SETMITERLIMIT |
| 529 |
1 \atfi@SETLINEJOIN |
| 530 |
8.5107 16.5313 \atfi@MOVETO |
| 531 |
22.7266 16.5313 \atfi@LINETO |
| 532 |
23.7085 15.5488 \atfi@LINETO |
| 533 |
23.7085 2.6895 \atfi@LINETO |
| 534 |
22.563 1.543 \atfi@LINETO |
| 535 |
8.4175 1.543 \atfi@LINETO |
| 536 |
4.4893 7.5527 \atfi@LINETO |
| 537 |
4.4893 10.5449 \atfi@LINETO |
| 538 |
8.5107 16.5313 \atfi@LINETO |
| 539 |
7.856 10.9199 \atfi@MOVETO |
| 540 |
6.978 10.9199 6.2661 10.1035 6.2661 9.0957 \atfi@CURVETO |
| 541 |
6.2661 8.0879 6.978 7.2715 7.856 7.2715 \atfi@CURVETO |
| 542 |
8.7344 7.2715 9.4463 8.0879 9.4463 9.0957 \atfi@CURVETO |
| 543 |
9.4463 10.1035 8.7344 10.9199 7.856 10.9199 \atfi@CURVETO |
| 544 |
\atfi@CLOSEPATH |
| 545 |
\atfi@FILLSTROKE{% |
| 546 |
\atfi@color@inline{FILL}% |
| 547 |
}{% |
| 548 |
0 \atfi@SETGRAYSTROKE |
| 549 |
}% |
| 550 |
1 \atfi@SETLINEWIDTH |
| 551 |
12.3291 12.2656 \atfi@MOVETO |
| 552 |
21.1206 12.2656 \atfi@LINETO |
| 553 |
\atfi@STROKE |
| 554 |
12.3291 9.1797 \atfi@MOVETO |
| 555 |
21.1206 9.1797 \atfi@LINETO |
| 556 |
\atfi@STROKE |
| 557 |
12.3291 6.1875 \atfi@MOVETO |
| 558 |
21.1206 6.1875 \atfi@LINETO |
| 559 |
\atfi@STROKE |
| 560 |
% 0 \atfi@SETGRAYSTROKE % redundant? |
| 561 |
0.5 \atfi@SETLINEWIDTH |
| 562 |
0 9.0488 \atfi@MOVETO |
| 563 |
6.2661 9.0957 \atfi@LINETO |
| 564 |
\atfi@STROKE |
| 565 |
1.4028 5.2148 \atfi@MOVETO |
| 566 |
1.4028 9.6094 \atfi@LINETO |
| 567 |
1.6831 10.6387 2.4316 10.6387 \atfi@CURVETOV |
| 568 |
3.6475 10.6387 3.5542 9.0488 \atfi@CURVETOY |
| 569 |
\atfi@STROKE |
| 570 |
\atfi@GRESTORE |
| 571 |
} |
| 572 |
\def\atfi@acroTag{% |
| 573 |
\raisebox{-1.6bp}{\parbox[b][17bp]{25bp}{% |
| 574 |
\rule{0pt}{0pt}\atfi@literal{\atfi@acroTag@data}}% |
| 575 |
}% |
| 576 |
} |
| 577 |
\def\attachfile@timezone#1{% |
| 578 |
\ifx\\#1\\% |
| 579 |
% no timezone information given |
| 580 |
\else |
| 581 |
\def\atfi@timezone{#1}% |
| 582 |
\fi |
| 583 |
} |
| 584 |
\newcommand*{\attachfile@file}[2][]{% |
| 585 |
\EdefUnescapeHex\atfi@filename{#2}% |
| 586 |
\ifx\atfi@filename\ltx@empty |
| 587 |
\PackageError{attachfile2}{Empty file name}\@ehc |
| 588 |
\else |
| 589 |
\@namedef{atfi@file@\atfi@filename}{#1}% |
| 590 |
\fi |
| 591 |
} |
| 592 |
\InputIfFileExists{\jobname.atfi}{}{}% |
| 593 |
\newif\ifatfi@checksum |
| 594 |
\define@key{AtFi@file}{CheckSum}{% |
| 595 |
\atfi@checksumtrue |
| 596 |
\edef\atfi@params{\atfi@params/CheckSum<#1>}% |
| 597 |
} |
| 598 |
\newif\ifatfi@creationdate |
| 599 |
\define@key{AtFi@file}{CreationDateTZ}{% |
| 600 |
\ifatfi@creationdate |
| 601 |
\else |
| 602 |
\atfi@creationdatetrue |
| 603 |
\edef\atfi@params{% |
| 604 |
\atfi@params |
| 605 |
/CreationDate(#1)% |
| 606 |
}% |
| 607 |
\fi |
| 608 |
} |
| 609 |
\define@key{AtFi@file}{CreationDate}{% |
| 610 |
\ifatfi@creationdate |
| 611 |
\else |
| 612 |
\atfi@creationdatetrue |
| 613 |
\edef\atfi@params{% |
| 614 |
\atfi@params |
| 615 |
/CreationDate(#1\atfi@timezone)% |
| 616 |
}% |
| 617 |
\fi |
| 618 |
} |
| 619 |
\newif\ifatfi@moddate |
| 620 |
\define@key{AtFi@file}{ModDateTZ}{% |
| 621 |
\ifatfi@moddate |
| 622 |
\else |
| 623 |
\atfi@moddatetrue |
| 624 |
\edef\atfi@params{% |
| 625 |
\atfi@params |
| 626 |
/ModDate(#1)% |
| 627 |
}% |
| 628 |
\fi |
| 629 |
} |
| 630 |
\define@key{AtFi@file}{ModDate}{% |
| 631 |
\ifatfi@moddate |
| 632 |
\else |
| 633 |
\atfi@moddatetrue |
| 634 |
\edef\atfi@params{% |
| 635 |
\atfi@params |
| 636 |
/ModDate(D:#1\atfi@timezone)% |
| 637 |
}% |
| 638 |
\fi |
| 639 |
} |
| 640 |
\let\atfi@temp\ltx@one |
| 641 |
\ltx@IfUndefined{pdf@filesize}{% |
| 642 |
\let\atfi@temp\ltx@zero |
| 643 |
}{} |
| 644 |
\ltx@IfUndefined{pdf@filemoddate}{% |
| 645 |
\let\atfi@temp\ltx@zero |
| 646 |
}{} |
| 647 |
\ltx@IfUndefined{pdf@filemdfivesum}{% |
| 648 |
\let\atfi@temp\ltx@zero |
| 649 |
}{} |
| 650 |
\ifcase\atfi@temp |
| 651 |
\let\atfi@pdftexdata\ltx@gobble |
| 652 |
\or |
| 653 |
\def\atfi@pdftexdata#1{% |
| 654 |
\edef\atfi@temp{\pdf@filesize{#1}}% |
| 655 |
\ifx\atfi@temp\ltx@empty |
| 656 |
\else |
| 657 |
\setkeys{AtFi@file}{Size=\atfi@temp}% |
| 658 |
\edef\atfi@temp{\pdf@filemoddate{#1}}% |
| 659 |
\ifx\atfi@temp\ltx@empty |
| 660 |
\else |
| 661 |
\setkeys{AtFi@file}{ModDateTZ=\atfi@temp}% |
| 662 |
\fi |
| 663 |
\edef\atfi@temp{\pdf@filemdfivesum{#1}}% |
| 664 |
\ifx\atfi@temp\ltx@empty |
| 665 |
\else |
| 666 |
\setkeys{AtFi@file}{CheckSum=\atfi@temp}% |
| 667 |
\fi |
| 668 |
\fi |
| 669 |
}% |
| 670 |
\fi |
| 671 |
\if@filesw |
| 672 |
\else |
| 673 |
\atfi@nofilestrue |
| 674 |
\fi |
| 675 |
\ifatfi@nofiles |
| 676 |
\PackageInfo{attachfile2}{% |
| 677 |
File `\jobname.atfi' will not be written because of\MessageBreak |
| 678 |
\string\nofiles\space or option `nofiles'% |
| 679 |
}% |
| 680 |
\let\atfi@writefile\ltx@gobble |
| 681 |
\else |
| 682 |
\newwrite\atfi@stream |
| 683 |
\immediate\openout\atfi@stream=\jobname.atfi\relax |
| 684 |
\immediate\write\atfi@stream{% |
| 685 |
\string\attachfile@timezone{\atfi@timezone}% |
| 686 |
}% |
| 687 |
\def\atfi@writefile#1{% |
| 688 |
\begingroup |
| 689 |
\EdefEscapeHex\atfi@temp{#1}% |
| 690 |
\immediate\write\atfi@stream{% |
| 691 |
\string\attachfile@file[% |
| 692 |
\ltx@ifundefined{atfi@file@#1}{}{\@nameuse{atfi@file@#1}}% |
| 693 |
]{\atfi@temp}% |
| 694 |
}% |
| 695 |
\endgroup |
| 696 |
}% |
| 697 |
\fi |
| 698 |
\atfi@DisableOption{nofiles} |
| 699 |
\def\atfi@attachfile#1#2{% |
| 700 |
\ltx@IfUndefined{atfi@fileobj@#2}{% |
| 701 |
\atfi@writefile{#2}% |
| 702 |
}{% |
| 703 |
% don't need duplicates |
| 704 |
}% |
| 705 |
\atfi@setup{#1}% |
| 706 |
\atfi@embedfile{#2}% |
| 707 |
\atfi@set@appearance@icon |
| 708 |
\atfi@flags@to@int |
| 709 |
\atfi@insert@file@annot{#2}% |
| 710 |
\endgroup |
| 711 |
} |
| 712 |
\newlength{\atfi@appearancewidth} |
| 713 |
\newlength{\atfi@appearanceheight} |
| 714 |
\newlength{\atfi@appearancedepth} |
| 715 |
\newsavebox{\atfi@appearancebox} |
| 716 |
\def\atfi@set@appearance@icon{% |
| 717 |
\ltx@IfUndefined{atfi@appobj@\atfi@icon@icon}{% |
| 718 |
\savebox{\atfi@appearancebox}{% |
| 719 |
\@nameuse{atfi@acro\atfi@icon@icon}% |
| 720 |
}% |
| 721 |
\expandafter |
| 722 |
\xdef\csname atfi@appwidth@\atfi@icon@icon\endcsname{% |
| 723 |
\the\wd\atfi@appearancebox |
| 724 |
}% |
| 725 |
\expandafter |
| 726 |
\xdef\csname atfi@appheight@\atfi@icon@icon\endcsname{% |
| 727 |
\the\ht\atfi@appearancebox |
| 728 |
}% |
| 729 |
\expandafter |
| 730 |
\xdef\csname atfi@appdepth@\atfi@icon@icon\endcsname{% |
| 731 |
\the\dp\atfi@appearancebox |
| 732 |
}% |
| 733 |
\atfi@xform@icon |
| 734 |
\global\expandafter\let |
| 735 |
\csname atfi@appobj@\atfi@icon@icon\endcsname |
| 736 |
\atfi@appearanceobj |
| 737 |
}{% |
| 738 |
}% |
| 739 |
% optimization: \setlength dropped |
| 740 |
\atfi@appearancewidth=% |
| 741 |
\@nameuse{atfi@appwidth@\atfi@icon@icon}\relax |
| 742 |
\atfi@appearanceheight=% |
| 743 |
\@nameuse{atfi@appheight@\atfi@icon@icon}\relax |
| 744 |
\atfi@appearancedepth=% |
| 745 |
\@nameuse{atfi@appdepth@\atfi@icon@icon}\relax |
| 746 |
\expandafter\let\expandafter\atfi@appearanceobj |
| 747 |
\csname atfi@appobj@\atfi@icon@icon\endcsname |
| 748 |
} |
| 749 |
\def\atfi@set@appearance#1{% |
| 750 |
\savebox{\atfi@appearancebox}{#1}% |
| 751 |
\atfi@appearancewidth=\wd\atfi@appearancebox |
| 752 |
\atfi@appearanceheight=\ht\atfi@appearancebox |
| 753 |
\atfi@appearancedepth=\dp\atfi@appearancebox |
| 754 |
\atfi@xform |
| 755 |
} |
| 756 |
\newcounter{atfi@flags} |
| 757 |
\DeclareRobustCommand{\atfi@flags@to@int}{% |
| 758 |
\setcounter{atfi@flags}{0}% |
| 759 |
\ifatfi@print |
| 760 |
\addtocounter{atfi@flags}{4}% |
| 761 |
\fi% |
| 762 |
\ifatfi@zoom |
| 763 |
\else |
| 764 |
\addtocounter{atfi@flags}{8}% |
| 765 |
\fi% |
| 766 |
\ifatfi@locked |
| 767 |
\addtocounter{atfi@flags}{128}% |
| 768 |
\fi% |
| 769 |
} |
| 770 |
\def\atfi@textattachfile#1#2{% |
| 771 |
\endgroup |
| 772 |
\atfi@textattachfile@i{#1}{#2}% |
| 773 |
} |
| 774 |
\def\atfi@textattachfile@i#1#2#3{% |
| 775 |
\ltx@IfUndefined{atfi@fileobj@#2}{% |
| 776 |
\atfi@writefile{#2}% |
| 777 |
}{% |
| 778 |
% don't need duplicates |
| 779 |
}% |
| 780 |
\atfi@setup{#1}% |
| 781 |
\atfi@embedfile{#2}% |
| 782 |
\atfi@set@appearance{% |
| 783 |
\leavevmode |
| 784 |
\begingroup |
| 785 |
\HyColor@UseColor\atfi@color@tex |
| 786 |
#3\strut |
| 787 |
\endgroup |
| 788 |
}% |
| 789 |
\atfi@flags@to@int |
| 790 |
\atfi@insert@file@annot{#2}% |
| 791 |
\endgroup |
| 792 |
} |
| 793 |
\DeclareRobustCommand{\attachfile}[1][]{% |
| 794 |
\begingroup |
| 795 |
\let\do\@makeother |
| 796 |
\dospecials |
| 797 |
\catcode`\{=1\relax |
| 798 |
\catcode`\}=2\relax |
| 799 |
\atfi@attachfile{#1}% |
| 800 |
} |
| 801 |
\DeclareRobustCommand{\textattachfile}[1][]{% |
| 802 |
\begingroup |
| 803 |
\begingroup |
| 804 |
\let\do\@makeother |
| 805 |
\dospecials |
| 806 |
\catcode`\{=1\relax |
| 807 |
\catcode`\}=2\relax |
| 808 |
\atfi@textattachfile{#1}% |
| 809 |
} |
| 810 |
\DeclareRobustCommand{\noattachfile}[1][]{% |
| 811 |
\begingroup |
| 812 |
\atfi@setup{#1}% |
| 813 |
\atfi@set@appearance@icon |
| 814 |
\ifatfi@print |
| 815 |
\expandafter |
| 816 |
\atfi@refxform\csname atfi@appobj@\atfi@icon@icon\endcsname |
| 817 |
\else |
| 818 |
\makebox[\atfi@appearancewidth]{}% |
| 819 |
\fi |
| 820 |
\endgroup |
| 821 |
} |
| 822 |
\endinput |
| 823 |
%% |
| 824 |
%% End of file `attachfile2.sty'. |