-
Notifications
You must be signed in to change notification settings - Fork 0
/
ws-crop961x669.sty
98 lines (97 loc) · 2.95 KB
/
ws-crop961x669.sty
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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% For support : Yolande Koh, <ykoh@wspc.com.sg>
%% Technical assistance : D. Rajesh Babu, <rajesh@wspc.com.sg>
%% Review Volume Template (updated on 31-08-2015)
%% Book Trim Size: 9.61in x 6.69in
%% Text Area: 8in (include runningheads) x 5in
%% Main Text: 10/13pt
%%
%% The content, structure, format and layout of this style file is
%% the property of World Scientific Publishing Co. Pte. Ltd.
%% Copyright 2015 by World Scientific Publishing Co.
%% All rights are reserved.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{ws-crop961x669}[2015/08/31 WSPC Crop 9.61x6.69]
% do not adjust these values
\paperwidth=170truemm % 6.69in
\paperheight=244truemm % 9.61in
\oddsidemargin=-3.9mm % adjust this value to center the text
\evensidemargin=-3.9mm % adjust this value to center the text
\topmargin=-7.7mm % adjust this value to center the text
\RequirePackage[a4,center,cam]{crop}
\RequirePackage{ifthen}
%
\newcount\minute
\newcount\hour
\def\currenttime{%
\minute\time
\hour\minute
\divide\hour60
\the\hour:\multiply\hour60\advance\minute-\hour\the\minute}
\makeatletter
\def\@getcl@ss#1.cls#2\relax{\def\@currentclass{#1}}
\def\@getclass{\expandafter\@getcl@ss\@filelist\relax}
\@getclass
\@ifundefined{projecttitle}{\newtoks\projecttitle\projecttitle{}}{}
\newtoks\classtitle
\classtitle{
\ifthenelse{\equal{\@currentclass}{ws-rv961x669}}{\@currentclass}{\@currentclass-961x669}
}
\def\cropnote{\scriptsize\sf\today\enskip\currenttime\ \hfill
\the\classtitle\ \hfill\parbox[t]{2.75in}{\the\projecttitle}\ \hfill
\jobname\quad page~\thepage\hfill\ \strut\\[3em]}
\renewcommand*\CROP@@info{{%
\global\advance\CROP@index\@ne
\def\x{\discretionary{}{}{\hbox{\kern.5em---\kern.5em}}}%
\advance\paperwidth-20\p@
\dimen@4pt
\ifx\CROP@pagecolor\@empty
\else
\advance\dimen@\CROP@overlap
\fi
\hb@xt@\z@{%
\hss
\vbox to\z@{%
\centering
\hsize\paperwidth
\vss
\cropnote
\vskip\dimen@
}%
\hss
}%
}}
\renewcommand*\CROP@@ulc{%
\begin{picture}(0,0)
\unitlength\p@\thinlines
\put(-35,0){\line(1,0){20}}
\put(0,35){\line(0,-1){20}}
\end{picture}%
}
\renewcommand*\CROP@@urc{%
\begin{picture}(0,0)
\unitlength\p@\thinlines
\put(35,0){\line(-1,0){20}}
\put(0,35){\line(0,-1){20}}
\end{picture}%
}
\renewcommand*\CROP@@llc{%
\begin{picture}(0,0)
\unitlength\p@\thinlines
\put(-35,0){\line(1,0){20}}
\put(0,-35){\line(0,1){20}}
\end{picture}%
}
\renewcommand*\CROP@@lrc{%
\begin{picture}(0,0)
\unitlength\p@\thinlines
\put(35,0){\line(-1,0){20}}
\put(0,-35){\line(0,1){20}}
\end{picture}%
}
\cropdef\CROP@@ulc\CROP@@urc\CROP@@llc\CROP@@lrc{cam}
\crop[cam]
\makeatother
\endinput