-
Notifications
You must be signed in to change notification settings - Fork 0
/
ipart.cls
262 lines (251 loc) · 7.61 KB
/
ipart.cls
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
%%
%% This is file `ipart.cls',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% ipart.dtx (with options: `class')
%%
%% Copyright (C) 2020 by L. Tolen\.{e}, VTEX UAB
%% Mokslininku 2a, LT-08412 Vilnius, Lithuania
%% --------------------------------------------------------------------------
%%
%% PURPOSE: The International Press journals style class.
%% SOURCE: The initial source code was ipart.cls and imsart.sty.
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{ipart}
[2024/09/11 v2.6, driver class for INTLPRESS journals]
%% DEPENDENCIES:
%% - article.cls
%% - ipart-layout-main.sty
%% - ipart-layout-pamq.sty
%% - ipart-layout-sii.sty
%% - ipart-vtex.sty
%% - ipart-vtex-pamq.sty
%% - ipart-vtex-sii.sty
%%
%% CLASS FILE CONTENT:
%% > OPTIONS
%% - GENERAL
%% - JOURNAL
%% < OPTIONS
%% - MAIN SETUP
%% - VTeX SETUP
%%
%% >>>>>>> OPTIONS >>>>>>>
%%
%%
%% ======= GENERAL =======
%%
%% Load natbib with correct settings
\newif\if@load@natbib@\@load@natbib@true
\DeclareOption{nonatbib}{\@load@natbib@false}
\newif\if@numbered@bibl\@numbered@bibltrue
\DeclareOption{authoryear}{\@numbered@biblfalse}
%% When hyperref is loaded, makes a hyperlink
%% only from year component of the cite command
\newif\if@linksfromyear\@linksfromyearfalse
\DeclareOption{linksfromyear}{\@linksfromyeartrue}
%% Put "." after inline section headings
\newif\if@autosecdot
\DeclareOption{autosecdot}{\@autosecdottrue}
\DeclareOption{noautosecdot}{\AtBeginDocument{\@autosecdotfalse}}
\DeclareOption{seceqn}{\AtBeginDocument{\numberwithin{equation}{section}}}
%% Spacing
\def\singlespacing{\renewcommand{\baselinestretch}{}\large\normalsize}
\def\doublespacing{\renewcommand{\baselinestretch}{1.6}\large\normalsize}
\DeclareOption{doublespacing}{\doublespacing}
\DeclareOption{singlespacing}{\singlespacing}
%%
%% ======= JOURNAL =======
%%
\def\main@layout@id{0}
\def\pamq@layout@id{1}
\def\sii@layout@id{2}
\def\jbr@layout@id{3}
\def\bpam@layout@id{4}
\let\selected@layout\main@layout@id
\def\journal@id{}
\def\journal@name{}
\def\journal@issn{}
\def\journal@url{}
\def\ip@journal@url#1{%
https://www.intlpress.com/site/pub/pages/journals/items/#1/_home/_main/index.php%
}
\def\@publisher{International Press, Inc.}
\def\@publisheraddress{387 Somerville Avenue, Somerville, MA 02143, U.S.A.}
\DeclareOption{joc}{%
\PassOptionsToClass{11pt}{article}%
\def\journal@id{-joc}%
\def\journal@name{Journal of Combinatorics}%
\def\journal@issn{ISSN: 2156-3527}%
\def\journal@eissn{ISSN: 2150-959X}%
\def\journal@url{\ip@journal@url{joc}}%
\AtBeginDocument{%
\def\bauthor@style{\rm}%
}%
}
\DeclareOption{cntp}{%
\PassOptionsToClass{11pt}{article}%
\def\journal@id{-cntp}%
\def\journal@name{Communications in \break Number Theory and Physics}%
\def\journal@issn{ISSN: 1931-4523}%
\def\journal@eissn{ISSN: 1931-4531}%
\def\journal@url{\ip@journal@url{cntp}}%
\AtBeginDocument{%
%% Ensuring that journal title will be placed in two lines
\AfterPackage{hyperref}{\hypersetup{breaklinks=True}}%
\def\title@style{\bfseries}%
\def\history@postfix{}%
\def\revised@prefix{\\Revised~}%
\def\accepted@prefix{\\Accepted~}%
}%
}
\DeclareOption{gic}{%
\PassOptionsToClass{11pt}{article}%
\def\journal@id{-gic}%
\def\journal@name{Geometry, Imaging and Computing}%
\def\journal@issn{ISSN: 2328-8876}%
\def\journal@eissn{ISSN: 2328-8884}%
\def\journal@url{\ip@journal@url{gic}}%
}
\DeclareOption{mcgd}{%
\PassOptionsToClass{11pt}{article}%
\def\journal@id{-mcgd}%
\def\journal@name{Mathematics, Computation and Geometry of Data}%
\def\journal@issn{ISSN: 2642-1909}%
\def\journal@eissn{ISSN: 2642-1917}%
\def\journal@url{\ip@journal@url{mcgd}}%
}
\DeclareOption{cjm}{%
\PassOptionsToClass{11pt}{article}%
\def\journal@id{-cjm}%
\def\journal@name{Cambridge Journal of Mathematics}%
\def\journal@issn{ISSN: 2168-0930}%
\def\journal@eissn{ISSN: 2168-0949}%
\def\journal@url{\ip@journal@url{cjm}}%
\AtBeginDocument{%
\def\bauthor@style{\rm}%
\def\beditor@style{\rm}%
}%
\@autosecdottrue
}
\DeclareOption{bpam}{%
\PassOptionsToClass{11pt}{article}%
\def\@JID{BPAM}%
\def\journal@id{-bpam}%
\def\journal@name{Beijing J. of Pure and Appl. Math.}%
\def\journal@issn{ISSN: 2994-8444}%
\def\journal@eissn{ISSN: 2994-8452}%
\def\journal@url{\ip@journal@url{bpam}}%
\AtBeginDocument{%
\def\bauthor@style{\rm}%
\def\beditor@style{\rm}%
}%
\@autosecdottrue
\global\let\selected@layout\bpam@layout@id
}
\DeclareOption{amsa}{%
\PassOptionsToClass{11pt}{article}%
\def\journal@id{-amsa}%
\def\journal@name{Annals of Mathematical Sciences and Applications}%
\def\journal@issn{ISSN: 2380-288X}%
\def\journal@eissn{ISSN: 2380-2898}%
\def\journal@url{\ip@journal@url{amsa}}%
\AtBeginDocument{%
\def\bauthor@style{\rm}%
\def\beditor@style{\rm}%
}%
\@autosecdottrue
}
\DeclareOption{cis}{%
\PassOptionsToClass{11pt}{article}%
\def\journal@id{-cis}%
\def\journal@name{Communications in Information and Systems}%
\def\journal@issn{ISSN: 1526-7555}%
\def\journal@eissn{ISSN: 2163-4548}%
\def\journal@url{\ip@journal@url{cis}}%
\AtBeginDocument{%
\def\bauthor@style{\rm}%
\def\beditor@style{\rm}%
}%
}
\DeclareOption{pamq}{%
\PassOptionsToClass{11pt}{article}%
\def\@JID{PAMQ}%
\def\journal@id{-pamq}%
\def\journal@name{Pure and Applied Mathematics Quarterly}%
\def\journal@issn{ISSN: 1558-8599}%
\def\journal@eissn{ISSN: 1558-8602}%
\def\journal@url{\ip@journal@url{pamq}}%
\AtBeginDocument{%
\def\oauthor@style{\sc}%
}%
\global\let\selected@layout\pamq@layout@id
}
\DeclareOption{sii}{%
\PassOptionsToClass{10pt,twocolumn}{article}%
\def\journal@id{-sii}%
\def\journal@name{Statistics and Its Interface}%
\def\journal@issn{ISSN: 1938-7989}%
\def\journal@eissn{ISSN: 1938-7997}%
\def\journal@url{\ip@journal@url{sii}}%
\AtBeginDocument{%
\def\bauthor@style{\sc}%
}%
\global\let\selected@layout\sii@layout@id
}
\DeclareOption{jbr}{%
\PassOptionsToClass{10pt,twocolumn}{article}%
\def\journal@id{-jbr}%
\def\journal@name{Journal of Blockchain Research}%
\def\journal@issn{ISSN: 2643-5748}%
\def\journal@eissn{ISSN: 2643-5756}%
\def\journal@url{\ip@journal@url{jbr}}%
\AtBeginDocument{%
\def\bauthor@style{\sc}%
}%
\global\let\selected@layout\jbr@layout@id
}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions*
%%
%% <<<<<<< OPTIONS <<<<<<<
%%
%%
%% ======= MAIN SETUP =======
%%
\PassOptionsToClass{twoside,leqno}{article}
\LoadClass{article}
%% Load additional macros and modifications for "article.cls"
\ifcase\selected@layout % 0 - main layout
\RequirePackage{ipart-layout-main}
\or % 1 - pamq layout
\RequirePackage{ipart-layout-pamq}
\or % 2 - sii layout
\RequirePackage{ipart-layout-sii}
\or % 3 - jbr layout
\RequirePackage{ipart-layout-jbr}
\or % 4 - bpam layout
\RequirePackage{ipart-layout-bpam}
\fi
%%
%% ======= VTeX SETUP =======
%%
\AtEndOfPackage{%
\IfFileExists{ipart-vtex\journal@id.sty}%
{\RequirePackage{ipart-vtex\journal@id}}%
{\IfFileExists{ipart-vtex.sty}{\RequirePackage{ipart-vtex}}{}}%
\if@load@natbib@
\@ifundefined{load@natbib}{}{\load@natbib}%
\fi
}
\ifdefined\HCode
\let\noxml\@gobble
\else
\let\noxml\@firstofone
\fi
\endinput
%%
%% End of file `ipart.cls'.