| 1 |
%% |
| 2 |
%% This is file `crop.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% crop.dtx (with options: `package') |
| 8 |
%% |
| 9 |
%% IMPORTANT NOTICE: |
| 10 |
%% |
| 11 |
%% For the copyright see the source file. |
| 12 |
%% |
| 13 |
%% Any modified versions of this file must be renamed |
| 14 |
%% with new filenames distinct from crop.sty. |
| 15 |
%% |
| 16 |
%% For distribution of the original source see the terms |
| 17 |
%% for copying and modification in the file crop.dtx. |
| 18 |
%% |
| 19 |
%% This generated file may be distributed as long as the |
| 20 |
%% original source files, as listed above, are part of the |
| 21 |
%% same distribution. (The sources need not necessarily be |
| 22 |
%% in the same archive or directory.) |
| 23 |
%% File: crop.dtx Copyright (C) 1998--2017 Melchior FRANZ |
| 24 |
\NeedsTeXFormat{LaTeX2e} |
| 25 |
\ProvidesPackage{crop}[2017/11/19 1.10 crop marks (mf)] |
| 26 |
\RequirePackage{ifluatex} |
| 27 |
\expandafter\ifx\csname stockwidth\endcsname\relax |
| 28 |
\newdimen\stockwidth |
| 29 |
\stockwidth\paperwidth |
| 30 |
\fi |
| 31 |
\expandafter\ifx\csname stockheight\endcsname\relax |
| 32 |
\newdimen\stockheight |
| 33 |
\stockheight\paperheight |
| 34 |
\fi |
| 35 |
\newcount\CROP@index |
| 36 |
\CROP@index\z@ |
| 37 |
\newcommand*\CROP@font{} |
| 38 |
\let\CROP@stockcolor\@empty |
| 39 |
\let\CROP@pagecolor\@empty |
| 40 |
\IfFileExists{color.sty}{% |
| 41 |
\RequirePackage{color}% |
| 42 |
\let\CROP@needscolor\@empty |
| 43 |
}{% |
| 44 |
\newcommand*\CROP@needscolor{% |
| 45 |
\PackageError{crop}{% |
| 46 |
The `invert' and `notext' options require the\MessageBreak |
| 47 |
`color' package, which doesn't seem to be installed% |
| 48 |
}{% |
| 49 |
Install the `color' package or don't use the `invert' |
| 50 |
\MessageBreak or `notext' option. |
| 51 |
}% |
| 52 |
\let\CROP@needscolor\relax |
| 53 |
}% |
| 54 |
\let\current@color\relax |
| 55 |
} |
| 56 |
\let\CROP@detdriver\@empty |
| 57 |
\IfFileExists{graphics.sty}{% |
| 58 |
\RequirePackage{graphics}% |
| 59 |
\let\CROP@Ginclude@graphics\Ginclude@graphics |
| 60 |
\ifx\Gin@driver\@empty\else |
| 61 |
\filename@parse{\Gin@driver}% |
| 62 |
\edef\CROP@detdriver{\filename@base}% |
| 63 |
\fi |
| 64 |
\let\CROP@ps\Gin@PS@raw |
| 65 |
}{% |
| 66 |
\PackageWarning{crop}{I couldn't find the `graphics' package, so |
| 67 |
I'll use\MessageBreak my internal PostScript interface% |
| 68 |
}% |
| 69 |
\newcommand*\CROP@ps[1]{\special{ps: ##1}}% |
| 70 |
} |
| 71 |
\let\CROP@reqdriver\@empty |
| 72 |
\DeclareOption{vtex}{\def\CROP@reqdriver{vtex}} |
| 73 |
\DeclareOption{pdftex}{\def\CROP@reqdriver{pdftex}} |
| 74 |
\DeclareOption{pdflatex}{\def\CROP@reqdriver{pdftex}} |
| 75 |
\DeclareOption{luatex}{\def\CROP@reqdriver{luatex}} |
| 76 |
\DeclareOption{lualatex}{\def\CROP@reqdriver{luatex}} |
| 77 |
\DeclareOption{dvips}{\def\CROP@reqdriver{dvips}} |
| 78 |
\let\CROP@driver\@empty |
| 79 |
\DeclareOption{vtex!}{\def\CROP@driver{vtex}} |
| 80 |
\DeclareOption{pdftex!}{\def\CROP@driver{pdftex}} |
| 81 |
\DeclareOption{pdflatex!}{\def\CROP@driver{pdftex}} |
| 82 |
\DeclareOption{luatex!}{\def\CROP@driver{luatex}} |
| 83 |
\DeclareOption{lualatex!}{\def\CROP@driver{luatex}} |
| 84 |
\DeclareOption{dvips!}{\def\CROP@driver{dvips}} |
| 85 |
\DeclareOption{nodriver}{\def\CROP@driver{none}} |
| 86 |
\DeclareOption{!}{\def\CROP@driver{none}} |
| 87 |
\newcommand*\CROP@evaldriver{% |
| 88 |
\ifx\CROP@driver\@empty |
| 89 |
\PackageInfo{crop}{requested driver: `\CROP@reqdriver'}% |
| 90 |
\ifluatex |
| 91 |
\def\CROP@detdriver{luatex}% |
| 92 |
\else |
| 93 |
\ifx\pdfoutput\@undefined\else |
| 94 |
\ifx\pdfoutput\relax\else |
| 95 |
\ifcase\pdfoutput\else |
| 96 |
\def\CROP@detdriver{pdftex}% |
| 97 |
\fi |
| 98 |
\fi |
| 99 |
\fi |
| 100 |
\fi |
| 101 |
\ifx\VTeXversion\@undefined\else |
| 102 |
\ifx\VTeXversion\relax\else |
| 103 |
\def\CROP@detdriver{vtex}% |
| 104 |
\fi |
| 105 |
\fi |
| 106 |
\PackageInfo{crop}{detected driver: `\CROP@detdriver'}% |
| 107 |
\ifx\CROP@reqdriver\@empty\else |
| 108 |
\ifx\CROP@reqdriver\@empty\else |
| 109 |
\ifx\CROP@reqdriver\CROP@detdriver\else |
| 110 |
\PackageWarningNoLine{crop}{% |
| 111 |
You requested the `\CROP@reqdriver' driver |
| 112 |
but I think that\MessageBreak the |
| 113 |
`\CROP@detdriver' driver works better in the |
| 114 |
current\MessageBreak context. You can force |
| 115 |
me to respect your decision\MessageBreak |
| 116 |
by adding an exclamation point as in |
| 117 |
[\CROP@reqdriver!]% |
| 118 |
}% |
| 119 |
\fi |
| 120 |
\fi |
| 121 |
\fi |
| 122 |
\ifx\CROP@detdriver\@empty |
| 123 |
\let\CROP@driver\CROP@reqdriver |
| 124 |
\else |
| 125 |
\let\CROP@driver\CROP@detdriver |
| 126 |
\fi |
| 127 |
\fi |
| 128 |
\let\CROP@evaldriver\relax |
| 129 |
} |
| 130 |
\AtBeginDocument{\CROP@evaldriver} |
| 131 |
\newcommand*\CROP@init@dvips{% |
| 132 |
\PackageInfo{crop}{using `dvips' graphics driver}% |
| 133 |
\AtBeginDvi{% |
| 134 |
\special{papersize=\the\stockwidth,\the\stockheight}% |
| 135 |
}% |
| 136 |
} |
| 137 |
\newcommand*\CROP@init@pdftex{% |
| 138 |
\PackageInfo{crop}{using `pdftex' graphics driver}% |
| 139 |
\let\CROP@reflect\CROP@genreflect |
| 140 |
\let\CROP@rotate\CROP@genrotate |
| 141 |
\newcommand*\CROP@shiphook{% |
| 142 |
\pdfpagewidth\stockwidth |
| 143 |
\pdfpageheight\stockheight |
| 144 |
}% |
| 145 |
} |
| 146 |
\newcommand*\CROP@init@luatex{% |
| 147 |
\PackageInfo{crop}{using `luatex' graphics driver}% |
| 148 |
\pagewidth\stockwidth |
| 149 |
\pageheight\stockheight |
| 150 |
\let\CROP@reflect\CROP@genreflect |
| 151 |
\let\CROP@rotate\CROP@genrotate |
| 152 |
} |
| 153 |
\newcommand*\CROP@init@vtex{% |
| 154 |
\PackageInfo{crop}{using `vtex' graphics driver}% |
| 155 |
\mediawidth\stockwidth |
| 156 |
\mediaheight\stockheight |
| 157 |
\let\CROP@reflect\CROP@genreflect |
| 158 |
\let\CROP@rotate\CROP@genrotate |
| 159 |
} |
| 160 |
\newcommand*\CROP@init@none{% |
| 161 |
\PackageInfo{crop}{not using any graphics driver}% |
| 162 |
} |
| 163 |
\newcommand*\CROP@size[2]{\stockwidth#1 \stockheight#2 } |
| 164 |
\DeclareOption{landscape}{% |
| 165 |
\def\CROP@size#1#2{\stockheight#1 \stockwidth#2 }% |
| 166 |
} |
| 167 |
\DeclareOption{a0}{\CROP@size{841truemm}{1189truemm}} |
| 168 |
\DeclareOption{a1}{\CROP@size{594truemm}{841truemm}} |
| 169 |
\DeclareOption{a2}{\CROP@size{420truemm}{594truemm}} |
| 170 |
\DeclareOption{a3}{\CROP@size{297truemm}{420truemm}} |
| 171 |
\DeclareOption{a4}{\CROP@size{210truemm}{297truemm}} |
| 172 |
\DeclareOption{a5}{\CROP@size{148truemm}{210truemm}} |
| 173 |
\DeclareOption{a6}{\CROP@size{105truemm}{148truemm}} |
| 174 |
\DeclareOption{b0}{\CROP@size{1000truemm}{1414truemm}} |
| 175 |
\DeclareOption{b1}{\CROP@size{707truemm}{1000truemm}} |
| 176 |
\DeclareOption{b2}{\CROP@size{500truemm}{707truemm}} |
| 177 |
\DeclareOption{b3}{\CROP@size{353truemm}{500truemm}} |
| 178 |
\DeclareOption{b4}{\CROP@size{250truemm}{353truemm}} |
| 179 |
\DeclareOption{b5}{\CROP@size{176truemm}{250truemm}} |
| 180 |
\DeclareOption{b6}{\CROP@size{125truemm}{176truemm}} |
| 181 |
\DeclareOption{letter}{\CROP@size{8.5truein}{11truein}} |
| 182 |
\DeclareOption{legal}{\CROP@size{8.5truein}{14truein}} |
| 183 |
\DeclareOption{executive}{\CROP@size{7.25truein}{10.5truein}} |
| 184 |
\newcommand\CROP@opt@width{\stockwidth\CROP@@} |
| 185 |
\newcommand\CROP@opt@height{\stockheight\CROP@@} |
| 186 |
\DeclareOption{center}{\AtBeginDocument{\CROP@center}} |
| 187 |
\newcommand*\CROP@center{% |
| 188 |
\voffset\stockheight |
| 189 |
\advance\voffset-\paperheight |
| 190 |
\voffset.5\voffset |
| 191 |
\hoffset\stockwidth |
| 192 |
\advance\hoffset-\paperwidth |
| 193 |
\hoffset.5\hoffset |
| 194 |
} |
| 195 |
\DeclareOption*{\CROP@execopt\CurrentOption} |
| 196 |
\newcommand*\crop[1][cam,noaxes]{% |
| 197 |
\@for\CROP@@:=#1\do{\CROP@execopt\CROP@@}% |
| 198 |
} |
| 199 |
\newcommand*\CROP@execopt[1]{% |
| 200 |
\def\CROP@##1=##2=##3\@nil{\def\CROP@{##1}\def\CROP@@{##2}}% |
| 201 |
\expandafter\CROP@#1==\@nil% |
| 202 |
\@ifundefined{CROP@opt@\CROP@}{% |
| 203 |
\PackageError{crop}{% |
| 204 |
Requested option `#1' not provided% |
| 205 |
}{% |
| 206 |
Note that the `*center' options are obsolete. You have to |
| 207 |
request\MessageBreak e.g. [a4,center] instead of |
| 208 |
[a4center]. |
| 209 |
}% |
| 210 |
}{% |
| 211 |
\@nameuse{CROP@opt@\CROP@}% |
| 212 |
}% |
| 213 |
} |
| 214 |
\newcommand*\cropdef[6][\CROP@@info]{% |
| 215 |
\@namedef{CROP@opt@#6}{% |
| 216 |
\def\CROP@info{#1}% |
| 217 |
\let\CROP@ulc#2 |
| 218 |
\let\CROP@urc#3 |
| 219 |
\let\CROP@llc#4 |
| 220 |
\let\CROP@lrc#5 |
| 221 |
\let\CROP@@@marks\CROP@marks |
| 222 |
}% |
| 223 |
} |
| 224 |
\newcommand*\CROP@@laxis{% |
| 225 |
\begin{picture}(0,0) |
| 226 |
\unitlength\p@\thinlines |
| 227 |
\put(-2,0){\line(-1,0){11}} |
| 228 |
\end{picture}% |
| 229 |
} |
| 230 |
\newcommand*\CROP@@raxis{% |
| 231 |
\begin{picture}(0,0) |
| 232 |
\unitlength\p@\thinlines |
| 233 |
\put(2,0){\line(1,0){11}} |
| 234 |
\end{picture}% |
| 235 |
} |
| 236 |
\newcommand*\CROP@@upaxis{% |
| 237 |
\begin{picture}(0,0) |
| 238 |
\unitlength\p@\thinlines |
| 239 |
\put(0,2){\line(0,1){11}} |
| 240 |
\end{picture}% |
| 241 |
} |
| 242 |
\newcommand*\CROP@@loaxis{% |
| 243 |
\begin{picture}(0,0) |
| 244 |
\unitlength\p@\thinlines |
| 245 |
\put(0,-2){\line(0,-1){11}} |
| 246 |
\end{picture}% |
| 247 |
} |
| 248 |
\newcommand*\CROP@time{} |
| 249 |
\bgroup |
| 250 |
\count@\time |
| 251 |
\divide\time60 |
| 252 |
\count\@ne\time |
| 253 |
\multiply\time60 |
| 254 |
\advance\count@-\time |
| 255 |
\xdef\CROP@time{\the\count\@ne:\two@digits{\count@}} |
| 256 |
\egroup |
| 257 |
\newcommand*\CROP@@info{{% |
| 258 |
\global\advance\CROP@index\@ne |
| 259 |
\def\x{\discretionary{}{}{\hbox{\kern.5em---\kern.5em}}}% |
| 260 |
\advance\paperwidth-20\p@ |
| 261 |
\dimen@4pt |
| 262 |
\ifx\CROP@pagecolor\@empty |
| 263 |
\else |
| 264 |
\advance\dimen@\CROP@overlap |
| 265 |
\fi |
| 266 |
\hb@xt@\z@{% |
| 267 |
\hss |
| 268 |
\vbox to\z@{% |
| 269 |
\centering |
| 270 |
\hsize\paperwidth |
| 271 |
\vss |
| 272 |
\normalfont |
| 273 |
\normalsize |
| 274 |
\expandafter\csname\CROP@font\endcsname{% |
| 275 |
``\jobname''\x |
| 276 |
\the\year/\the\month/\the\day\x |
| 277 |
\CROP@time\x |
| 278 |
page\kern.5em\thepage\x |
| 279 |
\#\the\CROP@index |
| 280 |
\strut |
| 281 |
}% |
| 282 |
\vskip\dimen@ |
| 283 |
}% |
| 284 |
\hss |
| 285 |
}% |
| 286 |
}} |
| 287 |
\newcommand*\CROP@opt@font{\let\CROP@font\CROP@@} |
| 288 |
\newcommand*\CROP@@ulc{% |
| 289 |
\begin{picture}(0,0) |
| 290 |
\unitlength\p@\thinlines |
| 291 |
\put(-30,0){\circle{10}} |
| 292 |
\put(-30,-5){\line(0,1){10}} |
| 293 |
\put(-35,0){\line(1,0){30}} |
| 294 |
\put(0,30){\circle{10}} |
| 295 |
\put(-5,30){\line(1,0){10}} |
| 296 |
\put(0,35){\line(0,-1){30}} |
| 297 |
\end{picture}% |
| 298 |
} |
| 299 |
\newcommand*\CROP@@urc{% |
| 300 |
\begin{picture}(0,0) |
| 301 |
\unitlength\p@\thinlines |
| 302 |
\put(30,0){\circle{10}} |
| 303 |
\put(30,-5){\line(0,1){10}} |
| 304 |
\put(35,0){\line(-1,0){30}} |
| 305 |
\put(0,30){\circle{10}} |
| 306 |
\put(-5,30){\line(1,0){10}} |
| 307 |
\put(0,35){\line(0,-1){30}} |
| 308 |
\end{picture}% |
| 309 |
} |
| 310 |
\newcommand*\CROP@@llc{% |
| 311 |
\begin{picture}(0,0) |
| 312 |
\unitlength\p@\thinlines |
| 313 |
\put(-30,0){\circle{10}} |
| 314 |
\put(-30,-5){\line(0,1){10}} |
| 315 |
\put(-35,0){\line(1,0){30}} |
| 316 |
\put(0,-30){\circle{10}} |
| 317 |
\put(-5,-30){\line(1,0){10}} |
| 318 |
\put(0,-35){\line(0,1){30}} |
| 319 |
\end{picture}% |
| 320 |
} |
| 321 |
\newcommand*\CROP@@lrc{% |
| 322 |
\begin{picture}(0,0) |
| 323 |
\unitlength\p@\thinlines |
| 324 |
\put(30,0){\circle{10}} |
| 325 |
\put(30,-5){\line(0,1){10}} |
| 326 |
\put(35,0){\line(-1,0){30}} |
| 327 |
\put(0,-30){\circle{10}} |
| 328 |
\put(-5,-30){\line(1,0){10}} |
| 329 |
\put(0,-35){\line(0,1){30}} |
| 330 |
\end{picture}% |
| 331 |
} |
| 332 |
\cropdef\CROP@@ulc\CROP@@urc\CROP@@llc\CROP@@lrc{cam} |
| 333 |
\newcommand*\CROP@@cross{% |
| 334 |
\begin{picture}(0,0) |
| 335 |
\unitlength1cm\thinlines |
| 336 |
\put(-2,0){\line(1,0){4}} |
| 337 |
\put(0,-2){\line(0,1){4}} |
| 338 |
\end{picture}% |
| 339 |
} |
| 340 |
\cropdef\CROP@@cross\CROP@@cross\CROP@@cross\CROP@@cross{cross} |
| 341 |
\newcommand*\CROP@@frame{% |
| 342 |
\begin{picture}(0,0) |
| 343 |
\unitlength\p@\thinlines |
| 344 |
\put(0,0){\line(1,0){\strip@pt\paperwidth}} |
| 345 |
\put(0,0){\line(0,-1){\strip@pt\paperheight}} |
| 346 |
\put(\strip@pt\paperwidth,0){\line(0,-1){\strip@pt\paperheight}} |
| 347 |
\put(0,-\strip@pt\paperheight){\line(1,0){\strip@pt\paperwidth}} |
| 348 |
\end{picture}% |
| 349 |
} |
| 350 |
\cropdef\CROP@@frame\relax\relax\relax{frame} |
| 351 |
\let\CROP@shipout\shipout |
| 352 |
\renewcommand*\shipout{% |
| 353 |
\afterassignment\CROP@ship |
| 354 |
\setbox\@cclv=% |
| 355 |
} |
| 356 |
\newcommand*\CROP@ship{% |
| 357 |
\ifvoid\@cclv |
| 358 |
\expandafter\aftergroup |
| 359 |
\fi |
| 360 |
\CROP@@ship |
| 361 |
} |
| 362 |
\newcommand*\CROP@shiplist{% |
| 363 |
\lineskip\z@ |
| 364 |
\lineskiplimit\z@ |
| 365 |
\baselineskip\z@ |
| 366 |
\CROP@kernel |
| 367 |
\box\@cclv |
| 368 |
} |
| 369 |
\newcommand*\CROP@@ship{% |
| 370 |
\csname CROP@shiphook\endcsname |
| 371 |
\CROP@shipout\vbox{\CROP@shiplist}% |
| 372 |
} |
| 373 |
\newcommand*\CROP@shipadd[1]{% |
| 374 |
\bgroup |
| 375 |
\toks@\expandafter{\expandafter#1\expandafter{\CROP@shiplist}}% |
| 376 |
\xdef\CROP@shiplist{\the\toks@}% |
| 377 |
\egroup |
| 378 |
} |
| 379 |
\newcommand*\CROP@kernel{% |
| 380 |
\vbox to\z@{% |
| 381 |
\vskip\CROP@vorigin |
| 382 |
\hb@xt@\z@{% |
| 383 |
\hskip\CROP@horigin |
| 384 |
\vbox to\paperheight{% |
| 385 |
\let\protect\relax |
| 386 |
\hsize\paperwidth |
| 387 |
\CROP@hook |
| 388 |
\CROP@user@a |
| 389 |
\CROP@drawstockcolor |
| 390 |
\CROP@drawpagecolor |
| 391 |
\CROP@@@marks |
| 392 |
}% |
| 393 |
\hss |
| 394 |
}% |
| 395 |
\vss |
| 396 |
}% |
| 397 |
} |
| 398 |
\newcommand*\CROP@marks{% |
| 399 |
\CROP@setmarkcolor |
| 400 |
\CROP@user@b |
| 401 |
\CROP@ulc\null\hfill\CROP@@@info\CROP@upedge\hfill\null\CROP@urc |
| 402 |
\vfill |
| 403 |
\CROP@ledge\hfill\CROP@redge |
| 404 |
\vfill |
| 405 |
\CROP@llc\null\hfill\CROP@loedge\hfill\null\CROP@lrc |
| 406 |
} |
| 407 |
\let\CROP@@@marks\CROP@marks |
| 408 |
\newcommand*\CROP@setmarkcolor{% |
| 409 |
\let\current@color\CROP@markcolor |
| 410 |
\set@color |
| 411 |
} |
| 412 |
\let\CROP@user@a\relax |
| 413 |
\let\CROP@user@b\relax |
| 414 |
\newcommand*\CROP@opt@horigin{\let\CROP@horigin\CROP@@} |
| 415 |
\newcommand*\CROP@opt@vorigin{\let\CROP@vorigin\CROP@@} |
| 416 |
\newcommand*\CROP@opt@off{% |
| 417 |
\let\CROP@@@marks\vfil |
| 418 |
} |
| 419 |
\newcommand*\CROP@opt@odd{% |
| 420 |
\def\CROP@@@marks{\ifodd\c@page\CROP@marks\else\vfil\fi}% |
| 421 |
} |
| 422 |
\newcommand*\CROP@opt@even{% |
| 423 |
\def\CROP@@@marks{\ifodd\c@page\vfil\else\CROP@marks\fi}% |
| 424 |
} |
| 425 |
\newcommand*\CROP@@@info{} |
| 426 |
\newcommand*\CROP@opt@info{\def\CROP@@@info{\CROP@info}} |
| 427 |
\newcommand*\CROP@opt@noinfo{\let\CROP@@@info\relax} |
| 428 |
\newcommand*\CROP@opt@axes{% |
| 429 |
\let\CROP@ledge\CROP@@laxis |
| 430 |
\let\CROP@redge\CROP@@raxis |
| 431 |
\let\CROP@upedge\CROP@@upaxis |
| 432 |
\let\CROP@loedge\CROP@@loaxis |
| 433 |
} |
| 434 |
\newcommand*\CROP@opt@noaxes{% |
| 435 |
\let\CROP@ledge\relax |
| 436 |
\let\CROP@redge\relax |
| 437 |
\let\CROP@upedge\relax |
| 438 |
\let\CROP@loedge\relax |
| 439 |
} |
| 440 |
\expandafter\newcommand\expandafter*\csname CROP@opt@mount1\endcsname{% |
| 441 |
\let\CROP@hook\relax |
| 442 |
} |
| 443 |
\newcount\CROP@offset |
| 444 |
\expandafter\newcommand\expandafter*\csname CROP@opt@mount2\endcsname{% |
| 445 |
\CROP@offset=\ifx\CROP@@\@empty\z@\else\CROP@@\fi |
| 446 |
\def\CROP@hook{% |
| 447 |
\count@\c@page |
| 448 |
\advance\count@\CROP@offset |
| 449 |
\ifodd\count@ |
| 450 |
\let\CROP@ulc\relax |
| 451 |
\let\CROP@llc\relax |
| 452 |
\let\CROP@ledge\relax |
| 453 |
\else |
| 454 |
\let\CROP@urc\relax |
| 455 |
\let\CROP@lrc\relax |
| 456 |
\let\CROP@redge\relax |
| 457 |
\fi |
| 458 |
}% |
| 459 |
} |
| 460 |
\DeclareOption{mirror}{% |
| 461 |
\AtBeginDocument{\CROP@shipadd\CROP@reflect} |
| 462 |
} |
| 463 |
\newcommand*\CROP@reflect[1]{% |
| 464 |
\vbox to\z@{% |
| 465 |
\vskip\CROP@vorigin |
| 466 |
\hb@xt@\z@{% |
| 467 |
\hskip\CROP@horigin |
| 468 |
\CROP@ps{gsave currentpoint}% |
| 469 |
\kern\paperwidth |
| 470 |
\CROP@ps{currentpoint}% |
| 471 |
\hss |
| 472 |
}% |
| 473 |
\vss |
| 474 |
}% |
| 475 |
\CROP@ps{translate -1 1 scale neg exch neg exch translate}% |
| 476 |
\vbox{#1}% |
| 477 |
\CROP@ps{grestore}% |
| 478 |
} |
| 479 |
\newcommand*\CROP@genreflect[1]{% |
| 480 |
\leavevmode |
| 481 |
\dimen0\CROP@horigin |
| 482 |
\kern2\dimen0 |
| 483 |
\reflectbox{% |
| 484 |
\hb@xt@\paperwidth{% |
| 485 |
\vbox to\paperheight{% |
| 486 |
#1% |
| 487 |
\vss |
| 488 |
}% |
| 489 |
\hss |
| 490 |
}% |
| 491 |
}% |
| 492 |
} |
| 493 |
\DeclareOption{rotate}{% |
| 494 |
\AtBeginDocument{\CROP@shipadd\CROP@rotate} |
| 495 |
} |
| 496 |
\newcommand*\CROP@rotate[1]{% |
| 497 |
\hb@xt@\z@{% |
| 498 |
\hskip\CROP@horigin |
| 499 |
\vbox to\z@{% |
| 500 |
\vskip\CROP@vorigin |
| 501 |
\CROP@ps{gsave currentpoint}% |
| 502 |
\kern\paperheight |
| 503 |
\hb@xt@\z@{% |
| 504 |
\kern\paperwidth |
| 505 |
\CROP@ps{currentpoint}% |
| 506 |
\hss |
| 507 |
}% |
| 508 |
\vss |
| 509 |
}% |
| 510 |
\hss |
| 511 |
}% |
| 512 |
\CROP@ps{translate 180 rotate neg exch neg exch translate}% |
| 513 |
\vbox{#1}% |
| 514 |
\CROP@ps{grestore}% |
| 515 |
} |
| 516 |
\newcommand*\CROP@genrotate[1]{% |
| 517 |
\dimen0\CROP@vorigin |
| 518 |
\kern2\dimen0 |
| 519 |
\leavevmode |
| 520 |
\dimen0\CROP@horigin |
| 521 |
\kern2\dimen0 |
| 522 |
\rotatebox{180}{% |
| 523 |
\hb@xt@\paperwidth{% |
| 524 |
\vbox to\paperheight{% |
| 525 |
#1% |
| 526 |
\vss |
| 527 |
}% |
| 528 |
\hss |
| 529 |
}% |
| 530 |
}% |
| 531 |
} |
| 532 |
\newcommand*\CROP@defmarkcolor[1]{{% |
| 533 |
\def\set@color{\global\let\CROP@markcolor\current@color}% |
| 534 |
\@declaredcolor{#1}% |
| 535 |
}} |
| 536 |
\ifx\CROP@needscolor\@empty |
| 537 |
\renewcommand*\set@page@color{% |
| 538 |
\global\let\CROP@stockcolor\current@color |
| 539 |
}% |
| 540 |
\AtBeginDocument{% |
| 541 |
\def\set@page@color{% |
| 542 |
\global\let\CROP@pagecolor\current@color |
| 543 |
}% |
| 544 |
}% |
| 545 |
\CROP@defmarkcolor{black}% |
| 546 |
\let\CROP@needscolor\relax |
| 547 |
\fi |
| 548 |
\newcommand*\CROP@opt@color{% |
| 549 |
\CROP@needscolor |
| 550 |
\expandafter\CROP@defmarkcolor\expandafter{\CROP@@}% |
| 551 |
} |
| 552 |
\newcommand*\CROP@drawstockcolor{% |
| 553 |
\ifx\CROP@stockcolor\@empty |
| 554 |
\else |
| 555 |
\rlap{% |
| 556 |
\smash{% |
| 557 |
\raise\voffset\hbox{% |
| 558 |
\let\current@color\CROP@stockcolor |
| 559 |
\set@color |
| 560 |
\hskip-\hoffset |
| 561 |
\vrule width\stockwidth height\z@ depth\stockheight |
| 562 |
}% |
| 563 |
}% |
| 564 |
}% |
| 565 |
\fi |
| 566 |
} |
| 567 |
\newcommand*\CROP@drawpagecolor{% |
| 568 |
\ifx\CROP@pagecolor\@empty |
| 569 |
\else |
| 570 |
\rlap{% |
| 571 |
\smash{% |
| 572 |
\dimen@\CROP@overlap |
| 573 |
\advance\paperwidth2\dimen@ |
| 574 |
\advance\paperheight2\dimen@ |
| 575 |
\raise\dimen@\hbox{% |
| 576 |
\let\current@color\CROP@pagecolor |
| 577 |
\set@color |
| 578 |
\hskip-\dimen@ |
| 579 |
\vrule width\paperwidth height\z@ depth\paperheight |
| 580 |
}% |
| 581 |
}% |
| 582 |
}% |
| 583 |
\fi |
| 584 |
} |
| 585 |
\def\CROP@overlap{3truemm} |
| 586 |
\newcommand*\CROP@opt@overlap{\let\CROP@overlap\CROP@@} |
| 587 |
\newcommand*\CROP@invert[1]{% |
| 588 |
\CROP@needscolor |
| 589 |
\AtBeginDvi{% |
| 590 |
\pagecolor{#1}% |
| 591 |
\global\let\set@page@color\relax |
| 592 |
\global\let\CROP@setpagecolor\relax |
| 593 |
}% |
| 594 |
\color{white}% |
| 595 |
\DeclareRobustCommand*\color[2][]{}% |
| 596 |
\let\pagecolor\color |
| 597 |
\let\textcolor\color |
| 598 |
\let\CROP@invert\@gobble |
| 599 |
} |
| 600 |
\DeclareOption{invert}{% |
| 601 |
\CROP@invert{black}% |
| 602 |
\let\CROP@setmarkcolor\relax |
| 603 |
} |
| 604 |
\DeclareOption{notext}{% |
| 605 |
\CROP@invert{white}% |
| 606 |
} |
| 607 |
\newcommand*\CROP@opt@nographics{% |
| 608 |
\def\Ginclude@graphics##1{% |
| 609 |
\phantom{% |
| 610 |
\CROP@Ginclude@graphics{##1}% |
| 611 |
}% |
| 612 |
}% |
| 613 |
}% |
| 614 |
\newcommand*\CROP@opt@graphics{% |
| 615 |
\let\Ginclude@graphics\CROP@Ginclude@graphics |
| 616 |
} |
| 617 |
\newcommand*\CROP@horigin{-1truein} |
| 618 |
\newcommand*\CROP@vorigin{-1truein} |
| 619 |
\crop[cam,off,noaxes,info,mount1] |
| 620 |
\InputIfFileExists{crop.cfg}{% |
| 621 |
\PackageInfo{crop}{Local config file crop.cfg used} |
| 622 |
}{} |
| 623 |
\ProcessOptions |
| 624 |
\AtBeginDocument{\@nameuse{CROP@init@\CROP@driver}} |
| 625 |
\endinput |
| 626 |
%% |
| 627 |
%% End of file `crop.sty'. |