-
Notifications
You must be signed in to change notification settings - Fork 0
/
ipbook.cls
250 lines (223 loc) · 6.72 KB
/
ipbook.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
%% This is file `ipbook.cls' (edited `ip-book-cdm.cls' file version)
%%
%% LaTeX 2e class file for the processing of LaTeX2e files
%% of the following International Press book series:
%%
%% Harvard CMSA Series in Mathematics (CMSA)
%% Proceedings of the International Consortium of Chinese Mathematicians (ICCMP)
%% Representation Theory, Automorphic Forms, and Complex Geometry\par A Tribute to Wilfried Schmid (SCHMIDW)
%% Current Developments in Mathematics (CDM)
%% Surveys in Differential Geometry (SDG)
%%
%% published by Internation Press of Boston
%%
%% Macros are maintained by Lolita Tolen\.{e}, VTeX Ltd., Lithuania
%% for International Press, U.S.A.
%% Please submit bugs or your comments to latex-support@vtex.lt
%%
%% This class file loads standard "amsproc.cls" with appropriate settings
%%
%% You are free to use this class file as you see fit, provided
%% that you do not make changes to the file.
%% If you DO make changes, you are required to rename this file.
%%
%% It may be distributed under the terms of the LaTeX Project Public
%% License, as described in lppl.txt in the base LaTeX distribution.
%% Either version 1.0 or, at your option, any later version.
%%
%% \CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%% Digits \0\1\2\3\4\5\6\7\8\9
%% Exclamation \! Double quote \" Hash (number) \#
%% Dollar \$ Percent \% Ampersand \&
%% Acute accent \' Left paren \( Right paren \)
%% Asterisk \* Plus \+ Comma \,
%% Minus \- Point \. Solidus \/
%% Colon \: Semicolon \; Less than \<
%% Equals \= Greater than \> Question mark \?
%% Commercial at \@ Left bracket \[ Backslash \\
%% Right bracket \] Circumflex \^ Underscore \_
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
%%
\NeedsTeXFormat{LaTeX2e}[1995/06/01]
\ProvidesClass{ipbook}
[2024/08/23 v1.10, driver class for IP book series]
%% DEPENDENCIES:
%% - ipbook-vtex.cfg
%% - amsproc.cls
%%
\def\series@id{}%
\DeclareOption{cmsa}{%
\def\series@id{cmsa}%
\def\@publisher@name{International Press of Boston}%
\def\seriesname{CMSA Series in Mathematics}%
}
\DeclareOption{iccmp}{%
\def\series@id{iccmp}%
\def\@publisher@name{International Press of Boston}%
\def\seriesname{Proceedings of the International Consortium of Chinese Mathematicians}%
}
\DeclareOption{schmidw}{%
\def\series@id{schmidw}%
\def\@publisher@name{International Press of Boston}%
\def\seriesname{Representation Theory, Automorphic Forms, and Complex Geometry\par
A Tribute to Wilfried Schmid}%
}
\DeclareOption{singer}{%
\edef\series@id{singer}%
\def\@publisher@name{}%
\def\seriesname{}%
}
\DeclareOption{yau2}{%
\edef\series@id{yau2}%
\def\@publisher@name{}%
\def\seriesname{}%
}
\DeclareOption{cdm}{%
\def\series@id{cdm}%
\def\ISSN{1089-6384}%
\def\seriesname{Current Developments in Mathematics}%
}
\DeclareOption{sdg}{%
\def\series@id{sdg}%
\def\ISSN{1052-9233}%
\def\seriesname{Surveys in Differential Geometry}%
}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{amsproc}}
\PassOptionsToClass{11pt}{amsproc}
\ProcessOptions
\@input{ipbook-vtex.cfg}
\LoadClass{amsproc}[2004/08/06]
\long\def\@@ifstrequal#1#2{%
\begingroup
\edef\etb@tempa{#1}%\edef\etb@tempa{\detokenize{#1}}%
\edef\etb@tempb{#2}%\edef\etb@tempb{\detokenize{#2}}%
\ifx\etb@tempa\etb@tempb
\aftergroup\@firstoftwo
\else
\aftergroup\@secondoftwo
\fi
\endgroup
}
\def\trimwidth{177.8mm}
\def\trimheight{254mm}
\setlength\paperwidth{\trimwidth}
\setlength\paperheight{\trimheight}
\hoffset=-1in
\voffset=-1in
\setlength\evensidemargin{\dimexpr((\trimwidth-\textwidth)/2)}
\setlength\oddsidemargin{\evensidemargin}
\setlength\topmargin{10.63mm}
\setlength{\headsep}{28pt}
\setlength{\footskip}{28pt}
\frenchspacing
\@@ifstrequal{\series@id}{singer}{%
\let\ps@plain\ps@empty
\let\ps@firstpage\ps@empty
\let\ps@headings\ps@empty
\let\ps@myheadings\ps@empty
\pagestyle{empty}%
\thispagestyle{empty}%
}{}%
\@@ifstrequal{\series@id}{yau2}{%
\let\ps@plain\ps@empty
\let\ps@firstpage\ps@empty
\let\ps@headings\ps@empty
\let\ps@myheadings\ps@empty
\pagestyle{empty}%
\thispagestyle{empty}%
}{}%
\@ifundefined{@publisher@name}{\gdef\@publisher@name{International Press}}{}
\def\@publ@year{\year}
\def\publyear#1{\gdef\@publ@year{#1}}
\@@ifstrequal{\series@id}{singer}{%
\copyrightinfo{}{}%
}{%
\@@ifstrequal{\series@id}{yau2}{%
\copyrightinfo{}{}%
}{%
\copyrightinfo{\,\number\@publ@year}{\@publisher@name}%
}%
}%
\def\publname{\csname seriesname\endcsname}%
\newcommand{\setpublicationname}{%
\hrule width 0pt
\vspace{-45pt}
\procart@logo
\vspace{45pt}}
\newcommand{\tocqchapter}[2]{%
\noindent \emph{#1}\hfill #2\par}
\newcommand{\tocqchapterauthor}[3]{%
\noindent \emph{#1}\\
#2\hfill #3\par}
\renewcommand{\tocpart}[2]{%
\vskip 16pt plus 4pt minus 2pt
\noindent #1\newline
\textbf{#2}\par}
\renewcommand{\tocchapter}[3]{%
\vskip 8pt plus 3pt minus 1pt
\noindent \textbf{#1}\\
\textsc{#2}\hfill #3\par}
\setcounter{tocdepth}{1}
\def\startlocaldefs{\makeatletter}
\def\endlocaldefs{\makeatother}
\def\ip@firstpage#1{%
\def\@tempa{#1}%
\ifx\@tempa\@empty
\else
\global\c@firstpage=#1
\global\c@lastpage=#1
\global\c@page=#1
\ignorespaces
\fi
}
\def\ip@lastpage#1{%
\def\@tempa{#1}%
\ifx\@tempa\@empty
\else
\global\c@lastpage=#1
\ignorespaces
\fi
}
\@ifundefined{firstpage}{%
\newcounter{firstpage}
\let\firstpage\ip@firstpage
}{}
\@ifundefined{lastpage}{%
\newcounter{lastpage}
\let\lastpage\ip@lastpage
}{}
\newif\ifgaramond \garamondfalse
\@@ifstrequal{\series@id}{singer}{%
\garamondtrue
}{}%
\@@ifstrequal{\series@id}{yau2}{%
\garamondtrue
}{}%
\ifgaramond
\usepackage[quiet,no-math]{fontspec}%
\setmainfont[
Extension=.otf,
UprightFont=*-Regular,
%UprightFont=*-Medium,
%BoldFont=*-Semibold,
BoldFont=*-Bold,
ItalicFont=*-Italic,
%ItalicFont=*-RegularItalic,
%ItalicFont=*-MediumItalic,
%BoldItalicFont=*-SemiBoldItalic,
BoldItalicFont=*-BoldItalic,
%Scale=MatchLowercase,
]{AGaramondPro}%
%]{EBGaramond}%
%]{CormorantGaramond}%
%\DeclareFontFamily{TU}{AGaramondPro(0)}{}%
%\DeclareFontShape{TU}{AGaramondPro(0)}{m}{it}%
% {<->tipasl10}{}%
\RequirePackage{luafonts}%
\fi
\endinput
%%
%% End of file `ipbook.cls'.