1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170
|
%%
%% This is file `hpdftex.def',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% hyperref.dtx (with options: `check,pdftex,outlines')
%%
%% File: hyperref.dtx Copyright (C) 1995, 1996, 1997, 1998 Sebastian Rahtz
\ifhy@driverloaded\endinput\fi
\hy@driverloadedtrue
\def\new@pdflink#1{%
\pdfdest name {#1} \@pdfview }
\let\pdf@endanchor\@empty
\AtBeginDocument{%
\ifhy@colorlinks
\def\pdfBorderAttrs{/Border [0 0 0]}%
\fi
}
\def\@pdfborder{0 0 1}%
\def\pdfBorderAttrs{/Border [\@pdfborder]}
\def\find@pdflink#1#2{%
\leavevmode\pdfannotlink
attr{\pdfBorderAttrs /C [\CurrentBorderColor]}
goto name {#2}%
\colorlink{\csname @#1color\endcsname}%
}
\def\close@pdflink{\pdfendlink\hyper@resetcolor}
\def\hyper@anchor#1{\new@pdflink{#1}\anchor@spot\pdf@endanchor}
\def\hyper@anchorstart#1{\new@pdflink{#1}\hy@activeanchortrue}
\def\hyper@anchorend{\pdf@endanchor\hy@activeanchorfalse}
\def\hyper@linkstart#1#2{%
\edef\CurrentBorderColor{\csname @#1bordercolor\endcsname}%
\find@pdflink{#1}{#2}}
\def\hyper@linkend{\close@pdflink}
\def\hyper@link#1#2#3{%
\edef\CurrentBorderColor{\csname @#1bordercolor\endcsname}%
\find@pdflink{#1}{#2}#3\close@pdflink
}
\def\CurrentBorderColor{\@linkbordercolor}
\def\hyper@linkurl#1#2{%
\bgroup
\hyper@chars
\leavevmode\pdfannotlink
attr{\pdfBorderAttrs /C [\@urlbordercolor]}
user{/Subtype /Link
/A <<
/Type /Action
/S /URI
/URI (#2)
>>}{\colorlink{\@urlcolor}#1}%
\pdfendlink
\egroup
}
\def\hyper@linkfile#1#2#3{% anchor text, filename, linkname
\bgroup
\leavevmode\pdfannotlink
attr{\pdfBorderAttrs /C [\@filebordercolor]}
goto file{#2} name{#3}{\colorlink{\@filecolor}#1}%
\pdfendlink
\egroup
}
\def\@pdfproducer{pdfTeX}
\def\PDF@SetupDoc{%
\pdfcatalog { % Catalog dictionary of PDF output.
/PageMode \@pdfpagemode
/URI (\@baseurl)
} openaction goto page \@pdfstartpage {\@pdfstartview}
\pdfinfo {
/Author (\@pdfauthor)
/Title (\@pdftitle)
/Subject (\@pdfsubject)
/Creator ( \@pdfcreator)
/Producer ( \@pdfproducer)
/Keywords (\@pdfkeywords)
\ifx\@pdfpagescrop\@empty\else
/CropBox [\@pdfpagescrop]
\fi
}%
}
\pdfoutput=1
\pdfcompresslevel=9
\pdfpagewidth\paperwidth
\pdfpageheight\paperheight
\def\Acrobatmenu#1#2{%
\leavevmode\pdfannotlink
attr{\pdfBorderAttrs /C [\@menubordercolor]}
user{
/Subtype /Link
/A <<
/S /Named /N /#1
>>
}{\colorlink{\@menucolor}#2}%
\pdfendlink
}
\let\H@old@sect\@sect
\def\@sect#1#2#3#4#5#6[#7]#8{%
\H@old@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]{#8}%
\ifx\\#1\\\else
\ifnum#2>\c@secnumdepth\else
\edef\@thishlabel{\csname theH#1\endcsname}%
\@writetorep{#7}{#1.\@thishlabel}{#2}\fi
\fi
}
\let\H@old@part\@part
\def\@part[#1]#2{%
\@writetorep{#1}{part.\theHpart}{-1}%
\H@old@part[{#1}]{#2}%
}
\let\H@old@chapter\@chapter
\def\@chapter[#1]#2{%
\H@old@chapter[{#1}]{#2}%
\@writetorep{#1}{chapter.\theHchapter}{0}%
}
\expandafter\def\csname Parent-2\endcsname{}
\expandafter\def\csname Parent-1\endcsname{}
\expandafter\def\csname Parent0\endcsname{}
\expandafter\def\csname Parent1\endcsname{}
\newwrite\@outlinefile
\def\@writetorep#1#2#3{%
\ifx\WriteBookmarks\relax\else
\@tempcnta#3
\expandafter\edef\csname Parent#3\endcsname{#2}%
\advance\@tempcnta by -1
\protected@write\@outlinefile%
{\let~\space
\def\LaTeX{LaTeX}%
\def\eTeX{e-TeX}%
\def\TeX{TeX}%
\let\label\@gobble
\let\index\@gobble
\let\glossary\@gobble}%
{%
\protect\BOOKMARK{#2}{#1}{\csname Parent\the\@tempcnta\endcsname}}%
\fi
}
\def\pdfbookmark{\@ifnextchar[{\pdf@bookmark}{\pdf@bookmark[0]}}
\def\pdf@bookmark[#1]#2#3{%
\ifx\WriteBookmarks\relax\else
\@writetorep{#2}{#3.#1}{#1}%
\hyper@anchorstart{#3.#1}\hyper@anchorend
\fi
}
\AtBeginDocument{\ReadBookmarks}
\def\ReadBookmarks{%
\def\BOOKMARK ##1##2##3{\calc@bm@number{##3}}%
\InputIfFileExists{\jobname.out}{
}{}%
\def\BOOKMARK ##1##2##3{%
\def\@tempx{##2}%
\pdfoutline goto
name{##1}%
count\@bookmarkopenstatus\check@bm@number{##1}{%
\expandafter\strip@prefix\meaning\@tempx}%
}%
{\def\WriteBookmarks{0}%
\escapechar\m@ne\InputIfFileExists{\jobname.out}{}{}}%
\ifx\WriteBookmarks\relax\else
\immediate\openout\@outlinefile=\jobname.out
\fi
}
\def\check@bm@number#1{\expandafter \ifx\csname#1\endcsname \relax 0%
\else \csname#1\endcsname \fi}
\def\calc@bm@number#1{\@tempcnta=\check@bm@number{#1}\relax
\advance\@tempcnta by1
\expandafter\xdef\csname#1\endcsname{\the\@tempcnta}}
\endinput
%%
%% End of file `hpdftex.def'.
|