Debian Codegraph @

texmf-dist/doc/latex/pinlabel/src/gtpart.cls

raw
1 %%%%%%%%%%%%%%%%% gtpart.cls %%%%%%%%%%%%%%%%%%
2 %
3 % Format file for articles written in LaTeX for publication in
4 % Geometry & Topology Publications. This version inputs hyperref
5 % and uses Times fonts where possible. It is for use from 2006
6 % onwards. It is common to GT, AGT and GTM, uses MSP metadata
7 % format and duplicates as far as practicable MSP style.
8 %
9 % Colin Rourke, December 2006
10 %
11 % For full instructions see gtpartdoc.pdf (available from the same
12 % directory as this file).
13 %
14 % (gtart.cls v1.6 -- hyperref + times + MSP metadata)
15 %
16 %% Check for fairly recent version of latex2e :
17 %
18 \NeedsTeXFormat{LaTeX2e}[1994/12/01]
19 %
20 \LoadClass[11pt]{article}
21 \usepackage{amsthm,amssymb}
22 \usepackage[leqno]{amsmath}
23 \newif\ifmicrotype
24 \DeclareOption{microtype}{\microtypetrue}
25 \ProcessOptions\relax
26 \AtBeginDocument{%
27 \def\tempaa{\thesection.\arabic{equation}}%
28 \ifx\theequation\tempaa
29 \def\theequation{\thesection\hbox{--}\arabic{equation}}%
30 \fi
31 \ifmicrotype
32 \RequirePackage{microtype}%
33 \DeclareMicrotypeAlias{mnt}{ptm}%
34 \fi
35 \DeclareMathSizes{10} {10} {7}{6}% from msp.cls
36 \DeclareMathSizes{10.95}{10.95}{8}{6}% from msp.cls
37 }
38 %
39 % Times fonts and Times math symbols
40 %
41 \renewcommand{\sfdefault}{cmr}
42 \DeclareFontFamily{OT1}{ptm}{}
43 \DeclareFontShape{OT1}{ptm}{m}{n} { <-> ptmr}{}
44 \DeclareFontShape{OT1}{ptm}{m}{it}{ <-> ptmri}{}
45 \DeclareFontShape{OT1}{ptm}{m}{sl}{ <->ptmro}{}
46 \DeclareFontShape{OT1}{ptm}{m}{sc}{ <-> ptmrc}{}
47 \DeclareFontShape{OT1}{ptm}{b}{n} { <-> ptmb}{}
48 \DeclareFontShape{OT1}{ptm}{b}{it}{ <-> ptmbi}{}
49 \DeclareFontShape{OT1}{ptm}{bx}{n} {<->ssub * ptm/b/n}{}
50 \DeclareFontShape{OT1}{ptm}{bx}{it}{<->ssub * ptm/b/it}{}
51 \def\rmdefault{ptm}
52 \DeclareSymbolFont{bold}{OT1}{ptm}{b}{n}
53 \DeclareMathAlphabet{\mathbf}{OT1}{ptm}{b}{n}
54 \DeclareMathAlphabet{\mathrm}{OT1}{ptm}{m}{n}
55 \let\bBB=\mathbb
56 \let\Bbb=\mathbb
57 %
58 \DeclareFontFamily{OT1}{psy}{}
59 \DeclareFontShape{OT1}{psy}{m}{n}{ <-> s * [0.9] psyr}{}
60 %
61 \DeclareFontFamily{OMS}{ptm}{}
62 \DeclareFontShape{OMS}{ptm}{m}{n}{ <8> <9> <10> gen * cmsy }{}
63 \DeclareFontFamily{OMS}{cmtt}{}
64 \DeclareFontShape{OMS}{cmtt}{m}{n}{ <8> <9> <10> gen * cmsy }{}
65
66 \SetSymbolFont{operators}{normal}{OT1}{ptm}{m}{n}
67 \SetSymbolFont{operators}{bold}{OT1}{ptm}{b}{n}
68 %
69 \DeclareSymbolFont{emsy}{OT1}{ptm}{m}{it}
70 \DeclareSymbolFont{emsr}{OT1}{ptm}{m}{n}
71 \DeclareSymbolFont{emcmr}{OT1}{cmr}{m}{n}
72 \DeclareSymbolFont{emsymb}{OT1}{psy}{m}{n}
73 %
74 \DeclareMathSymbol a{\mathalpha}{emsy}{"61}
75 \DeclareMathSymbol b{\mathalpha}{emsy}{"62}
76 \DeclareMathSymbol c{\mathalpha}{emsy}{"63}
77 \DeclareMathSymbol d{\mathalpha}{emsy}{"64}
78 \DeclareMathSymbol e{\mathalpha}{emsy}{"65}
79 \DeclareMathSymbol f{\mathalpha}{emsy}{"66}
80 \DeclareMathSymbol g{\mathalpha}{emsy}{"67}
81 \DeclareMathSymbol h{\mathalpha}{emsy}{"68}
82 \DeclareMathSymbol i{\mathalpha}{emsy}{"69}
83 \DeclareMathSymbol j{\mathalpha}{emsy}{"6A}
84 \DeclareMathSymbol k{\mathalpha}{emsy}{"6B}
85 \DeclareMathSymbol l{\mathalpha}{emsy}{"6C}
86 \DeclareMathSymbol m{\mathalpha}{emsy}{"6D}
87 \DeclareMathSymbol n{\mathalpha}{emsy}{"6E}
88 \DeclareMathSymbol o{\mathalpha}{emsy}{"6F}
89 \DeclareMathSymbol p{\mathalpha}{emsy}{"70}
90 \DeclareMathSymbol q{\mathalpha}{emsy}{"71}
91 \DeclareMathSymbol r{\mathalpha}{emsy}{"72}
92 \DeclareMathSymbol s{\mathalpha}{emsy}{"73}
93 \DeclareMathSymbol t{\mathalpha}{emsy}{"74}
94 \DeclareMathSymbol u{\mathalpha}{emsy}{"75}
95 \DeclareMathSymbol v{\mathalpha}{emsy}{"76}
96 \DeclareMathSymbol w{\mathalpha}{emsy}{"77}
97 \DeclareMathSymbol x{\mathalpha}{emsy}{"78}
98 \DeclareMathSymbol y{\mathalpha}{emsy}{"79}
99 \DeclareMathSymbol z{\mathalpha}{emsy}{"7A}
100 \DeclareMathSymbol A{\mathalpha}{emsy}{"41}
101 \DeclareMathSymbol B{\mathalpha}{emsy}{"42}
102 \DeclareMathSymbol C{\mathalpha}{emsy}{"43}
103 \DeclareMathSymbol D{\mathalpha}{emsy}{"44}
104 \DeclareMathSymbol E{\mathalpha}{emsy}{"45}
105 \DeclareMathSymbol F{\mathalpha}{emsy}{"46}
106 \DeclareMathSymbol G{\mathalpha}{emsy}{"47}
107 \DeclareMathSymbol H{\mathalpha}{emsy}{"48}
108 \DeclareMathSymbol I{\mathalpha}{emsy}{"49}
109 \DeclareMathSymbol J{\mathalpha}{emsy}{"4A}
110 \DeclareMathSymbol K{\mathalpha}{emsy}{"4B}
111 \DeclareMathSymbol L{\mathalpha}{emsy}{"4C}
112 \DeclareMathSymbol M{\mathalpha}{emsy}{"4D}
113 \DeclareMathSymbol N{\mathalpha}{emsy}{"4E}
114 \DeclareMathSymbol O{\mathalpha}{emsy}{"4F}
115 \DeclareMathSymbol P{\mathalpha}{emsy}{"50}
116 \DeclareMathSymbol Q{\mathalpha}{emsy}{"51}
117 \DeclareMathSymbol R{\mathalpha}{emsy}{"52}
118 \DeclareMathSymbol S{\mathalpha}{emsy}{"53}
119 \DeclareMathSymbol T{\mathalpha}{emsy}{"54}
120 \DeclareMathSymbol U{\mathalpha}{emsy}{"55}
121 \DeclareMathSymbol V{\mathalpha}{emsy}{"56}
122 \DeclareMathSymbol W{\mathalpha}{emsy}{"57}
123 \DeclareMathSymbol X{\mathalpha}{emsy}{"58}
124 \DeclareMathSymbol Y{\mathalpha}{emsy}{"59}
125 \DeclareMathSymbol Z{\mathalpha}{emsy}{"5A}
126 \DeclareMathSymbol{\bullet}{\mathalpha}{emsymb}{"B7}
127 \DeclareMathSymbol{\regis}{\mathalpha}{emsymb}{"D2}
128 \def\Bullet{\leavevmode\unkern{$\m@th\bullet$}\kern.32em\ignorespaces}
129 \def\Regis{\leavevmode\raise.5ex\hbox{$\m@th\regis$}}
130 \DeclareMathSymbol +{\mathbin}{emcmr}{`+}
131 \DeclareMathSymbol ={\mathrel}{emcmr}{`=}
132 \DeclareMathSymbol{\Gamma}{\mathalpha}{emcmr}{"00}
133 \DeclareMathSymbol{\Delta}{\mathalpha}{emcmr}{"01}
134 \DeclareMathSymbol{\Theta}{\mathalpha}{emcmr}{"02}
135 \DeclareMathSymbol{\Lambda}{\mathalpha}{emcmr}{"03}
136 \DeclareMathSymbol{\Xi}{\mathalpha}{emcmr}{"04}
137 \DeclareMathSymbol{\Pi}{\mathalpha}{emcmr}{"05}
138 \DeclareMathSymbol{\Sigma}{\mathalpha}{emcmr}{"06}
139 \DeclareMathSymbol{\Upsilon}{\mathalpha}{emcmr}{"07}
140 \DeclareMathSymbol{\Phi}{\mathalpha}{emcmr}{"08}
141 \DeclareMathSymbol{\Psi}{\mathalpha}{emcmr}{"09}
142 \DeclareMathSymbol{\Omega}{\mathalpha}{emcmr}{"0A}
143 \DeclareMathSizes{7.6}{8}{6}{5}
144 %
145 % some accents and useful symbols (from L'Ensiegnment class file)
146 %
147 \def\`#1{{\accent"12 #1}} % grave accent
148 \def\H#1{{\accent"CD #1}} % double acute accent
149 \chardef\J="11
150 \def\j{{\sf\J}} % j without dot
151 \chardef\AA="C8 % Angstrom
152 \chardef\gbp="A3 % pound sign
153 \chardef\TIL="81 % tilde on line
154 \chardef\endash="B1
155 \chardef\emdash="D0
156 \chardef\pourmille="BD % %sign
157 \chardef\aoben="E3 % ^a
158 \chardef\ooben="EB % ^o
159 \def\S{\leavevmode\unkern{\char"A7}\kern.1em\ignorespaces}
160 \def\D#1{{\accent"C7 #1}} % overdot
161 \DeclareMathAccent{\dot}{\mathalpha}{operators}{"C7} % ditto math mode
162 %
163 % double diamond brackets, usage: \og TEXTE \fg or {\og}TEXTE{\fg}
164 %
165 \def\og{{\char"AB}\kern.15em}
166 \def\fg{\relax\ifhmode\unskip\kern.15em\fi{\char"BB}}
167 %
168 % Polish cedilla:
169 %
170 \def\cedpol#1{\setbox0=\hbox{#1}\ifdim\ht0=1ex \accent"CE #1%
171 \else{\ooalign{\hidewidth\char"CE\hidewidth\crcr\unhbox0}}\fi}
172 %
173 % endgame (MUST COME BEFORE hyperref)
174 %
175 \AtEndDocument{{\small\parskip 0pt\vskip11pt minus 5pt\relax
176 {\sl \def\\{\futurelet\next\nocommawithnl}\def\nocommawithnl
177 {\ifx\next\newline\else\unskip,\space\ignorespaces\fi}
178 \theaddress\par}
179 {\rightskip0pt plus .4\hsize
180 {\def\tempab{}\tt\def~{\lower3.5pt\hbox{\char'176}}\def\_{\char'137}%
181 \ifx\theemail\tempab\else
182 \vskip5pt minus 3pt\theemail\par\fi
183 \ifx\theurl\tempab\else
184 \vskip5pt minus 3pt\theurl\par\fi}
185 \vskip11pt minus 5pt
186 \def\tempab{}\ifx\receiveddate\tempab\else Received:\qua\receiveddate\fi
187 \ifx\reviseddate\tempab\else\qquad Revised:\qua \reviseddate\fi\par}}}
188 %
189 % hyperref stuff
190 %
191 \usepackage{hyperref}
192 \hypersetup{%
193 bookmarksnumbered=true,%
194 bookmarks=true,%
195 colorlinks=true,%
196 linkcolor=blue,%
197 citecolor=blue,%
198 filecolor=blue,%
199 menucolor=blue,%
200 pagecolor=blue,%
201 urlcolor=blue,%
202 pdfnewwindow=true,%
203 pdfstartview=FitBH}
204 %
205 % \arxiv and \MR are for use in the biblio eg:
206 % \arxiv{math.GT/0102334} \MR{2002j:32027}
207 %
208 \def\arxiv#1{\relax\ifhmode\unskip\qua\fi
209 \href{http://arxiv.org/abs/#1}%
210 {\tt arXiv:\penalty -100\unskip#1}}
211 \let\arXiv\arxiv
212 \def\MR#1{\relax\ifhmode\unskip\qua\fi
213 \href{http://www.ams.org/mathscinet-getitem?mr=#1}{MR#1}}
214 %
215 \def\xox#1{\csname xx#1\endcsname} %%% used by
216 \let\xxarXiv\arxiv\let\xxMR\MR %%% gtart.bst
217 \def\xxZBL#1{}
218 \def\xxJFM#1{}
219 \def\@url#1{{\tt\def~{\lower3.5pt\hbox{\char'176}}\def\_{\char'137}#1}}
220 \let\fullref\autoref
221 %
222 % \autoref is very crude. It uses counters to distinguish environments
223 % so that if say {lemma} uses the {theorem} counter, then autrorefs
224 % which should come out Lemma X.Y in fact come out Theorem X.Y. To
225 % correct this give each its own counter eg:
226 % \newtheorem{theorem}{Theorem}[section]
227 % \newtheorem{lemma}{Lemma}[section]
228 % and then equate the counters by commands like:
229 % \makeatletter
230 % \let\c@lemma\c@theorem
231 % \makeatother
232 %
233 % To work correctly the environment name must have a corrresponding
234 % \XXXautorefname defined. The following command does the job:
235 %
236 \def\makeautorefname#1#2{\expandafter\def\csname#1autorefname\endcsname{#2}}
237 %
238 % Some standard autorefnames. If the environment name for an autoref
239 % you need is not listed below, add a similar line to your TeX file:
240 %
241 \makeautorefname{equation}{Equation}%
242 \makeautorefname{footnote}{footnote}%
243 \makeautorefname{item}{item}%
244 \makeautorefname{figure}{Figure}%
245 \makeautorefname{table}{Table}%
246 \makeautorefname{part}{Part}%
247 \makeautorefname{appendix}{Appendix}%
248 \makeautorefname{chapter}{Chapter}%
249 \makeautorefname{section}{Section}%
250 \makeautorefname{subsection}{Section}%
251 \makeautorefname{subsubsection}{Section}%
252 \makeautorefname{paragraph}{Paragraph}%
253 \makeautorefname{subparagraph}{Paragraph}%
254 \makeautorefname{theorem}{Theorem}%
255 \makeautorefname{theo}{Theorem}%
256 \makeautorefname{thm}{Theorem}%
257 \makeautorefname{addendum}{Addendum}%
258 \makeautorefname{addend}{Addendum}%
259 \makeautorefname{add}{Addendum}%
260 \makeautorefname{maintheorem}{Main theorem}%
261 \makeautorefname{mainthm}{Main theorem}%
262 \makeautorefname{corollary}{Corollary}%
263 \makeautorefname{corol}{Corollary}%
264 \makeautorefname{coro}{Corollary}%
265 \makeautorefname{cor}{Corollary}%
266 \makeautorefname{lemma}{Lemma}%
267 \makeautorefname{lemm}{Lemma}%
268 \makeautorefname{lem}{Lemma}%
269 \makeautorefname{sublemma}{Sublemma}%
270 \makeautorefname{sublem}{Sublemma}%
271 \makeautorefname{subl}{Sublemma}%
272 \makeautorefname{proposition}{Proposition}%
273 \makeautorefname{proposit}{Proposition}%
274 \makeautorefname{propos}{Proposition}%
275 \makeautorefname{propo}{Proposition}%
276 \makeautorefname{prop}{Proposition}%
277 \makeautorefname{property}{Property}
278 \makeautorefname{proper}{Property}
279 \makeautorefname{scholium}{Scholium}%
280 \makeautorefname{step}{Step}%
281 \makeautorefname{conjecture}{Conjecture}%
282 \makeautorefname{conject}{Conjecture}%
283 \makeautorefname{conj}{Conjecture}%
284 \makeautorefname{question}{Question}
285 \makeautorefname{questn}{Question}
286 \makeautorefname{quest}{Question}
287 \makeautorefname{ques}{Question}
288 \makeautorefname{qn}{Question}
289 \makeautorefname{definition}{Definition}%
290 \makeautorefname{defin}{Definition}%
291 \makeautorefname{defi}{Definition}%
292 \makeautorefname{def}{Definition}%
293 \makeautorefname{dfn}{Definition}%
294 \makeautorefname{notation}{Notation}
295 \makeautorefname{nota}{Notation}
296 \makeautorefname{notn}{Notation}
297 \makeautorefname{remark}{Remark}%
298 \makeautorefname{rema}{Remark}%
299 \makeautorefname{rem}{Remark}%
300 \makeautorefname{rmk}{Remark}%
301 \makeautorefname{rk}{Remark}%
302 \makeautorefname{remarks}{Remarks}%
303 \makeautorefname{rems}{Remarks}%
304 \makeautorefname{rmks}{Remarks}%
305 \makeautorefname{rks}{Remarks}%
306 \makeautorefname{example}{Example}%
307 \makeautorefname{examp}{Example}%
308 \makeautorefname{exmp}{Example}%
309 \makeautorefname{exam}{Example}%
310 \makeautorefname{exa}{Example}%
311 \makeautorefname{algorithm}{Algorith}%
312 \makeautorefname{algo}{Algorith}%
313 \makeautorefname{alg}{Algorith}%
314 \makeautorefname{axiom}{Axiom}%
315 \makeautorefname{axi}{Axiom}%
316 \makeautorefname{ax}{Axiom}%
317 \makeautorefname{case}{Case}%
318 \makeautorefname{claim}{Claim}%
319 \makeautorefname{clm}{Claim}%
320 \makeautorefname{assumption}{Assumption}%
321 \makeautorefname{assumpt}{Assumption}%
322 \makeautorefname{conclusion}{Conclusion}%
323 \makeautorefname{concl}{Conclusion}%
324 \makeautorefname{conc}{Conclusion}%
325 \makeautorefname{condition}{Condition}%
326 \makeautorefname{condit}{Condition}%
327 \makeautorefname{cond}{Condition}%
328 \makeautorefname{construction}{Construction}%
329 \makeautorefname{construct}{Construction}%
330 \makeautorefname{const}{Construction}%
331 \makeautorefname{cons}{Construction}%
332 \makeautorefname{criterion}{Criterion}%
333 \makeautorefname{criter}{Criterion}%
334 \makeautorefname{crit}{Criterion}%
335 \makeautorefname{exercise}{Exercise}%
336 \makeautorefname{exer}{Exercise}%
337 \makeautorefname{exe}{Exercise}%
338 \makeautorefname{problem}{Problem}%
339 \makeautorefname{problm}{Problem}%
340 \makeautorefname{probm}{Problem}%
341 \makeautorefname{prob}{Problem}%
342 \makeautorefname{solution}{Solution}%
343 \makeautorefname{soln}{Solution}%
344 \makeautorefname{sol}{Solution}%
345 \makeautorefname{summary}{Summary}%
346 \makeautorefname{summ}{Summary}%
347 \makeautorefname{sum}{Summary}%
348 \makeautorefname{operation}{Operation}%
349 \makeautorefname{oper}{Operation}%
350 \makeautorefname{observation}{Observation}%
351 \makeautorefname{observn}{Observation}%
352 \makeautorefname{obser}{Observation}%
353 \makeautorefname{obs}{Observation}%
354 \makeautorefname{ob}{Observation}%
355 \makeautorefname{convention}{Convention}%
356 \makeautorefname{convent}{Convention}%
357 \makeautorefname{conv}{Convention}%
358 \makeautorefname{cvn}{Convention}%
359 \makeautorefname{warning}{Warning}%
360 \makeautorefname{warn}{Warning}%
361 \makeautorefname{note}{Note}%
362 \makeautorefname{fact}{Fact}%
363 %
364 % *** End of hyperref stuff ***
365 %
366 % Basic layout :
367 %
368 % get print centerpage:
369 %
370 \headsep 23pt
371 \footskip 35pt
372 \hoffset -4truemm
373 \voffset 12.5truemm
374 %
375 \newskip\stdskip % standard vertical space
376 \stdskip=6.6pt plus3.3pt minus3.3pt
377 %
378 \setlength{\textheight}{7.5in}
379 \setlength{\textwidth}{5.2in}
380 \flushbottom
381 \setlength{\parindent}{0pt}
382 \setlength{\parskip}{\stdskip}
383 \setlength{\medskipamount}{\stdskip}
384 \setlength{\mathsurround}{0.8pt}
385 \setlength{\labelsep}{0.75em}
386 \newcommand{\stdspace}{\hskip 0.75em plus 0.15em \ignorespaces}
387 \let\qua\stdspace % useful abbreviation
388 \renewcommand{\baselinestretch}{1.05} % open up a tad to match msp
389 %
390 % Some style commands (\ppar is for principal paragraph breaks, \sh is
391 % for subheadings and \rk for remarks etc -- see also theorem style
392 % below ) :
393 %
394 \newcommand{\ppar}{\par\goodbreak\medskip}
395 \newcommand{\sh}[1]{\penalty-800\ppar{\bf #1}\par\medskip\nobreak}
396 \newcommand{\rk}[1]{\ppar{\bf #1}\stdspace}
397 %
398 %
399 % Theorem style. There are two recommended styles :
400 %
401 % plain : for theorems, corollaries etc with heading bold
402 % and left justified, optional note bracketed in roman type
403 % and statement in slanted type.
404 %
405 % definition : (alias remark) for definitions, remarks etc with
406 % heading bold and left justified, optional note unbracketed in
407 % slanted type and statement in roman type.
408 %
409 %
410 % Redefine the amsthm styles plain, definition and remark to GTP style:
411 %
412 \newtheoremstyle{plain}{13.2pt plus6.6pt minus6.6pt}{6.6pt plus3.3pt minus3.3pt}%
413 {\sl}{}{\bf}{}{0.75em}{\thmname{#1}\thmnumber{ #2}\thmnote{\rm\stdspace(#3)}}
414 %
415 \newtheoremstyle{definition}{13.2pt plus6.6pt minus6.6pt}{6.6pt plus3.3pt minus3.3pt}%
416 {\rm}{}{\bf}{}{0.75em}{\thmname{#1}\thmnumber{ #2}\thmnote{\rm\stdspace(#3)}}
417 %
418 \newtheoremstyle{remark}{13.2pt plus6.6pt minus6.6pt}{6.6pt plus3.3pt minus3.3pt}%
419 {\rm}{}{\bf}{}{0.75em}{\thmname{#1}\thmnumber{ #2}\thmnote{\rm\stdspace(#3)}}
420 %
421 % Default theorem style :
422 \theoremstyle{plain}
423 %
424 % adapt the amsthm proof environment to GTP style
425 %
426 \renewenvironment{proof}[1][\proofname]{\par
427 \pushQED{\qed}%
428 \normalfont \topsep\stdskip
429 \trivlist
430 \item[\hskip\labelsep
431 \bf#1]\ignorespaces
432 }{%
433 \popQED\endtrivlist\@endpefalse
434 }
435 % Knuth's \square macro :
436 %
437 \def\sqr#1#2{{\vcenter{\vbox{\hrule height.#2pt
438 \hbox{\vrule width.#2pt height#1pt \kern#1pt \vrule width.#2pt}
439 \hrule height.#2pt}}}}
440 %
441 \def\sq{\sqr55} % A small square for end-of-proofs.
442 \def\qedsymbol{$\sqr55$} % (Define other size squares by varing the
443 % % the two numbers.)
444 %
445 % some useful abbreviations :
446 %
447 \newcommand{\co}{\mskip0.5mu\colon\thinspace} % Colon for maps.
448 \newcommand{\np}{\newpage} % Forced page break (new page).
449 \newcommand{\nl}{\hfil\break} % New line.
450 \newcommand{\cl}{\centerline} % Centerline
451 %
452 % metadata items:
453 %
454 % title
455 %
456 \def\title{\@ifnextchar[\doubletitle\singletitle}
457 \def\doubletitle[#1]#2{\def\thetitle{#2}\def\theshorttitle{#1}}
458 \def\singletitle#1{\def\thetitle{#1}\def\theshorttitle{#1}}
459 %
460 % author(s)
461 %
462 \def\author{\@ifnextchar[\doubleauthor\singleauthor}
463 \def\doubleauthor[#1]#2{\edef\previousauthors{\theauthors}
464 \ifx\theauthors\relax\def\theauthors{#2}\else
465 \def\theauthors{\previousauthors\par#2}\fi
466 \edef\previousrootauthors{\rootauthors}
467 \ifx\rootauthors\relax
468 \ifx\lastauthor\relax\def\lastauthor{#1}\def\theshortauthors{#1}
469 \else\edef\rootauthors{\lastauthor}\def\lastauthor{#1}
470 \def\theshortauthors{\rootauthors\ and #1}\fi
471 \else\edef\rootauthors{\previousrootauthors, \lastauthor}
472 \def\lastauthor{#1}\def\theshortauthors{\rootauthors\ and #1}\fi}
473 \def\singleauthor#1{\doubleauthor[#1]{#1}}
474 %
475 % address
476 %
477 \def\address#1{{\let\\\relax\let\newline\par\xdef\previousaddresses{\theaddress}}
478 \ifx\theaddress\relax\def\theaddress{#1}\else
479 \def\theaddress{\previousaddresses\par\vskip 3pt minus 2pt\par#1}\fi}
480 %
481 % email
482 %
483 \def\email#1{{\let\_\relax\let~\relax\let\href\relax
484 \xdef\previousemails{\theemail}}%
485 \def\tempab{}\def\tempba{#1}\ifx\tempab\tempba\else
486 \ifx\theemail\tempab{}\def\theemail{\href{mailto:#1}{#1}}\else
487 \gdef\theemail{\previousemails, \href{mailto:#1}{#1}}\fi\fi}
488 %
489 % url %%% needs linking
490 %
491 \def\urladdr#1{{\let\_\relax\let~\relax\let\href\relax\xdef\previousurls{\theurl}}
492 \def\tempab{}\def\tempba{#1}\ifx\tempab\tempba\else
493 \ifx\theurl\tempab\def\theurl{\href{#1}{#1}}\else
494 \def\theurl{\previousurls, \href{#1}{#1}}\fi\fi}
495 %
496 % main abstract
497 %
498 \long\def\abstract#1\end%
499 {\long\gdef\theabstract{#1}\end}
500 \let\endabstract\relax
501 %
502 % other abstracts (used just for publication)
503 %
504 \newenvironment{asciiabstract}{\eatabstract}{}%
505 \newenvironment{webabstract}{\eatabstract}{}%
506 \newenvironment{htmlabstract}{\eatabstract}{}%
507 \newenvironment{mathmlabstract}{\eatabstract}{}%
508 \long\def\eatabstract#1\end{\end}
509 %
510 % subject class (from msp.cls--simplified)
511 %
512 \def\subject#1#2#3{%
513 \def\@tempa{#1}\def\@tempb{primary}%
514 \ifx\@tempa\@tempb %%%% primary class
515 \ifx\@primclass\relax
516 \def\@primclass{#3}%
517 \else
518 \edef\old@primclass{\@primclass}\def\@primclass{\old@primclass, #3}%
519 \fi
520 \else\ifx\@secclass\relax% everything not marked primary is taken
521 \def\@secclass{#3}% to be secondary
522 \else
523 \edef\old@secclass{\@secclass}\def\@secclass{\old@secclass, #3}%
524 \fi
525 \fi
526 }
527 \def\@message#1{\immediate\write16{#1}}
528 \def\subjclass#1{\@message{ }
529 \@message{\string\subjclass\space is not supported; use
530 \string\subject}\@message{You can use an
531 arbitrary number of commands of the form}
532 \@message{\string\subject{primary}{MSC2000}{99X88},}
533 \@message{\string\subject{secondary}{MSC2000}{77X66}... etc.}
534 \@message{ }}
535 %
536 % keywords (only used for publication)
537 %
538 \def\keyword#1{\relax}
539 \def\keywords#1{\@message{ }\@message{\string\keywords\space not supported; use
540 \string\keyword}\@message{You can use an
541 arbitrary number of commands of the form}
542 \@message{\string\keyword{keyword},}
543 \@message{\string\keyword{key phrase}... etc.}\@message{ }}
544 %
545 % dedicatory and thanks
546 %
547 \def\dedicatory#1{\def\thededicatory{#1}\@message{ }
548 \@message{Dedications are only permitted in exceptional cases.}
549 \@message{Please consult the managing editors before adding a dedication.}
550 \@message{Thanks etc should be given as acknowledgements at the end}
551 \@message{of your introduction or at the end of the paper.}
552 \@message{ }\relax}
553 %
554 \def\thanks#1{\@message{ }
555 \@message{Thanks should not appear on the title page.}
556 \@message{Please give thanks as acknowledgements at the end of your
557 introduction}\@message{or at the end of the paper.}
558 \@message{ }\relax}
559 %
560 %
561 % set metadata items to \relax to initialise macros :
562 %
563 \let\thetitle\relax\let\theauthors\relax
564 \let\theaddress\relax\let\theemail\relax\let\theurl\relax
565 \let\theabstract\relax\let\theshorttitle\relax
566 \let\theshortauthors\relax\let\rootauthors\relax
567 \let\lastauthor\relax\let\@primclass\relax
568 \let\@secclass\relax\let\thededicatory\relax
569 \def\theemail{}\def\theurl{}
570 %
571 % metadata items used just for publication
572 %
573 \def\givenname#1{\relax}
574 \def\surname#1{\relax}
575 \def\doi#1{\relax}
576 \def\MR#1{\relax}
577 \def\Zbl#1{\relax}
578 \def\issuenumber#1{\relax}
579 \def\publishedonline#1{\relax}
580 \def\proposed#1{\relax}
581 \def\seconded#1{\relax}
582 \def\corresponding#1{\relax}
583 \def\editor#1{\relax}
584 \def\version#1{\relax}
585 \def\arxivreference#1{\relax}
586 \def\arxivpassword#1{\relax}
587 %
588 % metadata items used in running heads etc
589 %
590 \def\volumenumber#1{\relax}
591 \def\volumename#1{\relax}
592 \def\publicationyear#1{\relax}
593 \def\papernumber#1{\relax}
594 \def\startpage#1{\relax}
595 \def\endpage#1{\relax}
596 \def\received#1{\def\receiveddate{#1}}
597 \def\revised#1{\def\reviseddate{#1}}
598 \let\reviseddate\relax
599 \def\accepted#1{\def\accepteddate{#1}}
600 \def\published#1{\relax}
601 %
602 % defaults for mockup
603 %
604 \newif\ifmockup
605 \AtBeginDocument{\ifmockup
606 \def\thevolumenumber{XX}
607 \def\thepublicationyear{20XX}
608 \def\publisheddate{XX Xxxember 20XX}
609 \def\thestartpage{1001}
610 \def\theendpage{999}\else
611 \def\thestartpage{1}\fi}
612 \received{}
613 \revised{}
614 \def\thedoi{10.2140/\stitle.\thepublicationyear.\thevolumenumber.\thestartpage}
615 %
616 % start of definition of \maketitle
617 %
618 \long\def\maketitle{
619 \count0=\thestartpage\
620 \vglue 10pt plus 3pt minus 3pt %% top space
621 %
622 % title :
623 %
624 {\parskip=0pt\leftskip 0pt plus 1fil{\def\\{\par\smallskip}\Large
625 \bf\thetitle}\par\vskip 3pt}
626
627 \medskip
628 %
629 % authors :
630 %
631 {\parskip=0pt\leftskip 0pt plus 1fil{\sc\theauthors}
632 \par}
633
634 \vglue 20pt plus 3pt minus 3pt
635 %
636 % abstract :
637 %
638 {\small\leftskip 25pt\rightskip 25pt\parskip 4pt plus 2pt
639 \theabstract
640 %
641 % msc classes :
642 %
643 \vglue 7pt plus 2pt
644 \href{http://www.ams.org/mathscinet/search/mscdoc.html?code=\ifx\@primclass\relax\@secclass\else\@primclass\ifx\@secclass\relax\else,(\@secclass)\fi\fi}{{\ifx\@primclass\relax\@secclass\else\@primclass\ifx\@secclass\relax\else; \@secclass\fi\fi}}
645 %
646 % dedicatory
647 %
648 \ifx\thededicatory\relax\else
649 \vglue 7ptplus 2pt\it\thededicatory\fi\par\medskip}}
650 %
651 % end of definition of \maketitle
652 %
653 % journal titles in GTP style
654 %
655 \def\gt{{\mathsurround=0pt\it $\cal G\mskip-2mu$eometry \&\
656 $\cal T\!\!$opology}} % The journal title in recommended style
657 \def\gtm{{\mathsurround=0pt\it $\cal G\mskip-2mu$eometry \&\
658 $\cal T\!\!$opology $\cal M\mskip-1mu$onographs}} % for monographs
659 \def\agt{{\mathsurround=0pt\it$\cal A\mskip-.7mu$lgebraic \&\
660 $\cal G\mskip-2mu$eometric $\cal T\!\!$opology}} % AGT
661 \def\jtitle{\gt} %default
662 \def\stitle{gt} %default
663 \def\gtart{\mockuptrue}
664 \def\agtart{\def\jtitle{\agt} %%% sets AGT as the journal title
665 \def\stitle{agt}\mockuptrue}
666 \def\gtmonart{\def\jtitle{\gtm} %%% sets GTM as the journal title
667 \def\stitle{gtm}\mockuptrue}
668 %
669 % headline and footline
670 %
671 \def\@oddhead{{\small\it\ifnum\count0=\thestartpage
672 \ifmockup\jtitle\ \thevolumenumber\ (\thepublicationyear)
673 \thestartpage--\theendpage
674 \hfill {\bf\number\count0}\fi\else\ifodd\count0
675 \def\\{\unskip\space}\ifx\theshorttitle\relax \thetitle \else\theshorttitle\fi\hfill
676 {\bf\number\count0}\else{\bf\number\count0}
677 \hfill\ifx\theshortauthors\relax
678 \theauthors\else\theshortauthors\fi\fi\fi}}
679 \let\@evenhead\@oddhead
680 \def\@oddfoot{{\ifmockup\small\it\ifnum\count0=\thestartpage
681 {\it Published: \publisheddate}\hfil
682 \rm\href{http://dx.doi.org/\thedoi}{DOI: \thedoi}
683 \else \jtitle\ \thevolumenumber\ (\thepublicationyear)\hfill\fi\fi}}
684 \let\@evenfoot\@oddfoot
685 %
686 % hacks to get various items of style correct :
687 %
688 % set footnotes in 10pt type:
689 %
690 \let\@footnote@\footnote
691 \def\footnote#1{\@footnote@{\small #1}}
692 \let\fnote\footnote % useful abbreviation for \footnote
693 %
694 % set captions in 10pt type (hack of excerpt from hyperref.sty) :
695 %
696 \long\def\@caption#1[#2]#3{%
697 \hyper@makecurrent{\@captype}%
698 \par\addcontentsline{\csname ext@#1\endcsname}{#1}{%
699 \protect\numberline{\csname the#1\endcsname}{\ignorespaces #2}%
700 }%
701 \begingroup
702 \@parboxrestore
703 \if@minipage
704 \@setminipage
705 \fi
706 \small
707 \@makecaption{\csname fnum@#1\endcsname}{%
708 \ignorespaces
709 \ifHy@nesting
710 \hyper@@anchor{\@currentHref}{#3}%
711 \else
712 \Hy@raisedlink{\hyper@@anchor{\@currentHref}{\relax}}#3%
713 \fi
714 }%
715 \par
716 \endgroup
717 }
718 %
719 % command to suppress the colon in captions (hack from article.cls) :
720 %
721 \def\nocolon{%
722 \long\def\@makecaption##1##2{%
723 \vskip\abovecaptionskip
724 \sbox\@tempboxa{##1##2}%
725 \ifdim \wd\@tempboxa >\hsize
726 ##1##2\par
727 \else
728 \global \@minipagefalse
729 \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
730 \fi
731 \vskip\belowcaptionskip}}
732 %
733 % automate colon suppression
734 %
735 \let\oldcaption\caption
736 \def\caption{\@ifnextchar[\doublecaption\singlecaption}
737 \def\doublecaption[#1]#2{\oldcaption[#1]{#2}}
738 \def\singlecaption#1{\def\tempab{}\def\tempba{#1}\ifx\tempab\tempba
739 \nocolon\oldcaption{#1}\else\oldcaption{#1}\fi}
740 %
741 % set displayskips to correct values :
742 %
743 \AtBeginDocument{\setlength{\abovedisplayskip}{\stdskip}
744 \setlength{\belowdisplayskip}{\stdskip}}
745 %
746 % get the biblio style correct (10pt with small gaps):
747 %
748 \let\@thebibliography@\thebibliography
749 \def\thebibliography#1 {\@thebibliography@{999}\small\parskip0pt
750 plus2pt\relax\addcontentsline{toc}{section}{Bibliography}}
751 %
752 %
753 % Get item spacing reasonable :
754 %
755 \let\@itemize@\itemize
756 \def\itemize{\@itemize@\parskip 0pt\relax}
757 \def\@listi{\leftmargin28.5pt\parsep 0pt\topsep 0pt
758 \itemsep4pt plus3pt minus2pt}
759 \let\@listI\@listi
760 \@listi
761 %
762 % get enumeration labels to use \rm
763 %
764 \renewcommand{\labelenumi}{{\rm (\theenumi)}}
765 \renewcommand{\labelenumii}{{\rm (\theenumii)}}
766 \renewcommand{\labelenumiii}{{\rm (\theenumiii)}}
767
768 % and spacing to match \itemize
769 %
770 \let\@enumerate@\enumerate
771 \def\enumerate{\@enumerate@\parskip 0pt\relax}
772 %
773 % misc definitions for comptibility with amsthm, msp.cls etc
774 %
775 \def\bysame{\leavevmode\hbox to3em{\hrulefill}\thinspace}
776 \def\figdir{figs}
777 \def\makeop#1{\expandafter\def\csname #1\endcsname{\mathop{\mathrm{#1}}\nolimits}}
778 \let\wtilde\widetilde
779 \let\wwtilde\widetilde
780 \let\what\widehat
781 \let\wwhat\widehat
782 \let\wbar\bar
783 \let\wwbar\overline
784 \let\proved\qedhere
785 \def\Q{\mathbb{Q}}
786 \def\R{\mathbb{R}}
787 \def\C{\mathbb{C}}
788 %\def\N{\mathbb{N}}
789 \def\Z{\mathbb{Z}}
790 \let\disablesubscriptcorrection\relax
791 \newenvironment{nopartheorem}{}{}
792 \def\half{\tfrac12}
793 %
794 \def\eqalign#1{%
795 \null\,\vcenter{\openup\jot\m@th
796 \ialign{\strut\hfil$\displaystyle{##}$&$\displaystyle{{}##}$\hfil
797 \crcr#1\crcr}}\,}
798 \def\eqalignbot#1{%
799 \null\,\vbox{\openup\jot\m@th
800 \ialign{\strut\hfil$\displaystyle{##}$&$\displaystyle{{}##}$\hfil
801 \crcr#1\crcr}}\,}
802 \def\eqaligntop#1{%
803 \null\,\vtop{\openup\jot\m@th
804 \ialign{\strut\hfil$\displaystyle{##}$&$\displaystyle{{}##}$\hfil
805 \crcr#1\crcr}}\,}
806 \def\eqalignn#1{%
807 \null\,\vcenter{\openup\jot\m@th
808 \ialign{\strut\hfil$\displaystyle{##}$&$\displaystyle{{}##}$\hfil
809 &\hfil$\displaystyle{##}$&$\displaystyle{{}##}$\hfil\crcr#1\crcr}}\,}
810 \endinput
811 %
812 % History of gtart.cls:
813 % Version 1.1: 14 December 97
814 % Version 1.2: (update for AGT) 18 October 00
815 % Version 1.3: \gtart, \makegtmontitle and \gtmonart added 5.01.01
816 % Version 1.4: hyperef version (new file name: gtart_h.cls 15.02.04)
817 % Version 1.5: hyperef+times+MSP m-data (new file name: gtpart.cls 20.12.06)
818 % Version 1.6: bug-fix for hyperref 6.75 (26.11.07)