| 1 |
%% |
| 2 |
%% This is file `l3backend-dvips.pro', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% l3backend-header.dtx (with options: `header,dvips') |
| 8 |
%% |
| 9 |
%% Copyright (C) 2019-2026 The LaTeX Project |
| 10 |
%% |
| 11 |
%% It may be distributed and/or modified under the conditions of |
| 12 |
%% the LaTeX Project Public License (LPPL), either version 1.3c of |
| 13 |
%% this license or (at your option) any later version. The latest |
| 14 |
%% version of this license is in the file: |
| 15 |
%% |
| 16 |
%% https://www.latex-project.org/lppl.txt |
| 17 |
%% |
| 18 |
%% This file is part of the "l3backend bundle" (The Work in LPPL) |
| 19 |
%% and all files in that bundle must be distributed together. |
| 20 |
%% |
| 21 |
%% File: l3backend-header.dtx |
| 22 |
/color.sc { } def |
| 23 |
TeXDict begin |
| 24 |
/TeXcolorseparation { setcolor } def |
| 25 |
end |
| 26 |
true setglobal |
| 27 |
/pdf.globaldict 4 dict def |
| 28 |
false setglobal |
| 29 |
/pdf.cvs { 65534 string cvs } def |
| 30 |
/pdf.dvi.pt { 72.27 mul Resolution div } def |
| 31 |
/pdf.pt.dvi { 72.27 div Resolution mul } def |
| 32 |
/pdf.rect.ht { dup 1 get neg exch 3 get add } def |
| 33 |
/pdf.linkmargin { 1 pdf.pt.dvi } def |
| 34 |
/pdf.linkdp.pad { 0 } def |
| 35 |
/pdf.linkht.pad { 0 } def |
| 36 |
/pdf.rect |
| 37 |
{ /Rect [ pdf.llx pdf.lly pdf.urx pdf.ury ] } def |
| 38 |
/pdf.save.ll |
| 39 |
{ |
| 40 |
currentpoint |
| 41 |
/pdf.lly exch def |
| 42 |
/pdf.llx exch def |
| 43 |
} |
| 44 |
def |
| 45 |
/pdf.save.ur |
| 46 |
{ |
| 47 |
currentpoint |
| 48 |
/pdf.ury exch def |
| 49 |
/pdf.urx exch def |
| 50 |
} |
| 51 |
def |
| 52 |
/pdf.save.linkll |
| 53 |
{ |
| 54 |
currentpoint |
| 55 |
pdf.linkmargin add |
| 56 |
pdf.linkdp.pad add |
| 57 |
/pdf.lly exch def |
| 58 |
pdf.linkmargin sub |
| 59 |
/pdf.llx exch def |
| 60 |
} |
| 61 |
def |
| 62 |
/pdf.save.linkur |
| 63 |
{ |
| 64 |
currentpoint |
| 65 |
pdf.linkmargin sub |
| 66 |
pdf.linkht.pad sub |
| 67 |
/pdf.ury exch def |
| 68 |
pdf.linkmargin add |
| 69 |
/pdf.urx exch def |
| 70 |
} |
| 71 |
def |
| 72 |
/pdf.dest.anchor |
| 73 |
{ |
| 74 |
currentpoint exch |
| 75 |
pdf.dvi.pt 72 add |
| 76 |
/pdf.dest.x exch def |
| 77 |
pdf.dvi.pt |
| 78 |
vsize 72 sub exch sub |
| 79 |
/pdf.dest.y exch def |
| 80 |
} |
| 81 |
def |
| 82 |
/pdf.dest.point |
| 83 |
{ pdf.dest.x pdf.dest.y } def |
| 84 |
/pdf.dest2device |
| 85 |
{ |
| 86 |
/pdf.dest.y exch def |
| 87 |
/pdf.dest.x exch def |
| 88 |
matrix currentmatrix |
| 89 |
matrix defaultmatrix |
| 90 |
matrix invertmatrix |
| 91 |
matrix concatmatrix |
| 92 |
cvx exec |
| 93 |
/pdf.dev.y exch def |
| 94 |
/pdf.dev.x exch def |
| 95 |
/pdf.tmpd exch def |
| 96 |
/pdf.tmpc exch def |
| 97 |
/pdf.tmpb exch def |
| 98 |
/pdf.tmpa exch def |
| 99 |
pdf.dest.x pdf.tmpa mul |
| 100 |
pdf.dest.y pdf.tmpc mul add |
| 101 |
pdf.dev.x add |
| 102 |
pdf.dest.x pdf.tmpb mul |
| 103 |
pdf.dest.y pdf.tmpd mul add |
| 104 |
pdf.dev.y add |
| 105 |
} |
| 106 |
def |
| 107 |
/pdf.bordertracking false def |
| 108 |
/pdf.bordertracking.begin |
| 109 |
{ |
| 110 |
SDict /pdf.bordertracking true put |
| 111 |
SDict /pdf.leftboundary undef |
| 112 |
SDict /pdf.rightboundary undef |
| 113 |
/a where |
| 114 |
{ |
| 115 |
/a |
| 116 |
{ |
| 117 |
currentpoint pop |
| 118 |
SDict /pdf.rightboundary known dup |
| 119 |
{ |
| 120 |
SDict /pdf.rightboundary get 2 index lt |
| 121 |
{ not } |
| 122 |
if |
| 123 |
} |
| 124 |
if |
| 125 |
{ pop } |
| 126 |
{ SDict exch /pdf.rightboundary exch put } |
| 127 |
ifelse |
| 128 |
moveto |
| 129 |
currentpoint pop |
| 130 |
SDict /pdf.leftboundary known dup |
| 131 |
{ |
| 132 |
SDict /pdf.leftboundary get 2 index gt |
| 133 |
{ not } |
| 134 |
if |
| 135 |
} |
| 136 |
if |
| 137 |
{ pop } |
| 138 |
{ SDict exch /pdf.leftboundary exch put } |
| 139 |
ifelse |
| 140 |
} |
| 141 |
put |
| 142 |
} |
| 143 |
if |
| 144 |
} |
| 145 |
def |
| 146 |
/pdf.bordertracking.end |
| 147 |
{ |
| 148 |
/a where { /a { moveto } put } if |
| 149 |
/x where { /x { 0 exch rmoveto } put } if |
| 150 |
SDict /pdf.leftboundary known |
| 151 |
{ pdf.outerbox 0 pdf.leftboundary put } |
| 152 |
if |
| 153 |
SDict /pdf.rightboundary known |
| 154 |
{ pdf.outerbox 2 pdf.rightboundary put } |
| 155 |
if |
| 156 |
SDict /pdf.bordertracking false put |
| 157 |
} |
| 158 |
def |
| 159 |
/pdf.bordertracking.endpage |
| 160 |
{ |
| 161 |
pdf.bordertracking |
| 162 |
{ |
| 163 |
pdf.bordertracking.end |
| 164 |
true setglobal |
| 165 |
pdf.globaldict |
| 166 |
/pdf.brokenlink.rect [ pdf.outerbox aload pop ] put |
| 167 |
pdf.globaldict |
| 168 |
/pdf.brokenlink.skip pdf.baselineskip put |
| 169 |
pdf.globaldict |
| 170 |
/pdf.brokenlink.dict |
| 171 |
pdf.link.dict pdf.cvs put |
| 172 |
false setglobal |
| 173 |
mark pdf.link.dict cvx exec /Rect |
| 174 |
[ |
| 175 |
pdf.llx |
| 176 |
pdf.lly |
| 177 |
pdf.outerbox 2 get pdf.linkmargin add |
| 178 |
currentpoint exch pop |
| 179 |
pdf.outerbox pdf.rect.ht sub pdf.linkmargin sub |
| 180 |
] |
| 181 |
/ANN pdf.pdfmark |
| 182 |
} |
| 183 |
if |
| 184 |
} |
| 185 |
def |
| 186 |
/pdf.bordertracking.continue |
| 187 |
{ |
| 188 |
/pdf.link.dict pdf.globaldict |
| 189 |
/pdf.brokenlink.dict get def |
| 190 |
/pdf.outerbox pdf.globaldict |
| 191 |
/pdf.brokenlink.rect get def |
| 192 |
/pdf.baselineskip pdf.globaldict |
| 193 |
/pdf.brokenlink.skip get def |
| 194 |
pdf.globaldict dup dup |
| 195 |
/pdf.brokenlink.dict undef |
| 196 |
/pdf.brokenlink.skip undef |
| 197 |
/pdf.brokenlink.rect undef |
| 198 |
currentpoint |
| 199 |
/pdf.originy exch def |
| 200 |
/pdf.originx exch def |
| 201 |
/a where |
| 202 |
{ |
| 203 |
/a |
| 204 |
{ |
| 205 |
moveto |
| 206 |
SDict |
| 207 |
begin |
| 208 |
currentpoint pdf.originy ne exch |
| 209 |
pdf.originx ne or |
| 210 |
{ |
| 211 |
pdf.save.linkll |
| 212 |
/pdf.lly |
| 213 |
pdf.lly pdf.outerbox 1 get sub def |
| 214 |
pdf.bordertracking.begin |
| 215 |
} |
| 216 |
if |
| 217 |
end |
| 218 |
} |
| 219 |
put |
| 220 |
} |
| 221 |
if |
| 222 |
/x where |
| 223 |
{ |
| 224 |
/x |
| 225 |
{ |
| 226 |
0 exch rmoveto |
| 227 |
SDict |
| 228 |
begin |
| 229 |
currentpoint |
| 230 |
pdf.originy ne exch pdf.originx ne or |
| 231 |
{ |
| 232 |
pdf.save.linkll |
| 233 |
/pdf.lly |
| 234 |
pdf.lly pdf.outerbox 1 get sub def |
| 235 |
pdf.bordertracking.begin |
| 236 |
} |
| 237 |
if |
| 238 |
end |
| 239 |
} |
| 240 |
put |
| 241 |
} |
| 242 |
if |
| 243 |
} |
| 244 |
def |
| 245 |
/pdf.breaklink |
| 246 |
{ |
| 247 |
pop |
| 248 |
counttomark 2 mod 0 eq |
| 249 |
{ |
| 250 |
counttomark /pdf.count exch def |
| 251 |
{ |
| 252 |
pdf.count 0 eq { exit } if |
| 253 |
counttomark 2 roll |
| 254 |
1 index /Rect eq |
| 255 |
{ |
| 256 |
dup 4 array copy |
| 257 |
dup dup |
| 258 |
1 get |
| 259 |
pdf.outerbox pdf.rect.ht |
| 260 |
pdf.linkmargin 2 mul add sub |
| 261 |
3 exch put |
| 262 |
dup |
| 263 |
pdf.outerbox 2 get |
| 264 |
pdf.linkmargin add |
| 265 |
2 exch put |
| 266 |
dup dup |
| 267 |
3 get |
| 268 |
pdf.outerbox pdf.rect.ht |
| 269 |
pdf.linkmargin 2 mul add add |
| 270 |
1 exch put |
| 271 |
/pdf.currentrect exch def |
| 272 |
pdf.breaklink.write |
| 273 |
{ |
| 274 |
pdf.currentrect |
| 275 |
dup |
| 276 |
pdf.outerbox 0 get |
| 277 |
pdf.linkmargin sub |
| 278 |
0 exch put |
| 279 |
dup |
| 280 |
pdf.outerbox 2 get |
| 281 |
pdf.linkmargin add |
| 282 |
2 exch put |
| 283 |
dup dup |
| 284 |
1 get |
| 285 |
pdf.baselineskip add |
| 286 |
1 exch put |
| 287 |
dup dup |
| 288 |
3 get |
| 289 |
pdf.baselineskip add |
| 290 |
3 exch put |
| 291 |
/pdf.currentrect exch def |
| 292 |
pdf.breaklink.write |
| 293 |
} |
| 294 |
1 index 3 get |
| 295 |
pdf.linkmargin 2 mul add |
| 296 |
pdf.outerbox pdf.rect.ht add |
| 297 |
2 index 1 get sub |
| 298 |
pdf.baselineskip div round cvi 1 sub |
| 299 |
exch |
| 300 |
repeat |
| 301 |
pdf.currentrect |
| 302 |
dup |
| 303 |
pdf.outerbox 0 get |
| 304 |
pdf.linkmargin sub |
| 305 |
0 exch put |
| 306 |
dup dup |
| 307 |
1 get |
| 308 |
pdf.baselineskip add |
| 309 |
1 exch put |
| 310 |
dup dup |
| 311 |
3 get |
| 312 |
pdf.baselineskip add |
| 313 |
3 exch put |
| 314 |
dup 2 index 2 get 2 exch put |
| 315 |
/pdf.currentrect exch def |
| 316 |
pdf.breaklink.write |
| 317 |
SDict /pdf.pdfmark.good false put |
| 318 |
exit |
| 319 |
} |
| 320 |
{ pdf.count 2 sub /pdf.count exch def } |
| 321 |
ifelse |
| 322 |
} |
| 323 |
loop |
| 324 |
} |
| 325 |
if |
| 326 |
/ANN |
| 327 |
} |
| 328 |
def |
| 329 |
/pdf.breaklink.write |
| 330 |
{ |
| 331 |
counttomark 1 sub |
| 332 |
index /_objdef eq |
| 333 |
{ |
| 334 |
counttomark -2 roll |
| 335 |
dup wcheck |
| 336 |
{ |
| 337 |
readonly |
| 338 |
counttomark 2 roll |
| 339 |
} |
| 340 |
{ pop pop } |
| 341 |
ifelse |
| 342 |
} |
| 343 |
if |
| 344 |
counttomark 1 add copy |
| 345 |
pop pdf.currentrect |
| 346 |
/ANN pdfmark |
| 347 |
} |
| 348 |
def |
| 349 |
/pdf.pdfmark |
| 350 |
{ |
| 351 |
SDict /pdf.pdfmark.good true put |
| 352 |
dup /ANN eq |
| 353 |
{ |
| 354 |
pdf.pdfmark.store |
| 355 |
pdf.pdfmark.dict |
| 356 |
begin |
| 357 |
Subtype /Link eq |
| 358 |
currentdict /Rect known and |
| 359 |
SDict /pdf.outerbox known and |
| 360 |
SDict /pdf.baselineskip known and |
| 361 |
{ |
| 362 |
Rect 3 get |
| 363 |
pdf.linkmargin 2 mul add |
| 364 |
pdf.outerbox pdf.rect.ht add |
| 365 |
Rect 1 get sub |
| 366 |
pdf.baselineskip div round cvi 0 gt |
| 367 |
{ pdf.breaklink } |
| 368 |
if |
| 369 |
} |
| 370 |
if |
| 371 |
end |
| 372 |
SDict /pdf.outerbox undef |
| 373 |
SDict /pdf.baselineskip undef |
| 374 |
currentdict /pdf.pdfmark.dict undef |
| 375 |
} |
| 376 |
if |
| 377 |
pdf.pdfmark.good |
| 378 |
{ pdfmark } |
| 379 |
{ cleartomark } |
| 380 |
ifelse |
| 381 |
} |
| 382 |
def |
| 383 |
/pdf.pdfmark.store |
| 384 |
{ |
| 385 |
/pdf.pdfmark.dict 65534 dict def |
| 386 |
counttomark 1 add copy |
| 387 |
pop |
| 388 |
{ |
| 389 |
dup mark eq |
| 390 |
{ |
| 391 |
pop |
| 392 |
exit |
| 393 |
} |
| 394 |
{ |
| 395 |
pdf.pdfmark.dict |
| 396 |
begin def end |
| 397 |
} |
| 398 |
ifelse |
| 399 |
} |
| 400 |
loop |
| 401 |
} |
| 402 |
def |
| 403 |
%% |
| 404 |
%% |
| 405 |
%% End of file `l3backend-dvips.pro'. |