Debian Codegraph @

texmf-dist/tex/latex/hyperref/pdfmark.def

raw
1 %%
2 %% This is file `pdfmark.def',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% hyperref.dtx (with options: `pdfmark,pdfmarkbase,pdfform,outlines')
8 %%
9 %% Copyright
10 %% 1995-2001 Sebastian Rahtz, with portions written by David Carlisle and Heiko Oberdiek
11 %% 2001-2015 Heiko Oberdiek
12 %% 2016-2019 Oberdiek Package Support Group
13 %% 2019-2026 LaTeX Project
14 %% https://github.com/latex3/hyperref/issues
15 %%
16 %% This file is part of the `Hyperref Bundle'.
17 %% -------------------------------------------
18 %%
19 %% This work may be distributed and/or modified under the
20 %% conditions of the LaTeX Project Public License, either version 1.3
21 %% of this license or (at your option) any later version.
22 %% The latest version of this license is in
23 %% http://www.latex-project.org/lppl.txt
24 %% and version 1.3 or later is part of all distributions of LaTeX
25 %% version 2005/12/01 or later.
26 %%
27 %% This work has the LPPL maintenance status `maintained'.
28 %%
29 %% The Current Maintainer of this work is the LaTeX Project.
30 %%
31 %% The list of all files belonging to the `Hyperref Bundle' is
32 %% given in the file `manifest.txt'.
33 %%
34 %% File: hyperref.dtx
35 \ProvidesFile{pdfmark.def}
36 [2026-04-24 v7.01q %
37 Hyperref definitions for pdfmark specials]
38 \Hy@VersionCheck{pdfmark.def}
39 \begingroup
40 \@ifundefined{headerps@out}{}{%
41 \toks@\expandafter{\Hy@FirstPageHook}%
42 \xdef\Hy@FirstPageHook{%
43 \noexpand\headerps@out{%
44 systemdict /pdfmark known%
45 {%
46 userdict /?pdfmark systemdict /exec get put%
47 }{%
48 userdict /?pdfmark systemdict /pop get put %
49 userdict /pdfmark systemdict /cleartomark get put%
50 }%
51 ifelse%
52 }%
53 \the\toks@
54 }%
55 }%
56 \endgroup
57 \def\Hy@PutCatalog#1{%
58 \pdfmark{pdfmark=/PUT,Raw={\string{Catalog\string} <<#1>>}}%
59 }
60 \ifHy@pdfpagelabels
61 \def\HyPL@StorePageLabel#1{%
62 \if@filesw
63 \begingroup
64 \edef\Hy@tempa{\the\Hy@abspage<<#1>>}%
65 \immediate\write\@mainaux{%
66 \string\HyPL@Entry{\Hy@tempa}%
67 }%
68 \endgroup
69 \fi
70 }%
71 \Hy@AtBeginDocument{%
72 \if@filesw
73 \immediate\write\@mainaux{%
74 \string\providecommand\string*\string\HyPL@Entry[1]{}%
75 }%
76 \fi
77 \ifx\HyPL@Labels\@empty
78 \Hy@WarningNoLine{Rerun to get /PageLabels entry}%
79 \else
80 \HyPL@SetPageLabels
81 \fi
82 \let\HyPL@Entry\@gobble
83 }%
84 \def\HyPL@Entry#1{%
85 \expandafter\gdef\expandafter\HyPL@Labels\expandafter{%
86 \HyPL@Labels
87 #1%
88 }%
89 }%
90 \fi
91 \begingroup\expandafter\expandafter\expandafter\endgroup
92 \expandafter\ifx\csname pdf@escapestring\endcsname\relax
93 \begingroup
94 \catcode`\|=0 %
95 \@makeother\\%
96 |@firstofone{|endgroup
97 |def|Hy@pstringdef#1#2{%
98 |begingroup
99 |edef~{|string~}%
100 |xdef|Hy@gtemp{#2}%
101 |endgroup
102 |let#1|Hy@gtemp
103 |@onelevel@sanitize#1%
104 |edef#1{|expandafter|Hy@ExchangeBackslash#1\|@nil}%
105 |edef#1{|expandafter|Hy@ExchangeLeftParenthesis#1(|@nil}%
106 |edef#1{|expandafter|Hy@ExchangeRightParenthesis#1)|@nil}%
107 }%
108 |def|Hy@ExchangeBackslash#1\#2|@nil{%
109 #1%
110 |ifx|\#2|\%%
111 |else
112 \\%
113 |Hy@ReturnAfterFi{%
114 |Hy@ExchangeBackslash#2|@nil
115 }%
116 |fi
117 }%
118 }%
119 \def\Hy@ExchangeLeftParenthesis#1(#2\@nil{%
120 #1%
121 \ifx\\#2\\%
122 \else
123 \@backslashchar(%
124 \Hy@ReturnAfterFi{%
125 \Hy@ExchangeLeftParenthesis#2\@nil
126 }%
127 \fi
128 }%
129 \def\Hy@ExchangeRightParenthesis#1)#2\@nil{%
130 #1%
131 \ifx\\#2\\%
132 \else
133 \@backslashchar)%
134 \Hy@ReturnAfterFi{%
135 \Hy@ExchangeRightParenthesis#2\@nil
136 }%
137 \fi
138 }%
139 \else
140 \def\Hy@pstringdef#1#2{%
141 \begingroup
142 \edef~{\string~}%
143 \xdef\Hy@gtemp{\pdf@escapestring{#2}}%
144 \endgroup
145 \let#1\Hy@gtemp
146 }%
147 \fi
148 \def\Hy@DistillerDestFix{%
149 \begingroup
150 \let\x\literalps@out
151 \ifnum \@ifundefined{OpMode}{0}{%
152 \@ifundefined{gexmode}{0}{%
153 \ifnum\gexmode>0 \OpMode\else 0\fi
154 }}>1 %
155 \def\x##1{%
156 \immediate\special{!=##1}%
157 }%
158 \fi
159 \x{%
160 /product where{%
161 pop %
162 product(Distiller)search{%
163 pop pop pop %
164 version(.)search{%
165 exch pop exch pop%
166 (3011)eq{%
167 gsave %
168 newpath 0 0 moveto closepath clip%
169 /Courier findfont 10 scalefont setfont %
170 72 72 moveto(.)show %
171 grestore%
172 }if%
173 }{pop}ifelse%
174 }{pop}ifelse%
175 }if%
176 }%
177 \endgroup
178 }
179 \Hy@breaklinks@unsupported
180 \def\HyPat@ObjRef{%
181 \{[^{}]+\}%
182 }
183 \Hy@WrapperDef\hyper@anchor#1{%
184 \Hy@SaveLastskip
185 \Hy@VerboseAnchor{#1}%
186 \begingroup
187 \pdfmark[\anchor@spot]{%
188 pdfmark=/DEST,%
189 linktype=anchor,%
190 View=/\@pdfview \@pdfviewparams,%
191 DestAnchor={#1}%
192 }%
193 \endgroup
194 \Hy@RestoreLastskip
195 }
196 \@ifundefined{hyper@anchorstart}{}{\endinput}
197 \Hy@WrapperDef\hyper@anchorstart#1{%
198 \Hy@SaveLastskip
199 \Hy@VerboseAnchor{#1}%
200 \literalps@out{H.S}%
201 \Hy@AllowHyphens
202 \xdef\hyper@currentanchor{#1}%
203 \Hy@activeanchortrue
204 }
205 \def\hyper@anchorend{%
206 \literalps@out{\strip@pt@and@otherjunk\baselineskip\space H.A}%
207 \pdfmark{%
208 pdfmark=/DEST,%
209 linktype=anchor,%
210 View=/\@pdfview \@pdfviewparams,%
211 DestAnchor=\hyper@currentanchor,%
212 }%
213 \Hy@activeanchorfalse
214 \Hy@RestoreLastskip
215 }
216 \def\hyper@linkstart#1#2{%
217 \Hy@VerboseLinkStart{#1}{#2}%
218 \ifHy@breaklinks
219 \else
220 \leavevmode
221 \ifmmode
222 \def\Hy@LinkMath{$}%
223 \else
224 \let\Hy@LinkMath\@empty
225 \fi
226 \Hy@SaveSpaceFactor
227 \hbox\bgroup
228 \Hy@RestoreSpaceFactor
229 \Hy@LinkMath
230 \fi
231 \expandafter\Hy@colorlink\csname @#1color\endcsname
232 \literalps@out{H.S}%
233 \Hy@AllowHyphens
234 \xdef\hyper@currentanchor{#2}%
235 \gdef\hyper@currentlinktype{#1}%
236 }
237 \def\hyper@linkend{%
238 \literalps@out{\strip@pt@and@otherjunk\baselineskip\space H.L}%
239 \@ifundefined{@\hyper@currentlinktype bordercolor}{%
240 \let\Hy@tempcolor\relax
241 }{%
242 \edef\Hy@tempcolor{%
243 \csname @\hyper@currentlinktype bordercolor\endcsname
244 }%
245 }%
246 \pdfmark{%
247 pdfmark=/ANN,%
248 linktype=link,%
249 Subtype=/Link,%
250 PDFAFlags=4,%
251 Dest=\hyper@currentanchor,%
252 AcroHighlight=\@pdfhighlight,%
253 Border=\@pdfborder,%
254 BorderStyle=\@pdfborderstyle,%
255 Color=\Hy@tempcolor,%
256 Raw=H.B%
257 }%
258 \Hy@endcolorlink
259 \ifHy@breaklinks
260 \else
261 \Hy@LinkMath
262 \Hy@SaveSpaceFactor
263 \egroup
264 \Hy@RestoreSpaceFactor
265 \fi
266 }
267 \begingroup
268 \catcode`P=12 %
269 \catcode`T=12 %
270 \lowercase{\endgroup
271 \gdef\rem@ptetc#1.#2PT#3!{#1\ifnum#2>\z@.#2\fi}%
272 }
273 \def\strip@pt@and@otherjunk#1{\expandafter\rem@ptetc\the#1!}
274 \def\hyper@pagetransition{%
275 \ifx\@pdfpagetransition\relax
276 \else
277 \ifx\@pdfpagetransition\@empty
278 % 1. Does an old entry have to be deleted?
279 % 2. If 1=yes, how to delete?
280 \else
281 \pdfmark{%
282 pdfmark=/PUT,%
283 Raw={%
284 \string{ThisPage\string}%
285 <</Trans << /S /\@pdfpagetransition\space >> >>%
286 }%
287 }%
288 \fi
289 \fi
290 }
291 \def\hyper@pageduration{%
292 \ifx\@pdfpageduration\relax
293 \else
294 \ifx\@pdfpageduration\@empty
295 % 1. Does an old entry have to be deleted?
296 % 2. If 1=yes, how to delete?
297 \else
298 \pdfmark{%
299 pdfmark=/PUT,%
300 Raw={%
301 \string{ThisPage\string}%
302 <</Dur \@pdfpageduration>>%
303 }%
304 }%
305 \fi
306 \fi
307 }
308 \g@addto@macro\Hy@EveryPageBoxHook{%
309 \hyper@pagetransition
310 \hyper@pageduration
311 }
312 \def\hyper@image#1#2{%
313 \hyper@linkurl{#2}{#1}%
314 }
315 \def\Hy@undefinedname{UNDEFINED}
316 \def\hyper@link#1#2#3{%
317 \Hy@VerboseLinkStart{#1}{#2}%
318 \@ifundefined{@#1bordercolor}{%
319 \let\Hy@tempcolor\relax
320 }{%
321 \edef\Hy@tempcolor{\csname @#1bordercolor\endcsname}%
322 }%
323 \begingroup
324 \protected@edef\Hy@testname{#2}%
325 \ifx\Hy@testname\@empty
326 \Hy@Warning{%
327 Empty destination name,\MessageBreak
328 using `\Hy@undefinedname'%
329 }%
330 \let\Hy@testname\Hy@undefinedname
331 \fi
332 \pdfmark[{#3}]{%
333 Color=\Hy@tempcolor,%
334 linktype={#1},%
335 AcroHighlight=\@pdfhighlight,%
336 Border=\@pdfborder,%
337 BorderStyle=\@pdfborderstyle,%
338 pdfmark=/ANN,%
339 Subtype=/Link,%
340 PDFAFlags=4,%
341 Dest=\Hy@testname
342 }%
343 \endgroup
344 }
345 \newtoks\pdf@docset
346 \def\PDF@FinishDoc{%
347 \Hy@UseMaketitleInfos
348 \HyInfo@GenerateAddons
349 \let\Hy@temp\@empty
350 \ifx\@pdfcreationdate\@empty
351 \else
352 \def\Hy@temp{CreationDate=\@pdfcreationdate,}%
353 \fi
354 \ifx\@pdfmoddate\@empty
355 \else
356 \expandafter\def\expandafter\Hy@temp\expandafter{%
357 \Hy@temp
358 ModDate=\@pdfmoddate,%
359 }%
360 \fi
361 \ifx\@pdfproducer\relax
362 \else
363 \expandafter\def\expandafter\Hy@temp\expandafter{%
364 \Hy@temp
365 Producer=\@pdfproducer,%
366 }%
367 \fi
368 \expandafter
369 \pdfmark\expandafter{%
370 \Hy@temp
371 pdfmark=/DOCINFO,%
372 Title=\@pdftitle,%
373 Subject=\@pdfsubject,%
374 Creator=\@pdfcreator,%
375 Author=\@pdfauthor,%
376 Keywords=\@pdfkeywords,%
377 Trapped=\@pdftrapped
378 }%
379 \ifx\HyInfo@Addons\@empty
380 \else
381 \pdfmark{%
382 pdfmark=/DOCINFO,%
383 Raw={\HyInfo@Addons}%
384 }%
385 \fi
386 \Hy@DisableOption{pdfauthor}%
387 \Hy@DisableOption{pdftitle}%
388 \Hy@DisableOption{pdfsubject}%
389 \Hy@DisableOption{pdfcreator}%
390 \Hy@DisableOption{addtopdfcreator}%
391 \Hy@DisableOption{pdfcreationdate}%
392 \Hy@DisableOption{pdfcreationdate}%
393 \Hy@DisableOption{pdfmoddate}%
394 \Hy@DisableOption{pdfproducer}%
395 \Hy@DisableOption{pdfkeywords}%
396 \Hy@DisableOption{pdftrapped}%
397 \Hy@DisableOption{pdfinfo}%
398 }
399 \def\PDF@SetupDoc{%
400 \def\Hy@temp{}%
401 \ifx\@pdfstartpage\@empty
402 \else
403 \ifx\@pdfstartview\@empty
404 \else
405 \edef\Hy@temp{%
406 ,Page=\@pdfstartpage
407 ,View=\@pdfstartview
408 }%
409 \fi
410 \fi
411 \edef\Hy@temp{%
412 \noexpand\pdfmark{%
413 pdfmark=/DOCVIEW,%
414 PageMode=/\@pdfpagemode
415 \Hy@temp
416 }%
417 }%
418 \Hy@temp
419 \ifx\@pdfpagescrop\@empty
420 \else
421 \pdfmark{pdfmark=/PAGES,CropBox=\@pdfpagescrop}%
422 \fi
423 \edef\Hy@temp{%
424 \ifHy@pdftoolbar\else /HideToolbar true\fi
425 \ifHy@pdfmenubar\else /HideMenubar true\fi
426 \ifHy@pdfwindowui\else /HideWindowUI true\fi
427 \ifHy@pdffitwindow /FitWindow true\fi
428 \ifHy@pdfcenterwindow /CenterWindow true\fi
429 \ifHy@pdfdisplaydoctitle /DisplayDocTitle true\fi
430 \Hy@UseNameKey{NonFullScreenPageMode}\@pdfnonfullscreenpagemode
431 \Hy@UseNameKey{Direction}\@pdfdirection
432 \Hy@UseNameKey{ViewArea}\@pdfviewarea
433 \Hy@UseNameKey{ViewClip}\@pdfviewclip
434 \Hy@UseNameKey{PrintArea}\@pdfprintarea
435 \Hy@UseNameKey{PrintClip}\@pdfprintclip
436 \Hy@UseNameKey{PrintScaling}\@pdfprintscaling
437 \Hy@UseNameKey{Duplex}\@pdfduplex
438 \ifx\@pdfpicktraybypdfsize\@empty
439 \else
440 /PickTrayByPDFSize \@pdfpicktraybypdfsize
441 \fi
442 \ifx\@pdfprintpagerange\@empty
443 \else
444 /PrintPageRange[\@pdfprintpagerange]%
445 \fi
446 \ifx\@pdfnumcopies\@empty
447 \else
448 /NumCopies \@pdfnumcopies
449 \fi
450 }%
451 \Hy@pstringdef\Hy@pstringB{\@baseurl}%
452 \pdfmark{%
453 pdfmark=/PUT,%
454 Raw={%
455 \string{Catalog\string}<<%
456 \ifx\Hy@temp\@empty
457 \else
458 /ViewerPreferences<<\Hy@temp>>%
459 \fi
460 \Hy@UseNameKey{PageLayout}\@pdfpagelayout
461 \ifx\@pdflang\relax
462 \else
463 /Lang(\@pdflang)%
464 \fi
465 \ifx\@baseurl\@empty
466 \else
467 /URI<</Base(\Hy@pstringB)>>%
468 \fi
469 >>%
470 }%
471 }%
472 }
473 \newif\ifHy@pdfmarkerror
474 \def\pdfmark{\@ifnextchar[{\pdfmark@}{\pdfmark@[]}}
475 \def\pdfmark@[#1]#2{%
476 \Hy@pdfmarkerrorfalse
477 \edef\@processme{\noexpand\pdf@toks={\the\pdf@defaulttoks}}%
478 \@processme
479 \let\pdf@type\relax
480 \let\pdf@objdef\@empty
481 \kvsetkeys{PDF}{#2}%
482 \ifHy@pdfmarkerror
483 \else
484 \ifx\pdf@type\relax
485 \Hy@WarningNoLine{no pdfmark type specified in #2!!}%
486 \ifx\\#1\\%
487 \else
488 \pdf@rect{#1}%
489 \fi
490 \else
491 \ifx\\#1\\%
492 \literalps@out{%
493 [%
494 \ifx\pdf@objdef\@empty
495 \else
496 /_objdef\string{\pdf@objdef\string}%
497 \fi
498 \the\pdf@toks\space\pdf@type\space pdfmark%
499 }%
500 \else
501 \@ifundefined{@\pdf@linktype color}{%
502 \Hy@colorlink\@linkcolor
503 }{%
504 \expandafter\Hy@colorlink
505 \csname @\pdf@linktype color\endcsname
506 }%
507 \pdf@rect{#1}%
508 \literalps@out{%
509 [%
510 \ifx\pdf@objdef\@empty
511 \else
512 /_objdef\string{\pdf@objdef\string}%
513 \fi
514 \the\pdf@toks\space\pdf@type\space pdfmark%
515 }%
516 \Hy@endcolorlink
517 \fi
518 \fi
519 \fi
520 }
521 \newsavebox{\pdf@box}
522 \providecommand*{\Hy@setouterhbox}{\sbox}
523 \providecommand*{\Hy@breaklinksunhbox}{\unhbox}
524 \def\Hy@DEST{/DEST}
525 \def\pdf@rect#1{%
526 \begingroup
527 \chardef\x=1 %
528 \def\Hy@temp{#1}%
529 \ifx\Hy@temp\@empty
530 \chardef\x=0 %
531 \else
532 \def\y{\anchor@spot}%
533 \ifx\Hy@temp\y
534 \def\y{\relax}%
535 \ifx\anchor@spot\y
536 \chardef\x=0 %
537 \fi
538 \fi
539 \fi
540 \expandafter\endgroup
541 \ifcase\x
542 \literalps@out{H.S}%
543 \literalps@out{H.R}%
544 \else
545 \leavevmode
546 \Hy@SaveSpaceFactor
547 \ifmmode
548 \def\Hy@LinkMath{$}%
549 \else
550 \let\Hy@LinkMath\@empty
551 \fi
552 \ifHy@breaklinks
553 \Hy@setouterhbox\pdf@box{%
554 \Hy@RestoreSpaceFactor
555 \Hy@LinkMath
556 \Hy@AllowHyphens#1\Hy@xspace@end
557 \Hy@LinkMath
558 \Hy@SaveSpaceFactor
559 }%
560 \else
561 \sbox\pdf@box{%
562 \Hy@RestoreSpaceFactor
563 \Hy@LinkMath
564 #1\Hy@xspace@end
565 \Hy@LinkMath
566 \Hy@SaveSpaceFactor
567 }%
568 \fi
569 \dimen@\ht\pdf@box
570 \ifdim\dp\pdf@box=\z@
571 \literalps@out{H.S}%
572 \else
573 \lower\dp\pdf@box\hbox{\literalps@out{H.S}}%
574 \fi
575 \ifHy@breaklinks
576 \ifhmode
577 \Hy@breaklinksunhbox\pdf@box
578 \else
579 \box\pdf@box
580 \fi
581 \else
582 \expandafter\box\pdf@box
583 \fi
584 \ifdim\dimen@=\z@
585 \literalps@out{H.R}%
586 \else
587 \raise\dimen@\hbox{\literalps@out{H.R}}%
588 \fi
589 \Hy@RestoreSpaceFactor
590 \fi
591 \ifx\pdf@type\Hy@DEST
592 \else
593 \pdf@addtoksx{H.B}%
594 \fi
595 }
596 \newtoks\pdf@toks
597 \newtoks\pdf@defaulttoks
598 \pdf@defaulttoks={}%
599 \def\pdf@addtoks#1#2{%
600 \edef\@processme{\pdf@toks{\the\pdf@toks/#2 #1}}%
601 \@processme
602 }
603 \def\pdf@addtoksx#1{%
604 \edef\@processme{\pdf@toks{\the\pdf@toks\space #1}}%
605 \@processme
606 }
607 \def\PDFdefaults#1{%
608 \pdf@defaulttoks={#1}%
609 }
610 \define@key{PDF}{pdfmark}{\def\pdf@type{#1}}
611 \define@key{PDF}{linktype}{\def\pdf@linktype{#1}}
612 \def\pdf@linktype{link}
613 \define@key{PDF}{objdef}{\edef\pdf@objdef{#1}}
614 \let\pdf@objdef\@empty
615 \define@key{PDF}{Raw}{\pdf@addtoksx{#1}}
616 \define@key{PDF}{Action}{\pdf@addtoks{#1}{Action}}
617 \define@key{PDF}{Border}{%
618 \edef\Hy@temp{#1}%
619 \ifx\Hy@temp\@empty
620 \else
621 \pdf@addtoks{[#1]\Hy@BorderArrayPatch}{Border}% hash-ok
622 \fi
623 }
624 \let\Hy@BorderArrayPatch\@empty
625 \define@key{PDF}{BorderStyle}{%
626 \edef\Hy@temp{#1}%
627 \ifx\Hy@temp\@empty
628 \else
629 \pdf@addtoks{<<#1>>}{BS}%
630 \fi
631 }
632 \define@key{PDF}{Color}{%
633 \ifx\relax#1\relax
634 \else
635 \pdf@addtoks{[#1]}{Color}% hash-ok
636 \fi
637 }
638 \define@key{PDF}{Contents}{\pdf@addtoks{(#1)}{Contents}}
639 \define@key{PDF}{Count}{\pdf@addtoks{#1}{Count}}
640 \define@key{PDF}{CropBox}{\pdf@addtoks{[#1]}{CropBox}}% hash-ok
641 \define@key{PDF}{DOSFile}{\pdf@addtoks{(#1)}{DOSFile}}
642 \define@key{PDF}{DataSource}{\pdf@addtoks{(#1)}{DataSource}}
643 \define@key{PDF}{Dest}{%
644 \Hy@pstringdef\Hy@pstringDest{\HyperDestNameFilter{#1}}%
645 \ifx\Hy@pstringDest\@empty
646 \Hy@pdfmarkerrortrue
647 \Hy@Warning{Destination with empty name ignored}%
648 \else
649 \pdf@addtoks{(\Hy@pstringDest) cvn}{Dest}%
650 \fi
651 }
652 \define@key{PDF}{DestAnchor}{%
653 \Hy@pstringdef\Hy@pstringDest{\HyperDestNameFilter{#1}}%
654 \ifx\Hy@pstringDest\@empty
655 \Hy@pdfmarkerrortrue
656 \Hy@Warning{Destination with empty name ignored}%
657 \else
658 \pdf@addtoks{(\Hy@pstringDest) cvn}{Dest}%
659 \fi
660 }
661 \define@key{PDF}{Dir}{\pdf@addtoks{(#1)}{Dir}}
662 \define@key{PDF}{File}{\pdf@addtoks{(#1)}{File}}
663 \define@key{PDF}{Flags}{\pdf@addtoks{#1}{Flags}}
664 \define@key{PDF}{PDFAFlags}{%
665 \ifHy@pdfa
666 \pdf@addtoks{#1}{F}%
667 \fi
668 }
669 \define@key{PDF}{AcroHighlight}{%
670 \begingroup
671 \edef\x{#1}%
672 \expandafter\endgroup\ifx\x\@empty
673 \else
674 \pdf@addtoks{#1}{H}%
675 \fi
676 }
677 \define@key{PDF}{ID}{\pdf@addtoks{[#1]}{ID}}% hash-ok
678 \define@key{PDF}{MacFile}{\pdf@addtoks{(#1)}{MacFile}}
679 \define@key{PDF}{ModDate}{\pdf@addtoks{(#1)}{ModDate}}
680 \define@key{PDF}{Op}{\pdf@addtoks{(#1)}{Op}}
681 \define@key{PDF}{Open}{\pdf@addtoks{#1}{Open}}
682 \define@key{PDF}{Page}{\pdf@addtoks{#1}{Page}}
683 \define@key{PDF}{PageMode}{\pdf@addtoks{#1}{PageMode}}
684 \define@key{PDF}{Params}{\pdf@addtoks{(#1)}{Params}}
685 \define@key{PDF}{Rect}{\pdf@addtoks{[#1]}{Rect}}% hash-ok
686 \define@key{PDF}{SrcPg}{\pdf@addtoks{#1}{SrcPg}}
687 \define@key{PDF}{Subtype}{\pdf@addtoks{#1}{Subtype}}
688 \define@key{PDF}{Title}{\pdf@addtoks{(#1)}{Title}}
689 \define@key{PDF}{Unix}{\pdf@addtoks{(#1)}{Unix}}
690 \define@key{PDF}{UnixFile}{\pdf@addtoks{(#1)}{UnixFile}}
691 \define@key{PDF}{View}{\pdf@addtoks{[#1]}{View}}% hash-ok
692 \define@key{PDF}{WinFile}{\pdf@addtoks{(#1)}{WinFile}}
693 \define@key{PDF}{Author}{\pdf@addtoks{(#1)}{Author}}
694 \define@key{PDF}{Creator}{\pdf@addtoks{(#1)}{Creator}}
695 \define@key{PDF}{CreationDate}{\pdf@addtoks{(#1)}{CreationDate}}
696 \define@key{PDF}{ModDate}{\pdf@addtoks{(#1)}{ModDate}}
697 \define@key{PDF}{Producer}{\pdf@addtoks{(#1)}{Producer}}
698 \define@key{PDF}{Subject}{\pdf@addtoks{(#1)}{Subject}}
699 \define@key{PDF}{Keywords}{\pdf@addtoks{(#1)}{Keywords}}
700 \define@key{PDF}{ModDate}{\pdf@addtoks{(#1)}{ModDate}}
701 \define@key{PDF}{Base}{\pdf@addtoks{(#1)}{Base}}
702 \define@key{PDF}{URI}{\pdf@addtoks{#1}{URI}}
703 \define@key{PDF}{Trapped}{%
704 \edef\Hy@temp{#1}%
705 \ifx\Hy@temp\@empty
706 \else
707 \pdf@addtoks{/#1}{Trapped}%
708 \fi
709 }
710
711 \def\Acrobatmenu#1#2{%
712 \EdefEscapeName\Hy@temp@menu{#1}%
713 \Hy@Acrobatmenu{#1}{#2}{%
714 \pdfmark[{#2}]{%
715 linktype=menu,%
716 pdfmark=/ANN,%
717 AcroHighlight=\@pdfhighlight,%
718 Border=\@pdfborder,%
719 BorderStyle=\@pdfborderstyle,%
720 Color=\@menubordercolor,%
721 Action={<</Subtype/Named/N/\Hy@temp@menu>>},%
722 Subtype=/Link,%
723 PDFAFlags=4%
724 }%
725 }%
726 }
727 \def\PDFNextPage{\@ifnextchar[{\PDFNextPage@}{\PDFNextPage@[]}}
728 \def\PDFNextPage@[#1]#2{%
729 \pdfmark[{#2}]{%
730 #1,%
731 Border=\@pdfborder,%
732 BorderStyle=\@pdfborderstyle,%
733 Color=.2 .1 .5,%
734 pdfmark=/ANN,%
735 Subtype=/Link,%
736 PDFAFlags=4,%
737 Page=/Next%
738 }%
739 }
740 \def\PDFPreviousPage{%
741 \@ifnextchar[{\PDFPreviousPage@}{\PDFPreviousPage@[]}%
742 }
743 \def\PDFPreviousPage@[#1]#2{%
744 \pdfmark[{#2}]{%
745 #1,%
746 Border=\@pdfborder,%
747 BorderStyle=\@pdfborderstyle,%
748 Color=.4 .4 .1,%
749 pdfmark=/ANN,%
750 Subtype=/Link,%
751 PDFAFlags=4,%
752 Page=/Prev%
753 }%
754 }
755 \def\PDFOpen#1{%
756 \pdfmark{#1,pdfmark=/DOCVIEW}%
757 }
758 \def\hyper@linkurl#1#2{%
759 \begingroup
760 \Hy@pstringdef\Hy@pstringURI{#2}%
761 \hyper@chars
762 \leavevmode
763 \pdfmark[{#1}]{%
764 pdfmark=/ANN,%
765 linktype=url,%
766 AcroHighlight=\@pdfhighlight,%
767 Border=\@pdfborder,%
768 BorderStyle=\@pdfborderstyle,%
769 Color=\@urlbordercolor,%
770 Action={<<%
771 /Subtype/URI%
772 /URI(\Hy@pstringURI)%
773 \ifHy@href@ismap
774 /IsMap true%
775 \fi
776 >>},%
777 Subtype=/Link,%
778 PDFAFlags=4%
779 }%
780 \endgroup
781 }
782 \def\hyper@linkfile#1#2#3{%
783 \begingroup
784 \def\Hy@pstringF{#2}%
785 \Hy@CleanupFile\Hy@pstringF
786 \Hy@pstringdef\Hy@pstringF\Hy@pstringF
787 \Hy@pstringdef\Hy@pstringD{#3}%
788 \Hy@MakeRemoteAction
789 \leavevmode
790 \pdfmark[{#1}]{%
791 pdfmark=/ANN,%
792 Subtype=/Link,%
793 PDFAFlags=4,%
794 AcroHighlight=\@pdfhighlight,%
795 Border=\@pdfborder,%
796 BorderStyle=\@pdfborderstyle,%
797 linktype=file,%
798 Color=\@filebordercolor,%
799 Action={%
800 <<%
801 /S/GoToR%
802 \Hy@SetNewWindow
803 /F(\Hy@pstringF)%
804 /D%
805 \ifx\\#3\\%
806 [\Hy@href@page\@pdfremotestartview]%
807 \else
808 (\Hy@pstringD)cvn%
809 \fi
810 \Hy@href@nextactionraw
811 >>%
812 }%
813 }%
814 \endgroup
815 }
816 \def\@hyper@launch run:#1\\#2#3{%
817 \begingroup
818 \Hy@pstringdef\Hy@pstringF{#1}%
819 \Hy@pstringdef\Hy@pstringP{#3}%
820 \leavevmode
821 \pdfmark[{#2}]{%
822 pdfmark=/ANN,%
823 Subtype=/Link,%
824 PDFAFlags=4,%
825 AcroHighlight=\@pdfhighlight,%
826 Border=\@pdfborder,%
827 BorderStyle=\@pdfborderstyle,%
828 linktype=run,%
829 Color=\@runbordercolor,%
830 Action={%
831 <<%
832 /S/Launch%
833 \Hy@SetNewWindow
834 /F(\Hy@pstringF)%
835 \ifx\\#3\\%
836 \else
837 /Win<</P(\Hy@pstringP)/F(\Hy@pstringF)>>%
838 \fi
839 \Hy@href@nextactionraw
840 >>%
841 }%
842 }%
843 \endgroup
844 }
845 \long\def\@Form[#1]{%
846 \g@addto@macro\Hy@FirstPageHook{%
847 \headerps@out{%
848 [%
849 /_objdef{pdfDocEncoding}%
850 /type/dict%
851 /OBJ pdfmark%
852 [%
853 {pdfDocEncoding}%
854 <<%
855 /Type/Encoding%
856 /Differences[%
857 24/breve/caron/circumflex/dotaccent/hungarumlaut/ogonek/ring%
858 /tilde %
859 39/quotesingle %
860 96/grave %
861 128/bullet/dagger/daggerdbl/ellipsis/emdash/endash/florin%
862 /fraction/guilsinglleft/guilsinglright/minus/perthousand%
863 /quotedblbase/quotedblleft/quotedblright/quoteleft%
864 /quoteright/quotesinglbase/trademark/fi/fl/Lslash/OE/Scaron%
865 /Ydieresis/Zcaron/dotlessi/lslash/oe/scaron/zcaron %
866 160/Euro %
867 164/currency %
868 166/brokenbar %
869 168/dieresis/copyright/ordfeminine %
870 172/logicalnot/.notdef/registered/macron/degree/plusminus%
871 /twosuperior/threesuperior/acute/mu %
872 183/periodcentered/cedilla/onesuperior/ordmasculine %
873 188/onequarter/onehalf/threequarters %
874 192/Agrave/Aacute/Acircumflex/Atilde/Adieresis/Aring/AE%
875 /Ccedilla/Egrave/Eacute/Ecircumflex/Edieresis/Igrave%
876 /Iacute/Icircumflex/Idieresis/Eth/Ntilde/Ograve/Oacute%
877 /Ocircumflex/Otilde/Odieresis/multiply/Oslash/Ugrave%
878 /Uacute/Ucircumflex/Udieresis/Yacute/Thorn/germandbls%
879 /agrave/aacute/acircumflex/atilde/adieresis/aring/ae%
880 /ccedilla/egrave/eacute/ecircumflex/edieresis/igrave%
881 /iacute/icircumflex/idieresis/eth/ntilde/ograve/oacute%
882 /ocircumflex/otilde/odieresis/divide/oslash/ugrave/uacute%
883 /ucircumflex/udieresis/yacute/thorn/ydieresis%
884 ]%
885 >>%
886 /PUT pdfmark%
887 [%
888 /_objdef{ZaDb}%
889 /type/dict%
890 /OBJ pdfmark%
891 [%
892 {ZaDb}%
893 <<%
894 /Type/Font%
895 /Subtype/Type1%
896 /Name/ZaDb%
897 /BaseFont/ZapfDingbats%
898 >>%
899 /PUT pdfmark%
900 [%
901 /_objdef{Helv}%
902 /type/dict%
903 /OBJ pdfmark%
904 [%
905 {Helv}%
906 <<%
907 /Type/Font%
908 /Subtype/Type1%
909 /Name/Helv%
910 /BaseFont/Helvetica%
911 /Encoding{pdfDocEncoding}%
912 >>%
913 /PUT pdfmark%
914 [%
915 /_objdef{aform}%
916 /type/dict%
917 /OBJ pdfmark%
918 [%
919 /_objdef{afields}%
920 /type/array%
921 /OBJ pdfmark%
922 [%
923 /_objdef{corder}%
924 /type/array%
925 /OBJ pdfmark%
926 {%
927 [%
928 /BBox[0 0 100 100]%
929 /_objdef{Check}%
930 /BP pdfmark %
931 1 0 0 setrgbcolor%
932 /ZapfDingbats 80 selectfont %
933 20 20 moveto%
934 (4)show%
935 [/EP pdfmark%
936 [%
937 /BBox[0 0 100 100]%
938 /_objdef{Cross}%
939 /BP pdfmark %
940 1 0 0 setrgbcolor%
941 /ZapfDingbats 80 selectfont %
942 20 20 moveto%
943 (8)show%
944 [/EP pdfmark%
945 [%
946 /BBox[0 0 250 100]%
947 /_objdef{Submit}%
948 /BP pdfmark %
949 0.6 setgray %
950 0 0 250 100 rectfill %
951 1 setgray %
952 2 2 moveto %
953 2 98 lineto %
954 248 98 lineto %
955 246 96 lineto %
956 4 96 lineto %
957 4 4 lineto %
958 fill %
959 0.34 setgray %
960 248 98 moveto %
961 248 2 lineto %
962 2 2 lineto %
963 4 4 lineto %
964 246 4 lineto %
965 246 96 lineto %
966 fill%
967 /Helvetica 76 selectfont %
968 0 setgray %
969 8 22.5 moveto%
970 (Submit)show%
971 [/EP pdfmark%
972 [%
973 /BBox[0 0 250 100]%
974 /_objdef{SubmitP}%
975 /BP pdfmark %
976 0.6 setgray %
977 0 0 250 100 rectfill %
978 0.34 setgray %
979 2 2 moveto %
980 2 98 lineto %
981 248 98 lineto %
982 246 96 lineto %
983 4 96 lineto %
984 4 4 lineto %
985 fill %
986 1 setgray %
987 248 98 moveto %
988 248 2 lineto %
989 2 2 lineto %
990 4 4 lineto %
991 246 4 lineto %
992 246 96 lineto %
993 fill%
994 /Helvetica 76 selectfont %
995 0 setgray %
996 10 20.5 moveto%
997 (Submit)show%
998 [/EP pdfmark%
999 } ?pdfmark%
1000 [%
1001 {aform}%
1002 <<%
1003 /Fields{afields}%
1004 /DR<<%
1005 /Font<<%
1006 /ZaDb{ZaDb}%
1007 /Helv{Helv}%
1008 >>%
1009 >>%
1010 /DA(/Helv 10 Tf 0 g)%
1011 /CO{corder}%
1012 \ifHy@pdfa
1013 \else
1014 \ifHyField@NeedAppearances
1015 /NeedAppearances true%
1016 \fi
1017 \fi
1018 >>%
1019 /PUT pdfmark%
1020 [%
1021 {Catalog}%
1022 <<%
1023 /AcroForm{aform}%
1024 >>%
1025 /PUT pdfmark%
1026 }}%
1027 \kvsetkeys{Form}{#1}%
1028 }
1029 \let\@endForm\@empty
1030 \def\@Gauge[#1]#2#3#4{% parameters, label, minimum, maximum
1031 \Hy@Message{Sorry, pdfmark drivers do not support FORM gauges}%
1032 }
1033 \newcount\HyField@AnnotCount
1034 \HyField@AnnotCount=\z@
1035 \def\HyField@AdvanceAnnotCount{%
1036 \global\advance\HyField@AnnotCount\@ne
1037 }
1038 \def\HyField@TheAnnotCount{%
1039 \the\HyField@AnnotCount
1040 }
1041 \edef\Fld@pageobjref{/P\string{ThisPage\string}}
1042 \def\HyField@AddToFields#1{%
1043 \pdfmark{%
1044 pdfmark=/APPEND,%
1045 Raw={%
1046 \string{afields\string}%
1047 \string{#1\HyField@TheAnnotCount\string}%
1048 }%
1049 }%
1050 \ifx\Fld@calculate@code\@empty
1051 \else
1052 \pdfmark{%
1053 pdfmark=/APPEND,%
1054 Raw={%
1055 \string{corder\string}%
1056 \string{#1\HyField@TheAnnotCount\string}%
1057 }%
1058 }%
1059 \fi
1060 }
1061 \def\@TextField[#1]#2{% parameters, label
1062 \def\Fld@name{#2}%
1063 \let\Fld@default\@empty
1064 \let\Fld@value\@empty
1065 \def\Fld@width{\DefaultWidthofText}%
1066 \def\Fld@height{%
1067 \ifFld@multiline
1068 \DefaultHeightofTextMultiline
1069 \else
1070 \DefaultHeightofText
1071 \fi
1072 }%
1073 \begingroup
1074 \expandafter\HyField@SetKeys\expandafter{%
1075 \DefaultOptionsofText,#1%
1076 }%
1077 \HyField@FlagsText
1078 \ifFld@hidden\def\Fld@width{1sp}\fi
1079 \ifx\Fld@value\@empty\def\Fld@value{\Fld@default}\fi
1080 \HyField@AdvanceAnnotCount
1081 \LayoutTextField{#2}{%
1082 \leavevmode
1083 \Hy@escapeform\PDFForm@Text
1084 \pdfmark[\MakeTextField{\Fld@width}{\Fld@height}]{%
1085 pdfmark=/ANN,%
1086 objdef=text\HyField@TheAnnotCount,%
1087 Raw={\PDFForm@Text}%
1088 }%
1089 }%
1090 \HyField@AddToFields{text}%
1091 \endgroup
1092 }
1093 \def\@ChoiceMenu[#1]#2#3{% parameters, label, choices
1094 \def\Fld@name{#2}%
1095 \let\Fld@default\relax
1096 \let\Fld@value\relax
1097 \def\Fld@width{\DefaultWidthofChoiceMenu}%
1098 \def\Fld@height{\DefaultHeightofChoiceMenu}%
1099 \begingroup
1100 \Fld@menulength=0 %
1101 \@tempdima\z@
1102 \@for\@curropt:=#3\do{%
1103 \expandafter\Fld@checkequals\@curropt==\\%
1104 \Hy@StepCount\Fld@menulength
1105 \settowidth{\@tempdimb}{\@currDisplay}%
1106 \ifdim\@tempdimb>\@tempdima\@tempdima\@tempdimb\fi
1107 }%
1108 \advance\@tempdima by 15\p@
1109 \begingroup
1110 \HyField@SetKeys{#1}%
1111 \edef\x{\endgroup
1112 \noexpand\expandafter
1113 \noexpand\HyField@SetKeys
1114 \noexpand\expandafter{%
1115 \expandafter\noexpand\csname DefaultOptionsof%
1116 \ifFld@radio
1117 Radio%
1118 \else
1119 \ifFld@combo
1120 \ifFld@popdown
1121 PopdownBox%
1122 \else
1123 ComboBox%
1124 \fi
1125 \else
1126 ListBox%
1127 \fi
1128 \fi
1129 \endcsname
1130 }%
1131 }\x
1132 \HyField@SetKeys{#1}%
1133 \ifFld@hidden\def\Fld@width{1sp}\fi
1134 \ifx\Fld@value\relax
1135 \let\Fld@value\Fld@default
1136 \fi
1137 \LayoutChoiceField{#2}{%
1138 \ifFld@radio
1139 \HyField@FlagsRadioButton
1140 \@@Radio{#3}%
1141 \else
1142 \begingroup
1143 \HyField@FlagsChoice
1144 \ifdim\Fld@width<\@tempdima
1145 \ifdim\@tempdima<1cm\@tempdima1cm\fi
1146 \edef\Fld@width{\the\@tempdima}%
1147 \fi
1148 \ifFld@combo
1149 \else
1150 \@tempdima=\the\Fld@menulength\Fld@charsize
1151 \advance\@tempdima by \Fld@borderwidth bp %
1152 \advance\@tempdima by \Fld@borderwidth bp %
1153 \edef\Fld@height{\the\@tempdima}%
1154 \fi
1155 \@@Listbox{#3}%
1156 \endgroup
1157 \fi
1158 }%
1159 \endgroup
1160 }
1161 \def\@@Radio#1{%
1162 \Fld@listcount=0 %
1163 \EdefEscapeName\Fld@default{\Fld@default}%
1164 \@for\@curropt:=#1\do{%
1165 \expandafter\Fld@checkequals\@curropt==\\%
1166 \EdefEscapeName\@currValue{\@currValue}%
1167 \Hy@StepCount\Fld@listcount
1168 \@currDisplay\space
1169 \Hy@escapeform\PDFForm@Radio
1170 \ifnum\Fld@listcount=1 %
1171 \HyField@AdvanceAnnotCount
1172 \fi
1173 \pdfmark[\MakeRadioField{\Fld@width}{\Fld@height}]{%
1174 pdfmark=/ANN,%
1175 objdef=\ifnum\Fld@listcount=1 radio\HyField@TheAnnotCount\fi,%
1176 Raw={%
1177 \PDFForm@Radio /AP <</N <</\@currValue\space {Check}>> >>%
1178 }%
1179 } % deliberate space between radio buttons
1180 \ifnum\Fld@listcount=1 %
1181 \HyField@AddToFields{radio}%
1182 \fi
1183 }%
1184 }
1185 \newcount\Fld@listcount
1186 \def\@@Listbox#1{%
1187 \HyField@PDFChoices{#1}%
1188 \Hy@escapeform\PDFForm@List
1189 \HyField@AdvanceAnnotCount
1190 \pdfmark[\MakeChoiceField{\Fld@width}{\Fld@height}]{%
1191 pdfmark=/ANN,%
1192 objdef=list\HyField@TheAnnotCount,%
1193 Raw={\PDFForm@List}%
1194 }%
1195 \HyField@AddToFields{list}%
1196 }
1197 \def\@PushButton[#1]#2{% parameters, label
1198 \def\Fld@name{#2}%
1199 \begingroup
1200 \expandafter\HyField@SetKeys\expandafter{%
1201 \DefaultOptionsofPushButton,#1%
1202 }%
1203 \ifHy@pdfa
1204 \Hy@Error{%
1205 PDF/A: Push button with JavaScript is prohibited%
1206 }\@ehc
1207 \LayoutPushButtonField{%
1208 \leavevmode
1209 \MakeButtonField{#2}%
1210 }%
1211 \else
1212 \HyField@FlagsPushButton
1213 \ifFld@hidden\def\Fld@width{1sp}\fi
1214 \HyField@AdvanceAnnotCount
1215 \LayoutPushButtonField{%
1216 \leavevmode
1217 \Hy@escapeform\PDFForm@Push
1218 \pdfmark[\MakeButtonField{#2}]{%
1219 pdfmark=/ANN,%
1220 objdef=push\HyField@TheAnnotCount,%
1221 Raw={\PDFForm@Push}%
1222 }%
1223 }%
1224 \HyField@AddToFields{push}%
1225 \fi
1226 \endgroup
1227 }
1228 \def\@Submit[#1]#2{%
1229 \def\Fld@width{\DefaultWidthofSubmit}%
1230 \def\Fld@height{\DefaultHeightofSubmit}%
1231 \begingroup
1232 \expandafter\HyField@SetKeys\expandafter{%
1233 \DefaultOptionsofSubmit,#1%
1234 }%
1235 \HyField@FlagsPushButton
1236 \HyField@FlagsSubmit
1237 \ifFld@hidden\def\Fld@width{1sp}\fi
1238 \Hy@escapeform\PDFForm@Submit
1239 \HyField@AdvanceAnnotCount
1240 \pdfmark[\MakeButtonField{#2}]{%
1241 pdfmark=/ANN,%
1242 objdef=submit\HyField@TheAnnotCount,%
1243 Raw={\PDFForm@Submit /AP<</N{Submit}/D{SubmitP}>>}%
1244 }%
1245 \HyField@AddToFields{submit}%
1246 \endgroup
1247 }
1248 \def\@Reset[#1]#2{%
1249 \def\Fld@width{\DefaultWidthofReset}%
1250 \def\Fld@height{\DefaultHeightofReset}%
1251 \begingroup
1252 \expandafter\HyField@SetKeys\expandafter{%
1253 \DefaultOptionsofReset,#1%
1254 }%
1255 \leavevmode
1256 \ifHy@pdfa
1257 \Hy@Error{%
1258 PDF/A: Reset action is prohibited%
1259 }\@ehc
1260 \MakeButtonField{#2}%
1261 \else
1262 \HyField@FlagsPushButton
1263 \ifFld@hidden\def\Fld@width{1sp}\fi
1264 \Hy@escapeform\PDFForm@Reset
1265 \HyField@AdvanceAnnotCount
1266 \pdfmark[\MakeButtonField{#2}]{%
1267 pdfmark=/ANN,%
1268 objdef=reset\HyField@TheAnnotCount,%
1269 Raw={\PDFForm@Reset}%
1270 }%
1271 \HyField@AddToFields{reset}%
1272 \fi
1273 \endgroup
1274 }%
1275 \def\@CheckBox[#1]#2{% parameters, label
1276 \def\Fld@name{#2}%
1277 \def\Fld@default{0}%
1278 \begingroup
1279 \def\Fld@width{\DefaultWidthofCheckBox}%
1280 \def\Fld@height{\DefaultHeightofCheckBox}%
1281 \expandafter\HyField@SetKeys\expandafter{%
1282 \DefaultOptionsofCheckBox,#1%
1283 }%
1284 \HyField@FlagsCheckBox
1285 \ifFld@hidden\def\Fld@width{1sp}\fi
1286 \HyField@AdvanceAnnotCount
1287 \LayoutCheckField{#2}{%
1288 \leavevmode
1289 \Hy@escapeform\PDFForm@Check
1290 \pdfmark[\MakeCheckField{\Fld@width}{\Fld@height}]{%
1291 pdfmark=/ANN,%
1292 objdef=check\HyField@TheAnnotCount,%
1293 Raw={\PDFForm@Check}%
1294 }%
1295 }%
1296 \HyField@AddToFields{check}%
1297 \endgroup
1298 }
1299 \providecommand*{\Fld@pageobjref}{}
1300 \@ifundefined{pdf@escapestring}
1301 {%
1302 \let\Hy@escapestring\@firstofone
1303 \def\Hy@escapeform#1{%
1304 \ifHy@pdfescapeform
1305 \def\Hy@escapestring##1{%
1306 \noexpand\Hy@escapestring{\noexpand##1}%
1307 }%
1308 \edef\Hy@temp{#1}%
1309 \expandafter\Hy@@escapeform\Hy@temp\Hy@escapestring{}\@nil
1310 \def\Hy@escapestring##1{%
1311 \@ifundefined{Hy@esc@\string##1}{%
1312 ##1%
1313 \ThisShouldNotHappen
1314 }{%
1315 \csname Hy@esc@\string##1\endcsname
1316 }%
1317 }%
1318 \else
1319 \let\Hy@escapestring\@firstofone
1320 \fi
1321 }%
1322 \def\Hy@@escapeform#1\Hy@escapestring#2#3\@nil{%
1323 \ifx\\#3\\%
1324 \else
1325 \expandafter
1326 \Hy@pstringdef\csname Hy@esc@\string#2\endcsname{#2}%
1327 \Hy@ReturnAfterFi{%
1328 \Hy@@escapeform#3\@nil
1329 }%
1330 \fi
1331 }%
1332 }{%
1333 \def\Hy@escapeform#1{%
1334 \ifHy@pdfescapeform
1335 \let\Hy@escapestring\pdfescapestring
1336 \else
1337 \let\Hy@escapestring\@firstofone
1338 \fi
1339 }%
1340 \Hy@escapeform{}%
1341 }
1342 \def\PDFForm@Name{%
1343 \PDFForm@@Name\Fld@name
1344 \ifx\Fld@altname\relax
1345 \else
1346 \PDFForm@@Name\Fld@altname
1347 \fi
1348 \ifx\Fld@mappingname\relax
1349 \else
1350 \PDFForm@@Name\Fld@mappingname
1351 \fi
1352 }
1353 \def\PDFForm@@Name#1{%
1354 \begingroup
1355 \ifnum\Hy@pdf@majorminor@version<105 % implementation note 117, PDF spec 1.7
1356 \ifHy@unicode
1357 \Hy@unicodefalse
1358 \fi
1359 \fi
1360 \pdfstringdef\Hy@gtemp#1%
1361 \endgroup
1362 \let#1\Hy@gtemp
1363 }
1364 \def\Fld@@additionalactions{%
1365 \ifx\Fld@keystroke@code\@empty
1366 \else
1367 /K<</S/JavaScript/JS(\Hy@escapestring{\Fld@keystroke@code})>>%
1368 \fi
1369 \ifx\Fld@format@code\@empty
1370 \else
1371 /F<</S/JavaScript/JS(\Hy@escapestring{\Fld@format@code})>>%
1372 \fi
1373 \ifx\Fld@validate@code\@empty
1374 \else
1375 /V<</S/JavaScript/JS(\Hy@escapestring{\Fld@validate@code})>>%
1376 \fi
1377 \ifx\Fld@calculate@code\@empty
1378 \else
1379 /C<</S/JavaScript/JS(\Hy@escapestring{\Fld@calculate@code})>>%
1380 \fi
1381 \ifx\Fld@onfocus@code\@empty
1382 \else
1383 /Fo<</S/JavaScript/JS(\Hy@escapestring{\Fld@onfocus@code})>>%
1384 \fi
1385 \ifx\Fld@onblur@code\@empty
1386 \else
1387 /Bl<</S/JavaScript/JS(\Hy@escapestring{\Fld@onblur@code})>>%
1388 \fi
1389 \ifx\Fld@onmousedown@code\@empty
1390 \else
1391 /D<</S/JavaScript/JS(\Hy@escapestring{\Fld@onmousedown@code})>>%
1392 \fi
1393 \ifx\Fld@onmouseup@code\@empty
1394 \else
1395 /U<</S/JavaScript/JS(\Hy@escapestring{\Fld@onmouseup@code})>>%
1396 \fi
1397 \ifx\Fld@onenter@code\@empty
1398 \else
1399 /E<</S/JavaScript/JS(\Hy@escapestring{\Fld@onenter@code})>>%
1400 \fi
1401 \ifx\Fld@onexit@code\@empty
1402 \else
1403 /X<</S/JavaScript/JS(\Hy@escapestring{\Fld@onexit@code})>>%
1404 \fi
1405 }
1406 \def\Fld@additionalactions{%
1407 \if-\Fld@@additionalactions-%
1408 \else
1409 \ifHy@pdfa
1410 \else
1411 /AA<<\Fld@@additionalactions>>%
1412 \fi
1413 \fi
1414 }
1415 \def\Fld@annotnames{%
1416 /T(\Fld@name)%
1417 \ifx\Fld@altname\relax
1418 \else
1419 /TU(\Fld@altname)%
1420 \fi
1421 \ifx\Fld@mappingname\relax
1422 \else
1423 /TM(\Fld@mappingname)%
1424 \fi
1425 }
1426 \def\PDFForm@Check{%
1427 /Subtype/Widget%
1428 \Fld@annotflags
1429 \Fld@pageobjref
1430 \Fld@annotnames
1431 /FT/Btn%
1432 \Fld@flags
1433 /Q \Fld@align
1434 /BS<</W \Fld@borderwidth /S/\Fld@borderstyle>>%
1435 /AP<< /N <</Yes<<>>>> >> %new string /Yes is from below
1436 /MK<<%
1437 \ifnum\Fld@rotation=\z@
1438 \else
1439 /R \Fld@rotation
1440 \fi
1441 \ifx\Fld@bordercolor\relax
1442 \else
1443 /BC[\Fld@bordercolor]%
1444 \fi
1445 \ifx\Fld@bcolor\relax
1446 \else
1447 /BG[\Fld@bcolor]%
1448 \fi
1449 /CA(\Hy@escapestring{\Fld@cbsymbol})%
1450 >>%
1451 /DA(/ZaDb \strip@pt\Fld@charsize\space Tf%
1452 \ifx\Fld@color\@empty\else\space\Fld@color\fi)%
1453 /H/P%
1454 \ifFld@checked /V/Yes/AS/Yes\else /V/Off/AS/Off\fi
1455 \Fld@additionalactions
1456 }
1457 \ifHy@pdfa
1458 \else
1459 \def\PDFForm@Push{%
1460 /Subtype/Widget%
1461 \Fld@annotflags
1462 \Fld@pageobjref
1463 \Fld@annotnames
1464 /FT/Btn%
1465 \Fld@flags
1466 /H/P%
1467 /BS<</W \Fld@borderwidth/S/\Fld@borderstyle>>%
1468 \ifcase0\ifnum\Fld@rotation=\z@ \else 1\fi
1469 \ifx\Fld@bordercolor\relax\else 1\fi
1470 \space
1471 \else
1472 /MK<<%
1473 \ifnum\Fld@rotation=\z@
1474 \else
1475 /R \Fld@rotation
1476 \fi
1477 \ifx\Fld@bordercolor\relax
1478 \else
1479 /BC[\Fld@bordercolor]%
1480 \fi
1481 >>%
1482 \fi
1483 /A<</S/JavaScript/JS(\Hy@escapestring{\Fld@onclick@code})>>%
1484 \Fld@additionalactions
1485 }%
1486 \fi
1487 \def\PDFForm@List{%
1488 /Subtype/Widget%
1489 \Fld@annotflags
1490 \Fld@pageobjref
1491 \Fld@annotnames
1492 /FT/Ch%
1493 \Fld@flags
1494 /Q \Fld@align
1495 /BS<</W \Fld@borderwidth/S/\Fld@borderstyle>>%
1496 \ifcase0\ifnum\Fld@rotation=\z@ \else 1\fi
1497 \ifx\Fld@bordercolor\relax\else 1\fi
1498 \ifx\fld@bcolor\relax \else 1\fi
1499 \space
1500 \else
1501 /MK<<%
1502 \ifnum\Fld@rotation=\z@
1503 \else
1504 /R \Fld@rotation
1505 \fi
1506 \ifx\Fld@bordercolor\relax
1507 \else
1508 /BC[\Fld@bordercolor]%
1509 \fi
1510 \ifx\Fld@bcolor\relax
1511 \else
1512 /BG[\Fld@bcolor]%
1513 \fi
1514 >>%
1515 \fi
1516 /DA(/Helv \strip@pt\Fld@charsize\space Tf%
1517 \ifx\Fld@color\@empty\else\space\Fld@color\fi)%
1518 \Fld@choices
1519 \Fld@additionalactions
1520 }
1521 \def\PDFForm@Radio{%
1522 /Subtype/Widget%
1523 \Fld@annotflags
1524 \Fld@pageobjref
1525 \Fld@annotnames
1526 /FT/Btn%
1527 \Fld@flags
1528 /H/P%
1529 /BS<</W \Fld@borderwidth/S/\Fld@borderstyle>>%
1530 /MK<<%
1531 \ifnum\Fld@rotation=\z@
1532 \else
1533 /R \Fld@rotation
1534 \fi
1535 \ifx\Fld@bordercolor\relax
1536 \else
1537 /BC[\Fld@bordercolor]%
1538 \fi
1539 \ifx\Fld@bcolor\relax
1540 \else
1541 /BG[\Fld@bcolor]%
1542 \fi
1543 /CA(\Hy@escapestring{\Fld@radiosymbol})%
1544 >>%
1545 /DA(/ZaDb \strip@pt\Fld@charsize\space Tf%
1546 \ifx\Fld@color\@empty\else\space\Fld@color\fi)%
1547 \ifx\Fld@default\@empty
1548 /V/Off%
1549 /DV/Off%
1550 \else
1551 /V/\Fld@default
1552 /DV/\Fld@default
1553 \fi
1554 \Fld@additionalactions
1555 }
1556 \def\PDFForm@Text{%
1557 /Subtype/Widget%
1558 \Fld@annotflags
1559 \Fld@pageobjref
1560 \Fld@annotnames
1561 /FT/Tx%
1562 \Fld@flags
1563 /Q \Fld@align
1564 /BS<</W \Fld@borderwidth\space /S /\Fld@borderstyle>>%
1565 \ifcase0\ifnum\Fld@rotation=\z@ \else 1\fi
1566 \ifx\Fld@bordercolor\relax\else 1\fi
1567 \ifx\Fld@bcolor\relax \else 1\fi
1568 \space
1569 \else
1570 /MK<<%
1571 \ifnum\Fld@rotation=\z@
1572 \else
1573 /R \Fld@rotation
1574 \fi
1575 \ifx\Fld@bordercolor\relax
1576 \else
1577 /BC[\Fld@bordercolor]%
1578 \fi
1579 \ifx\Fld@bcolor\relax
1580 \else
1581 /BG[\Fld@bcolor]%
1582 \fi
1583 >>%
1584 \fi
1585 /DA(/Helv \strip@pt\Fld@charsize\space Tf%
1586 \ifx\Fld@color\@empty\else\space\Fld@color\fi)%
1587 /DV(\Hy@escapestring{\Fld@default})%
1588 /V(\Hy@escapestring{\Fld@value})%
1589 \Fld@additionalactions
1590 \ifnum\Fld@maxlen>\z@/MaxLen \Fld@maxlen \fi
1591 }
1592 \def\PDFForm@Submit{%
1593 /Subtype/Widget%
1594 \Fld@annotflags
1595 \Fld@pageobjref
1596 \Fld@annotnames
1597 /FT/Btn%
1598 \Fld@flags
1599 /H/P%
1600 /BS<</W \Fld@borderwidth/S/\Fld@borderstyle>>%
1601 \ifcase0\ifnum\Fld@rotation=\z@ \else 1\fi
1602 \ifx\Fld@bordercolor\relax\else 1\fi
1603 \space
1604 \else
1605 /MK<<%
1606 \ifnum\Fld@rotation=\z@
1607 \else
1608 /R \Fld@rotation
1609 \fi
1610 \ifx\Fld@bordercolor\relax
1611 \else
1612 /BC[\Fld@bordercolor]%
1613 \fi
1614 >>%
1615 \fi
1616 /A<<%
1617 /S/SubmitForm%
1618 /F<<%
1619 /FS/URL%
1620 /F(\Hy@escapestring{\Form@action})%
1621 >>%
1622 \Fld@submitflags
1623 >>%
1624 \Fld@additionalactions
1625 }
1626 \ifHy@pdfa
1627 \else
1628 \def\PDFForm@Reset{%
1629 /Subtype/Widget%
1630 \Fld@annotflags
1631 \Fld@pageobjref
1632 \Fld@annotnames
1633 /FT/Btn%
1634 \Fld@flags
1635 /H/P%
1636 /DA(/Helv \strip@pt\Fld@charsize\space Tf 0 0 1 rg)%
1637 \ifcase0\ifnum\Fld@rotation=\z@ \else 1\fi
1638 \ifx\Fld@bordercolor\relax\else 1\fi
1639 \space
1640 \else
1641 /MK<<%
1642 \ifnum\Fld@rotation=\z@
1643 \else
1644 /R \Fld@rotation
1645 \fi
1646 \ifx\Fld@bordercolor\relax
1647 \else
1648 /BC[\Fld@bordercolor]%
1649 \fi
1650 >>%
1651 \fi
1652 /BS<</W \Fld@borderwidth/S/\Fld@borderstyle>>%
1653 /A<</S/ResetForm>>%
1654 \Fld@additionalactions
1655 }%
1656 \fi
1657 \def\Hy@writebookmark#1#2#3#4#5{%
1658 % section number, text, label, level, file
1659 \ifx\WriteBookmarks\relax%
1660 \else
1661 \ifnum#4>\Hy@bookmarksdepth\relax
1662 \else
1663 \@@writetorep{#1}{#2}{#3}{#4}{#5}%
1664 \fi
1665 \fi
1666 }
1667 \def\Hy@currentbookmarklevel{0}
1668 \def\Hy@numberline#1{#1 }
1669 \def\@@writetorep#1#2#3#4#5{%
1670 \begingroup
1671 \edef\Hy@tempa{#5}%
1672 \ifx\Hy@tempa\Hy@bookmarkstype
1673 \edef\Hy@level{#4}%
1674 \ifx\Hy@levelcheck Y%
1675 \@tempcnta\Hy@level\relax
1676 \advance\@tempcnta by -1 %
1677 \ifnum\Hy@currentbookmarklevel<\@tempcnta
1678 \advance\@tempcnta by -\Hy@currentbookmarklevel\relax
1679 \advance\@tempcnta by 1 %
1680 \Hy@Warning{%
1681 Difference (\the\@tempcnta) between bookmark levels is %
1682 greater \MessageBreak than one, level fixed%
1683 }%
1684 \@tempcnta\Hy@currentbookmarklevel
1685 \advance\@tempcnta by 1 %
1686 \edef\Hy@level{\the\@tempcnta}%
1687 \fi
1688 \else
1689 \global\let\Hy@levelcheck Y%
1690 \fi
1691 \global\let\Hy@currentbookmarklevel\Hy@level
1692 \@tempcnta\Hy@level\relax
1693 \expandafter\xdef\csname Parent\Hy@level\endcsname{#3}%
1694 \advance\@tempcnta by -1 %
1695 \edef\Hy@tempa{#3}%
1696 \edef\Hy@tempb{\csname Parent\the\@tempcnta\endcsname}%
1697 \ifx\Hy@tempa\Hy@tempb
1698 \Hy@Warning{%
1699 The anchor of a bookmark and its parent's must not%
1700 \MessageBreak be the same. Added a new anchor%
1701 }%
1702 \phantomsection
1703 \fi
1704 \ifHy@bookmarksnumbered
1705 \let\numberline\Hy@numberline
1706 \let\booknumberline\Hy@numberline
1707 \let\partnumberline\Hy@numberline
1708 \let\chapternumberline\Hy@numberline
1709 \else
1710 \let\numberline\@gobble
1711 \let\booknumberline\@gobble
1712 \let\partnumberline\@gobble
1713 \let\chapternumberline\@gobble
1714 \fi
1715 \pdfstringdef\Hy@tempa{#2}%
1716 \HyPsd@SanitizeForOutFile\Hy@tempa
1717 \if@filesw
1718 \stepcounter{bookmark@seq@number}%
1719 \@ifundefined{@outlinefile}{%
1720 }{%
1721 \protected@write\@outlinefile{}{%
1722 \protect\BOOKMARK
1723 [\Hy@level][\@bookmarkopenstatus{\Hy@level}]{#3}%
1724 {\Hy@tempa}{\Hy@tempb}%
1725 \@percentchar\space\thebookmark@seq@number
1726 }%
1727 }%
1728 \fi
1729 \fi
1730 \endgroup
1731 }
1732 \newcounter{bookmark@seq@number}
1733 \begingroup
1734 \lccode`(=`{%
1735 \lccode`)=`}%
1736 \lccode`1=\z@
1737 \lccode`2=\z@
1738 \lccode`3=\z@
1739 \lccode`5=\z@
1740 \lccode`7=\z@
1741 \lccode`\#=\z@
1742 \lccode`\`=\z@
1743 \lccode`\{=\z@
1744 \lccode`\}=\z@
1745 \lowercase{%
1746 \endgroup
1747 \def\HyPsd@SanitizeForOutFile#1{%
1748 \@onelevel@sanitize\Hy@tempa
1749 \escapechar`\\%
1750 \edef\Hy@tempa{%
1751 \expandafter\HyPsd@SanitizeOut@BraceLeft\Hy@tempa(\@nil
1752 }%
1753 \edef\Hy@tempa{%
1754 \expandafter\HyPsd@SanitizeOut@BraceRight\Hy@tempa)\@nil
1755 }%
1756 }%
1757 \def\HyPsd@SanitizeOut@BraceLeft#1(#2\@nil{%
1758 #1%
1759 \ifx\\#2\\%
1760 \expandafter\@gobble
1761 \else
1762 \expandafter\@firstofone
1763 \fi
1764 {%
1765 \string\173%
1766 \HyPsd@SanitizeOut@BraceLeft#2\@nil
1767 }%
1768 }%
1769 \def\HyPsd@SanitizeOut@BraceRight#1)#2\@nil{%
1770 #1%
1771 \ifx\\#2\\%
1772 \expandafter\@gobble
1773 \else
1774 \expandafter\@firstofone
1775 \fi
1776 {%
1777 \string\175%
1778 \HyPsd@SanitizeOut@BraceRight#2\@nil
1779 }%
1780 }%
1781 }
1782 \newcommand{\currentpdfbookmark}{%
1783 \pdfbookmark[\Hy@currentbookmarklevel]%
1784 }
1785 \newcommand{\subpdfbookmark}{%
1786 \@tempcnta\Hy@currentbookmarklevel
1787 \Hy@StepCount\@tempcnta
1788 \expandafter\pdfbookmark\expandafter[\the\@tempcnta]%
1789 }
1790 \newcommand{\belowpdfbookmark}[2]{%
1791 \@tempcnta\Hy@currentbookmarklevel
1792 \Hy@StepCount\@tempcnta
1793 \expandafter\pdfbookmark\expandafter[\the\@tempcnta]{#1}{#2}%
1794 \advance\@tempcnta by -1 %
1795 \xdef\Hy@currentbookmarklevel{\the\@tempcnta}%
1796 }
1797 \renewcommand\pdfbookmark[3][0]{%
1798 \Hy@writebookmark{}{#2}{#3.#1}{#1}{toc}%
1799 \hyper@anchorstart{#3.#1}\hyper@anchorend
1800 }
1801 \def\BOOKMARK{%
1802 \@ifnextchar[{\@BOOKMARK}{\@@BOOKMARK[1][-]}%
1803 }
1804 \def\@BOOKMARK[#1]{%
1805 \@ifnextchar[{\@@BOOKMARK[{#1}]}{\@@BOOKMARK[{#1}][-]}%
1806 }
1807 \RequirePackage{rerunfilecheck}[2009/12/10]
1808 \def\Hy@OutlineRerunCheck{%
1809 \RerunFileCheck{\jobname.out}{%
1810 \immediate\closeout\@outlinefile
1811 }{%
1812 Rerun to get outlines right\MessageBreak
1813 or use package `bookmark'%
1814 }%
1815 }
1816 \def\ReadBookmarks{%
1817 \pdf@ifdraftmode{}{%
1818 \begingroup
1819 \def\do##1{%
1820 \ifnum\catcode`##1=\active
1821 \@makeother##1%
1822 \else
1823 \ifnum\catcode`##1=6 %
1824 \@makeother##1%
1825 \fi
1826 \fi
1827 }%
1828 \dospecials
1829 \Hy@safe@activestrue
1830 \escapechar=`\\%
1831 \def\@@BOOKMARK[##1][##2]##3##4##5{%
1832 \calc@bm@number{##5}%
1833 }%
1834 \InputIfFileExists{\jobname.out}{}{}%
1835 \ifx\WriteBookmarks\relax
1836 \global\let\WriteBookmarks\relax
1837 \fi
1838 \def\@@BOOKMARK[##1][##2]##3##4##5{%
1839 \def\Hy@temp{##4}%
1840 \pdfmark{%
1841 pdfmark=/OUT,%
1842 Count={##2\check@bm@number{##3}},%
1843 Dest={##3},%
1844 Title=\expandafter\strip@prefix\meaning\Hy@temp
1845 }%
1846 }%
1847 \begingroup
1848 \def\WriteBookmarks{0}%
1849 \InputIfFileExists{\jobname.out}{}{}%
1850 \endgroup
1851 %{\escapechar\m@ne\InputIfFileExists{\jobname.out}{}{}}%
1852 \endgroup
1853 }%
1854 \ifx\WriteBookmarks\relax
1855 \else
1856 \if@filesw
1857 \newwrite\@outlinefile
1858 \Hy@OutlineRerunCheck
1859 \immediate\openout\@outlinefile=\jobname.out\relax
1860 \fi
1861 \fi
1862 }
1863 \def\check@bm@number#1{%
1864 \expandafter\ifx\csname B_#1\endcsname\relax
1865 0%
1866 \else
1867 \csname B_#1\endcsname
1868 \fi
1869 }
1870 \def\calc@bm@number#1{%
1871 \@tempcnta=\check@bm@number{#1}\relax
1872 \advance\@tempcnta by 1 %
1873 \expandafter\xdef\csname B_#1\endcsname{\the\@tempcnta}%
1874 }
1875 \ifHy@implicit
1876 \else
1877 \expandafter\endinput
1878 \fi
1879 \newlength\Hy@SectionHShift
1880 \def\Hy@SectionAnchorHref#1{%
1881 \ifx\protect\@typeset@protect
1882 \Hy@@SectionAnchor{#1}%
1883 \fi
1884 }
1885 \DeclareRobustCommand*{\Hy@@SectionAnchor}[1]{%
1886 \leavevmode
1887 \hbox to 0pt{%
1888 \kern-\Hy@SectionHShift
1889 \Hy@raisedlink{%
1890 \hyper@anchorstart{#1}\hyper@anchorend
1891 }%
1892 \hss
1893 }%
1894 }
1895 \AddToNoCaseChangeList{\Hy@@SectionAnchor}
1896 \@ifundefined{hyper@nopatch@sectioning}
1897 {
1898 \let\H@old@ssect\@ssect
1899 \def\@ssect#1#2#3#4#5{%
1900 \Hy@MakeCurrentHrefAuto{section*}%
1901 \setlength{\Hy@SectionHShift}{#1}%
1902 \begingroup
1903 \toks@{\H@old@ssect{#1}{#2}{#3}{#4}}%
1904 \toks\tw@\expandafter{%
1905 \expandafter\Hy@SectionAnchorHref\expandafter{\@currentHref}%
1906 #5%
1907 }%
1908 \edef\x{\endgroup
1909 \the\toks@{\the\toks\tw@}%
1910 }\x
1911 }
1912 \let\H@old@schapter\@schapter
1913 \def\@schapter#1{%
1914 \begingroup
1915 \let\@mkboth\@gobbletwo
1916 \Hy@MakeCurrentHrefAuto{\Hy@chapapp*}%
1917 \Hy@raisedlink{%
1918 \hyper@anchorstart{\@currentHref}\hyper@anchorend
1919 }%
1920 \endgroup
1921 \H@old@schapter{#1}%
1922 }
1923 \@ifundefined{@chapter}{}{%
1924 \let\Hy@org@chapter\@chapter
1925 \def\@chapter{%
1926 \def\Hy@next{%
1927 \Hy@MakeCurrentHrefAuto{\Hy@chapapp*}%
1928 \Hy@raisedlink{%
1929 \hyper@anchorstart{\@currentHref}\hyper@anchorend
1930 }%
1931 }%
1932 \ifnum\c@secnumdepth>\m@ne
1933 \@ifundefined{if@mainmatter}%
1934 \iftrue{\csname if@mainmatter\endcsname}%
1935 \let\Hy@next\relax
1936 \fi
1937 \fi
1938 \Hy@next
1939 \Hy@org@chapter
1940 }%
1941 }
1942 \let\H@old@part\@part
1943 \@ifundefined{chapter}
1944 {\let\Hy@secnum@part\z@}
1945 {\let\Hy@secnum@part\m@ne}
1946 \def\@part{%
1947 \ifnum\Hy@secnum@part>\c@secnumdepth
1948 \phantomsection
1949 \fi
1950 \H@old@part
1951 }
1952 \let\H@old@spart\@spart
1953 \def\@spart#1{%
1954 \Hy@MakeCurrentHrefAuto{part*}%
1955 \Hy@raisedlink{%
1956 \hyper@anchorstart{\@currentHref}\hyper@anchorend
1957 }%
1958 \H@old@spart{#1}%
1959 }
1960 \let\H@old@sect\@sect
1961 \def\@sect#1#2#3#4#5#6[#7]#8{%
1962 \ifnum #2>\c@secnumdepth
1963 \expandafter\@firstoftwo
1964 \else
1965 \expandafter\@secondoftwo
1966 \fi
1967 {%
1968 \Hy@MakeCurrentHrefAuto{section*}%
1969 \setlength{\Hy@SectionHShift}{#3}%
1970 \begingroup
1971 \toks@{\H@old@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]}%
1972 \toks\tw@\expandafter{%
1973 \expandafter\Hy@SectionAnchorHref\expandafter{\@currentHref}%
1974 #8%
1975 }%
1976 \edef\x{\endgroup
1977 \the\toks@{\the\toks\tw@}%
1978 }\x
1979 }{%
1980 \H@old@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]{#8}%
1981 }%
1982 }
1983 }{}
1984 \expandafter\def\csname Parent-4\endcsname{}
1985 \expandafter\def\csname Parent-3\endcsname{}
1986 \expandafter\def\csname Parent-2\endcsname{}
1987 \expandafter\def\csname Parent-1\endcsname{}
1988 \expandafter\def\csname Parent0\endcsname{}
1989 \expandafter\def\csname Parent1\endcsname{}
1990 \expandafter\def\csname Parent2\endcsname{}
1991 \expandafter\def\csname Parent3\endcsname{}
1992 \expandafter\def\csname Parent4\endcsname{}
1993 \endinput
1994 %%
1995 %% End of file `pdfmark.def'.