summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ncctools/ncccropmark.sty
blob: 1d616b0114f5789eda5c7967ff7aa2ade1c7a51d (plain)
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
%%
%% This is file `ncccropmark.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% ncccropmark.dtx  (with options: `package')
%% 
%% IMPORTANT NOTICE:
%% 
%% This file is a generated file from the sources of the `ncctools'
%% bundle.
%% 
%% You are not allowed to modify this file.
%% 
%% You are allowed to distribute this file if and only if
%% it is distributed with the corresponding source files in
%% the `ncctools' bundle.
%% 
%% For the copying and distribution conditions of the source files,
%% see the README file distributed with the ncctools bundle.
%%
%% File: ncccropmark.dtx Copyright (C) 2002--2004 by Alexander I. Rozhenko
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{ncccropmark}
         [2004/11/29 v1.1 Cropmarks (NCC)]
\RequirePackage{ncccropbox,tocenter}
\newcommand*{\cropmark}[6][]{\NCC@pos{#1}%
  \@tempswafalse
  \if@twoside \ifodd\c@page \else \@tempswatrue \fi\fi
  \if@tempswa
    \setlength{\@tempdima}{#3}%
    \setlength{\@tempdimb}{#2}%
  \else
    \setlength{\@tempdima}{#2}%
    \setlength{\@tempdimb}{#3}%
  \fi
  \if@twocolumn
    \NCC@m\@tempdima \NCC@m\@tempdimb
  \else
    \if@tempswa
      \if@reversemargin \NCC@m\@tempdimb \else \NCC@m\@tempdima \fi
    \else
      \if@reversemargin \NCC@m\@tempdima \else \NCC@m\@tempdimb \fi
    \fi
  \fi
  \@tempskipa -\@tempdima
  \advance\@tempdima\@tempdimb
  \advance\@tempdima\textwidth
  \@tempdimb\headsep
  \advance\@tempdimb\textheight
  \NCC@f\@tempdimb
  \addtolength{\@tempdimb}{#5}%
  \@tempskipb -\@tempdimb
  \advance\@tempdimb -\headsep
  \NCC@h\@tempdimb
  \addtolength{\@tempdimb}{#4}%
  \begingroup
    \croplinelength{#6}%
    \lineskip\z@
    \@killglue\raise\@tempskipb
      \hb@xt@\z@{\kern\@tempskipa
        \cropbox[\@tempdima][\@tempdimb]{}\hss}\hss%
  \endgroup
}
\endinput
%%
%% End of file `ncccropmark.sty'.