-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlms.cls
2574 lines (2256 loc) · 82.4 KB
/
lms.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
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
%% This is file 'lms.cls'
%%
%% London Mathematical Society document class, version 2.1.9
%%
%% by Ola Tornkvist with modified 2008 journal style by Techset ('Devi')
%% based on LMS.CLS v2.1.8
%% by Ola Tornkvist (a minor modification of version 2.1.7)
%% based on LMS.CLS v2.1.7
%% by Ola Tornkvist with substantial contributions from Alistair Smith
%% based on LMS.CLS v2.1.5
%% by Ola Tornkvist with contributions from Alice Sharp
%% based on LMS.CLS v2.1
%% by Alison Woollatt and Ola Tornkvist
%% based on LMS.STY v0.92 and LMS.CLS v2.0
%% by Mark A. Reed and Alison Woollatt
%%
%% Bugs (in the case of unchanged files) should be reported to
%% production@lms.ac.uk
%%
%% Copyright (c) 2002, 2005 London Mathematical Society
%% Permission is granted to copy and use these macros freely and
%% without restriction. Modifications are permitted, but should be
%% documented and made only to PRIORLY RENAMED copies of the file.
%% The modified version must include the new name in the first
%% line of text (as above) and should acknowledge this TeX document
%% as its source. Any further distribution of this file, modified
%% or otherwise, must carry this copyright notice.
%%
%% \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}[1996/06/01]
\ProvidesClass{lms}[2007/11/20 v2.1.9 London Mathematical
^^JSociety document class]
%%Added on 19/07/06
\setlength{\paperheight}{270mm}%
\setlength{\paperwidth}{192mm}%
%%Added on 19/07/06
\newif\if@cropmarkson \@cropmarksontrue
% class options
\newif\ifblm % bulletin
\newif\ifjlm % journal
\newif\ifplm % proceedings
% Added in version 2.1.5 (OT):
\newif\ifprod % new production style from January 2004 issues
\newif\if@queries % permit margin queries, listed on float page
\newif\if@nocm
% in particular, from lms2ecm.sty style options:
\newif\iffrak % replaces \mathcal with \mathfrak
\newif\ifeuler % replaces \mathcal with Euler font
% End of this addition (OT)
\newif\iffinal % page nos. syle on I proofs.
\DeclareOption{oneside}{\relax}
\DeclareOption{twoside}{\@twosidetrue \@mparswitchtrue}
\DeclareOption{draft}{\setlength\overfullrule{5\p@}}
\DeclareOption{final}{\finaltrue}%%updated on 12/9/06 - devi -page nos. syle on I proofs.
\DeclareOption{onecolumn}{\@twocolumnfalse}
\DeclareOption{twocolumn}{\relax}
\DeclareOption{blm}{\blmtrue}
\DeclareOption{jlm}{\jlmtrue}
\DeclareOption{plm}{\plmtrue}
% Added in version 2.1.5 (OT):
\DeclareOption{queries}{\@queriestrue}
\DeclareOption{nocm}{\@nocmtrue}
\DeclareOption{frak}{\fraktrue}
\DeclareOption{euler}{\eulertrue}
%%Added on 19/07/06
\DeclareOption{a4paper}{\PassOptionsToPackage{a4}{crop}}
\DeclareOption{centre}{\PassOptionsToPackage{center}{crop}}
\DeclareOption{crop}{\PassOptionsToPackage{cam}{crop}\global\@cropmarksontrue}
\DeclareOption{nocrop}{\PassOptionsToPackage{off}{crop}\global\@cropmarksonfalse}
\DeclareOption{info}{\PassOptionsToPackage{info}{crop}}
\DeclareOption{noinfo}{\PassOptionsToPackage{noinfo}{crop}}
% End of this addition (OT)
\ExecuteOptions{twoside,onecolumn}
\ProcessOptions\relax
% Added in version 2.1.9 (OT)
\newcounter{c@FirstPage}
% Added in version 2.1.5 (OT):
\ifblm\prodtrue\else
\ifjlm\prodtrue\else
\ifplm\prodtrue\else
\prodfalse
\fi\fi\fi
% End of this addition (OT)
% stop baselineskips from stretching
\renewcommand\baselinestretch{}
\setlength\lineskip{0\p@}
\setlength\normallineskip{0\p@}
\setlength\normalbaselineskip{0\p@}
\newcommand\quarter@line{3\p@}
\newcommand\half@line{6\p@}
\newcommand\full@line{12\p@}
\newcommand\doublefull@line{18\p@}
\renewcommand\normalsize{%
\@setfontsize\normalsize\@xpt\@xiipt
\abovedisplayskip \half@line \@plus 1\p@ \@minus 1\p@
\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip \quarter@line \@plus 1\p@
\belowdisplayshortskip \abovedisplayskip
\let\@listi\@listI
}
\normalsize
\newcommand\small{%
\@setfontsize\small\@ixpt\@xpt
\abovedisplayskip 5\p@ \@plus 1\p@ \@minus 1\p@
\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip 2.5\p@ \@plus 1\p@
\belowdisplayshortskip \abovedisplayskip
\def\@listi{\leftmargin\leftmargini
\topsep \z@ \@plus 1\p@ \@minus 1\p@
\parsep \z@
\itemsep \parsep}%
}
\newcommand\medium{%
\@setfontsize\medium\@viiipt\@xpt
\abovedisplayskip 5\p@ \@plus 1\p@ \@minus 1\p@
\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip 2.5\p@ \@plus 1\p@
\belowdisplayshortskip \abovedisplayskip
\def\@listi{\leftmargin\leftmargini
\topsep \z@ \@plus 1\p@ \@minus 1\p@
\parsep \z@
\itemsep \parsep}%
}
\newcommand\footnotesize{%
\@setfontsize\footnotesize\@viiipt\@ixpt
\abovedisplayskip 4.5\p@ \@plus 1\p@ \@minus 1\p@
\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip \z@ \@plus 1\p@
\belowdisplayshortskip \abovedisplayskip
\def\@listi{\leftmargin\leftmargini
\topsep \z@ \@plus 1\p@ \@minus 1\p@
\parsep \z@
\itemsep \parsep}%
}
\newcommand{\@viiptv}{7.5}%7.5pt, mock small caps for running head
\DeclareMathSizes{\@viiptv}{\@viiptv}{\@vipt}{\@vpt}
\newcommand\mocksmallcaps{\@setfontsize\mocksmallcaps\@viiptv{12}}
\newcommand\scriptsize{\@setfontsize\scriptsize\@viipt\@viiipt}
\newcommand\tiny{\@setfontsize\tiny\@vpt\@vipt}
\newcommand\addresssize{\@setfontsize\addresssize\@xpt\@xipt}
\newcommand\large{\@setfontsize\large\@xiipt\@xivpt}
\newcommand\Large{\@setfontsize\Large\@xivpt{16\p@}}
\newcommand\LARGE{\@setfontsize\LARGE\@xviipt{21\p@}}
\newcommand\huge{\@setfontsize\huge\@xxpt\@xxvpt}
\newcommand\Huge{\@setfontsize\Huge\@xxvpt{30\p@}}
% copyright sign
\newcommand{\@viptvpt}{6.5}%
\DeclareMathSizes{\@viptvpt}{\@viptvpt}{\@vipt}{\@vpt}
% Added in version 2.1.5 (OT):
\if@nocm
% old CUP copyright symbol
\newcommand\copyrightsize{\@setfontsize\copyrightsize\@viptvpt{7}}% 6.5/7
\newcommand\LMScopyright{%
\raisebox{.8pt}{\hbox{\kern 2pt\raisebox{-.5pt}{%
\copyrightsize C}\kern -2pt\raisebox{1.8pt}{\circle{7}}\kern -2pt}}}
\else
% Modify LMS copyright symbol for Computer Modern font
\newcommand\copyrightsize{\@setfontsize\copyrightsize\@vpt{7}}% 5/7
\newcommand\LMScopyright{%
\raisebox{.9pt}{\hbox{\kern 2.1pt\raisebox{.1pt}{%
\copyrightsize C}\kern -2.1pt\raisebox{1.8pt}{\circle{6}}\kern -2pt}}}
\fi
% End of this addition (OT)
\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
\DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
\DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
\DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}
\setlength\marginparwidth{2.0cm}
\setlength\marginparsep{10\p@}
\setlength\headheight{7\p@}%%changed according to the trimsize on 19/07/06
% Added OT v. 2.1.9
\iffinal%
\setlength\topmargin{17.5mm}%
\addtolength\topmargin{-1in}%
\else
\setlength\topmargin{\z@}
\fi
\setlength\headsep{26\p@}%20
\setlength\topskip{8\p@}
\setlength\footskip{18\p@}
\setlength\textheight{50\baselineskip}%51lines
\addtolength\textheight{\topskip}%
\setlength\textwidth{144mm}
\setlength\columnsep{10\p@}
\setlength\columnseprule{\z@}
\newlength{\insidemargin}
\setlength{\insidemargin}{26mm}%%20mm
\setlength\oddsidemargin{\insidemargin}
\addtolength\oddsidemargin{-1in} % subtract out the 1 inch driver margin
\setlength\@tempdima{\paperwidth} \addtolength\@tempdima{-\textwidth}
\addtolength\@tempdima{-\insidemargin} \setlength\evensidemargin{\@tempdima}
\addtolength\evensidemargin{-1in}
% Added in version 2.1.5 (OT):
%\ifprod
% Page positioning of typeset page (from lms2esym.sty)
% \setlength\oddsidemargin\z@
% \setlength\evensidemargin\z@
% \setlength\topmargin\z@
%\else
% Page positioning in author manuscripts
% \setlength\oddsidemargin{2pc}
% \setlength\evensidemargin{2pc}
% \setlength\topmargin{3pc}
%\fi
% End of this addition (OT)
% Further additions in version 2.1.5 are all at the end of this class file.
\DeclareTextFontCommand\textsfi{\usefont{OT1}{cmss}{m}{sl}}
\DeclareMathAlphabet\mathsfi {OT1}{cmss}{m}{sl}
\DeclareTextFontCommand\textsfb{\usefont{OT1}{cmss}{bx}{n}}
\DeclareMathAlphabet\mathsfb {OT1}{cmss}{bx}{n}
\DeclareTextFontCommand\textsfbi{\usefont{OT1}{cmss}{m}{sl}}
\DeclareMathAlphabet\mathsfbi {OT1}{cmss}{m}{sl}
\DeclareMathSymbol{\varGamma}{\mathord}{letters}{"00}
\DeclareMathSymbol{\varDelta}{\mathord}{letters}{"01}
\DeclareMathSymbol{\varTheta}{\mathord}{letters}{"02}
\DeclareMathSymbol{\varLambda}{\mathord}{letters}{"03}
\DeclareMathSymbol{\varXi}{\mathord}{letters}{"04}
\DeclareMathSymbol{\varPi}{\mathord}{letters}{"05}
\DeclareMathSymbol{\varSigma}{\mathord}{letters}{"06}
\DeclareMathSymbol{\varUpsilon}{\mathord}{letters}{"07}
\DeclareMathSymbol{\varPhi}{\mathord}{letters}{"08}
\DeclareMathSymbol{\varPsi}{\mathord}{letters}{"09}
\DeclareMathSymbol{\varOmega}{\mathord}{letters}{"0A}
\setlength\footnotesep{10pt}
\setlength{\skip\footins}{\doublefull@line \@plus \full@line \@minus 1\p@}
\setlength\floatsep{12\p@ \@plus \half@line \@minus 1\p@}
\setlength\textfloatsep{18\p@ \@plus \half@line \@minus 3\p@}
\setlength\intextsep{18\p@ \@plus \quarter@line \@minus 2\p@}
\setlength\dblfloatsep{12\p@ \@plus \half@line \@minus 2\p@}
\setlength\dbltextfloatsep{18\p@ \@plus 4.5\p@ \@minus 3\p@}
\setlength\@fptop{\z@ \@plus 0fil}
\setlength\@fpsep{\full@line \@plus 0fil}
\setlength\@fpbot{\z@ \@plus 3fil}
\setlength\@dblfptop{\z@ \@plus 0fil}
\setlength\@dblfpsep{\full@line \@plus 0fil}
\setlength\@dblfpbot{\z@ \@plus 3fil}
\setlength\marginparpush{6\p@}
\setlength\parskip{\z@}
\setlength\parindent{10pt}
\setlength\partopsep{\z@ \@plus 1\p@}
\@lowpenalty 51
\@medpenalty 151
\@highpenalty 301
\@beginparpenalty -\@lowpenalty
\@endparpenalty -\@lowpenalty
\@itempenalty -\@lowpenalty
%\displaywidowpenalty 100 %%added on 190706
%\predisplaypenalty 10000%%added on 190706
%\postdisplaypenalty 2500%%added on 190706
%\clubpenalty\z@ % replaced v.2.1.6
%\widowpenalty\@M % replaced v.2.1.6
% Fix v.2.1.6 Alistair Smith: retune parameters
\hyphenpenalty=800
\doublehyphendemerits=10000
\lefthyphenmin=3
\brokenpenalty=10000
\displaywidowpenalty=0
\clubpenalty=10000
\widowpenalty=10000
\newcommand\partname{Part}
\newcommand\part{\addvspace{18\p@ \@plus 3\p@}%
\secdef\@part\@spart}
\def\@part[#1]#2{%
\ifnum \c@secnumdepth >\m@ne
\refstepcounter{part}%
\addcontentsline{toc}{section}{{\partname}\ \thepart\ifx #1\@empty\else.\enspace #1\fi}%
\else
\addcontentsline{toc}{section}{{#1}}%
\fi
{\vspace*\z@\centering
\ifnum \c@secnumdepth >\m@ne
\normalfont\rmfamily{\sc {\partname}\ \thepart. }%
\fi
\normalfont\rmfamily{\sc #2}\markboth{}{}\par}%
\nobreak %\vskip 3ex \@afterheading
\addvspace{18\p@} \@afterheading
}
\def\@spart#1{%
{\centering\normalfont\rmfamily{\sc #1}\par}%
\nobreak %\vskip 3ex \@afterheading
\addvspace{18\p@} \@afterheading
}
\newcommand\section{%
\@startsection{section}{1}{\z@}%
{24\p@ \@plus 5\p@}{6\p@}%
{%\vspace*\z@%
\normalsize\normalfont\itshape\centering}%
}
\def\dropheader{\eject\vspace*{-12pt}}
%Use for lowering subsection header (or any header) when it occurs
%at the top of an even-numbered page.
\def\subsection{\@startsection{subsection}{2}{\z@}%
{12\p@ \@plus 3\p@}{6\p@}%
{\addvspace\full@line\normalsize\normalfont\itshape}}
\newcommand\subsubsection{\@startsection{subsubsection}{3}{\parindent}
{\full@line \@plus 6\p@ \@minus 3\p@}{-\parindent}
{\normalsize\normalfont\itshape\noindent}%
}
\newcommand\paragraph{\@startsection{paragraph}{4}{\parindent}
{\full@line \@plus 6\p@ \@minus 3\p@}{-\parindent}
{\normalsize\normalfont\itshape\noindent}%
}
\newcommand\subparagraph{\@startsection{subparagraph}{4}{\parindent}
{\half@line \@plus 3.25\p@ \@minus 1\p@}{-0.5em}
{\normalsize\normalfont\rmfamily}%
}
\def\@seccntformat#1{% FROM LATEX.LTX
\normalfont\rmfamily\csname the#1\endcsname.\enskip%
}
% Fix v.2.1.6 OT: single appendix without caption to have slanted heading
\def\@secappcntformat#1{%
\ifappendix%
\ifoneappendix%
\ifx\apphe@d\@empty%
\sl\appendixname%
\else%
\rm\appendixname%
\fi%
\else%
\rm\appendixname~%
\fi%
\fi%
\ifoneappendix\else \csname the#1\endcsname\relax\fi% NOTE: used for ordinary sections too
\ifx\apphe@d\@empty \else .\fi\enskip%
}
% end of fix v.2.1.6
%
% obsolete code to allow 1/2 line space above section head at top of page
%\def\leavegap{% removed in v.2.1.6
%\newcommand\mysection{% removed in v.2.1.6
% Added in v.2.1.6 to allow adjustment of spacing in subsection and subsubsection
% heading
\newlength\subsectionspaceadjust
\newlength\subsubsectionspaceadjust
\setlength\subsectionspaceadjust{-.5em}
\setlength\subsubsectionspaceadjust{-.5em}
%
% \@sect{1NAME}{2LEVEL}{3INDENT}{4BEFORESKIP}{5AFTERSKIP}{6STYLE}[ARG1]{ARG2}
\def\@sect#1#2#3#4#5#6[#7]#8{%
\def\emptybracket{}%
\def\contsofeight{#8}%
\ifnum #2>\c@secnumdepth
\let\@svsec\@empty%
\else \refstepcounter{#1}
\def\apphe@d{#8}%
\protected@edef\@svsec{{\noexpand\reset@font\noexpand\itshape
\ifnum #2=1% if a section
\@secappcntformat{#1}\relax
\else
\@seccntformat{#1}\relax%
\ifnum #2=\thr@@ % if a subsubsection
\ifx\apphe@d\@empty%
\hspace*{\subsubsectionspaceadjust}% v.2.1.6 OT: correct space for uncaptioned subsubsection
\fi%
\fi
\ifnum #2=\tw@ % if a subsection
\if@runonsubsections% v.2.1.6 OT: fix for run-on subsections
\ifx\apphe@d\@empty%
\hspace*{\subsectionspaceadjust}% v.2.1.6 OT: correct space for uncaptioned subsection
\fi%
\fi%
\fi
\fi
}
}\fi
\@tempskipa #5\relax
\ifdim \@tempskipa>\z@
\begingroup #6\relax
\@hangfrom{\hskip #3\relax\@svsec}{\interlinepenalty \@M #8\par}
\endgroup
\csname #1mark\endcsname{#7}%
%
\ifnum #2=\@ne
\addcontentsline{toc}{#1}{\ifnum #2>\c@secnumdepth\else%
\ifappendix
\ifoneappendix
\appendixname% OT v.2.1.6.\enspace #7%
\else
\appendixname~\csname the#1\endcsname% OT v.2.1.6.\enspace #7%
\fi
% Fix v.2.1.6 OT: omit full stop and \enspace in ToC when there is no caption
\ifx\apphe@d\@empty\else.\enspace #7\fi%
% End of fix v.2.1.6
\else\protect\numberline{\csname the#1\endcsname%
% Fix v.2.1.6 OT: omit full stop in ToC when there is no caption.
\ifx\apphe@d\@empty\else.\fi}#7\fi% again
\fi}
\else
\addcontentsline{toc}{#1}{\ifnum #2>\c@secnumdepth \else
\protect\numberline{\csname the#1\endcsname\ifx\apphe@d\@empty\else.\fi}#7\fi}% again
\fi
%
\else
\def\@svsechd{#6\hskip #3\@svsec #8%
\ifx\emptybracket\contsofeight
\hskip -0.5em
\fi
\csname #1mark\endcsname% add dot
{#7}\addcontentsline{toc}{#1}{\ifnum #2>\c@secnumdepth\else
\protect\numberline{\csname the#1\endcsname\ifx\apphe@d\@empty\else.\fi}#7\fi}}
\fi
\@xsect{#5}}
\newif\ifappendix
\newif\ifoneappendix
\newcommand\appendixname{Appendix}
\newcommand\oneappendix{\global\oneappendixtrue \appendix\def\thesection{the Appendix}}
\newcommand\appendix{\par
\@addtoreset{figure}{section}%
\@addtoreset{table}{section}%
\setcounter{section}\z@
\setcounter{equation}\z@
\def\thesection{\@Alph\c@section}%
\def\thesubsection{\@Alph\c@section.\@arabic\c@subsection}%
\def\thesubsubsection{\@Alph\c@section.\@arabic\c@subsubsection}%
\def\theequation{\@Alph\c@section.\@arabic\c@equation}%
\def\thefigure{\@Alph\c@section.\@arabic\c@figure}%
\def\thetable{\@Alph\c@section.\@arabic\c@table}%
\global\appendixtrue
}
\newlength\@indentskip
\newlength\smallindent
\newlength\@footindent
\newlength\@leftskip
\setlength\@indentskip{3pc}
\setlength\smallindent{\parindent}
\setlength\@footindent{\smallindent}
\setlength\@leftskip{1pc}
\setlength\leftmargini{27.7pt}
% this fits perfectly with default labels e.g. (1)
\setlength\leftmarginii{1.5pc}
\setlength\leftmarginiii{1.5pc}
\setlength\leftmarginiv{1.5pc}
\setlength\leftmarginv{1pc}
\setlength\leftmarginvi{1pc}
\setlength\leftmargin{\leftmargini}
\setlength\labelsep{0.5em}
\setlength\labelwidth{\leftmargini}
\addtolength\labelwidth{-\labelsep}
\newcommand\makeRLlabel[1]{\rlap{{\normalfont\rmfamily #1}}\hss}
\newcommand\makeRRlabel[1]{\hss\llap{{\normalfont\rmfamily #1}}}
\def\@listI{\leftmargin\leftmargini
\parsep \z@ %\@plus 1\p@ \@minus 1\p@
\topsep \z@ %\@plus 1\p@ \@minus 1\p@
\itemsep \z@ %\@plus 1\p@ \@minus 1\p@
\let\makelabel=\makeRRlabel
}
\let\@listi\@listI
\@listi
\def\@listii{\leftmargin\leftmarginii
\labelwidth\leftmarginii
\advance\labelwidth-\labelsep
\topsep \z@ %\@plus 1\p@ \@minus 1\p@
\parsep \z@
\itemsep \parsep
\let\makelabel\makeRRlabel
}
\def\@listiii{\leftmargin\leftmarginiii
\labelwidth\leftmarginiii\advance\labelwidth-\labelsep
\topsep \z@ %\@plus 1\p@ \@minus 1\p@
\parsep \z@
\partopsep \z@
\itemsep \parsep
\let\makelabel\makeRRlabel
}
\def\@listiv{\leftmargin\leftmarginiv
\labelwidth\leftmarginiv\advance\labelwidth-\labelsep
\let\makelabel\makeRRlabel
}
\def\@listv{\leftmargin\leftmarginv
\labelwidth\leftmarginv\advance\labelwidth-\labelsep
\let\makelabel\makeRRlabel
}
\def\@listvi{\leftmargin\leftmarginvi
\labelwidth\leftmarginvi\advance\labelwidth-\labelsep
\let\makelabel\makeRRlabel
}
%itemize environment modified by OT 14/11/02
\renewenvironment{itemize} % FROM LATEX.LTX
{\ifnum \@itemdepth >\thr@@ \@toodeep
\else
\advance\@itemdepth\@ne
\edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
\labelsep .5em \itemindent\z@
\par
\expandafter
\list
\csname \@itemitem\endcsname
{\settowidth\labelwidth{%
\ifcase\@itemdepth\or\labelitemi\or\labelitemii\or\labelitemiii%
\or\labelitemiv\else\@toodeep\fi}
\leftmargin\labelwidth \advance\leftmargin\labelsep
\ifnum\@itemdepth=1\advance\leftmargin\parindent\fi%
\let\makelabel\makeRRlabel}%
\fi}
{\endlist\@intheoremlikefalse}
\newcommand\labelitemi{\normalfont\rmfamily--}
\newcommand\labelitemii{\hskip 2pt$\m@th\ast$}
\newcommand\labelitemiii{\hskip 2pt$\m@th\cdot$}
\newcommand\labelitemiv{\hskip 2pt$\m@th\cdot$}
% stored indents useful for enumerate and flushenumerate
\newlength\@itemindenti
\newlength\@itemindentii
\newlength\@itemindentiii
\newlength\@itemindentiv
\renewenvironment{enumerate} % FROM LATEX.LTX
{\ifnum \@enumdepth >\thr@@ \@toodeep\else
\advance\@enumdepth\@ne
\edef\@enumctr{enum\romannumeral\the\@enumdepth}%
\fi
\labelsep .5em
\@ifnextchar [{\@enumeratetwo}{\@enumerateone}}
{\endlist}% if a new para starts after this, leave a blank line
\def\@enumeratetwo[#1]{
%modified by OT 15/11/02; allows nesting with flushenumerate
\par
\expandafter
\list
\csname label\@enumctr\endcsname
{\settowidth\labelwidth{{\normalfont\rmfamily(#1)}}%
\leftmargin\labelwidth \advance\leftmargin\labelsep
\usecounter{\@enumctr}%
\ifcase\@enumdepth\or
\advance\leftmargin\parindent
\@itemindenti\z@
\or
% adjust for parent environment, which may be flushenumerate
\advance\leftmargin\@itemindenti
\@itemindentii\z@
\or
\advance\leftmargin\@itemindentii
\@itemindentiii\z@
\or%
\advance\leftmargin\@itemindentiii
\@itemindentiv\z@
\fi
\itemindent\z@
\let\makelabel\makeRRlabel}%
}
\def\@enumerateone{%
%modified by OT 15/11/02; allows nesting with flushenumerate
\par
\expandafter
\list
\csname label\@enumctr\endcsname
{\if@intheoremlike
\settowidth\labelwidth{{\normalfont\rmfamily(%
\ifcase\@enumdepth\or iii\or b\or 9\or C\else 9\fi)}}
\else
\settowidth\labelwidth{{\normalfont\rmfamily(%
\ifcase\@enumdepth\or 9\or iii\or b\or C\else 9\fi)}}
\fi
\leftmargin\labelwidth \advance\leftmargin\labelsep
\usecounter{\@enumctr}%
\ifcase\@enumdepth\or
\advance\leftmargin\parindent
\@itemindenti\z@
\or
% adjust for parent environment, which may be flushenumerate
\advance\leftmargin\@itemindenti
\@itemindentii\z@
\or
\advance\leftmargin\@itemindentii
\@itemindentiii\z@
\or%
\advance\leftmargin\@itemindentiii
\@itemindentiv\z@
\fi
\itemindent\z@
\let\makelabel\makeRRlabel}%
}
\newenvironment{flushenumerate}
%created by OT 15/11/02; allows nesting with enumerate
{\ifnum \@enumdepth >\thr@@ \@toodeep\else
\advance\@enumdepth\@ne
\edef\@enumctr{enum\romannumeral\the\@enumdepth}%
\fi
\labelsep .5em
\@ifnextchar [{\@flushenumeratetwo}{\@flushenumerateone}}
{\endlist}% if a new para starts after this, leave a blank line
\def\@flushenumeratetwo[#1]{
%created by OT 15/11/02; allows nesting with enumerate
\par
\expandafter
\list
\csname label\@enumctr\endcsname
{\settowidth\labelwidth{{\normalfont\rmfamily(#1)}}%
\itemindent\labelwidth \advance\itemindent\labelsep
\usecounter{\@enumctr}%
\ifcase\@enumdepth\or
\leftmargin\z@
\advance\itemindent\parindent
\@itemindenti\itemindent
\or
% adjust for parent environment, which may also be flushenumerate
\leftmargin\@itemindenti
\@itemindentii\itemindent
\or
\leftmargin\@itemindentii
\@itemindentiii\itemindent
\or
\leftmargin\@itemindentiii
\@itemindentiv\itemindent
\fi
\let\makelabel\makeRRlabel}%
}
\def\@flushenumerateone{%
%created by OT 15/11/02; allows nesting with enumerate
\par
\expandafter
\list
\csname label\@enumctr\endcsname
{\if@intheoremlike
\settowidth\labelwidth{{\normalfont\rmfamily(%
\ifcase\@enumdepth\or iii\or b\or 9\or C\else 9\fi)}}
\else
\settowidth\labelwidth{{\normalfont\rmfamily(%
\ifcase\@enumdepth\or 9\or iii\or b\or C\else 9\fi)}}
\fi
\itemindent\labelwidth \advance\itemindent\labelsep
\usecounter{\@enumctr}%
\ifcase\@enumdepth\or
\leftmargin\z@
\advance\itemindent\parindent
\@itemindenti\itemindent
\or
% adjust for parent environment, which may also be flushenumerate
\leftmargin\@itemindenti
\@itemindentii\itemindent
\or
\leftmargin\@itemindentii
\@itemindentiii\itemindent
\or
\leftmargin\@itemindentiii
\@itemindentiv\itemindent
\fi
\let\makelabel\makeRRlabel}%
}
\newcommand\labelenumi {\theenumi}
\newcommand\labelenumii {\theenumii}
\newcommand\labelenumiii{\theenumiii}
\newcommand\labelenumiv {\theenumiv}
\renewcommand\theenumi {\textup{(\@arabic\c@enumi)}}
\renewcommand\theenumii {\textup{(\@roman\c@enumii)}}
\renewcommand\theenumiii{\textup{(\@alph\c@enumiii)}}
\renewcommand\theenumiv {\textup{(\@Alph\c@enumiv)}}
\renewcommand\p@enumii {\theenumi}
\renewcommand\p@enumiii{\theenumi\theenumii}
\renewcommand\p@enumiv {\p@enumiii\theenumiii}
\newcommand\changeenumer@tes{% for math environments
\renewcommand\theenumi {\textup{(\@roman\c@enumi)}}%
\renewcommand\theenumii {\textup{(\@alph\c@enumii)}}%
\renewcommand\theenumiii{\textup{(\@arabic\c@enumiii)}}%
\renewcommand\theenumiv {\textup{(\@Alph\c@enumiv)}}%
}
\newcommand*\descriptionlabel[1]{\hspace\labelsep\normalfont\bfseries #1}
\newenvironment{description}
{\list{}{\labelwidth\z@ \itemindent-\leftmargin
\let\makelabel\descriptionlabel}}
{\endlist}
\newenvironment{unnum}
{\list{}{\labelwidth\z@
\leftmargin \parindent
\itemindent-\parindent}}
{\endlist}
\newenvironment{verse}
{\let\\=\@centercr
\list{}{\itemsep\z@
\itemindent -\@indentskip
\listparindent \itemindent
\rightmargin\leftmargin
\advance\leftmargin \@indentskip}\item[]}
{\endlist}
\newenvironment{quotation}
{\list{}{\listparindent \smallindent
\itemindent\listparindent
\leftmargin2.5pc\rightmargin\leftmargin
\parsep \z@ \@plus 1\p@}\item[]\small\normalfont}
{\endlist}
\newenvironment{quote}
{\list{}{\partopsep 3\p@ \@plus 2\p@ \@minus 1\p@ \parsep\z@\leftmargin 30pt%
\rightmargin\leftmargin\listparindent 7\p@}%
\addvspace{2\p@}\item[]\small\normalfont\noindent\ignorespaces}
{\endlist\par}
\newif\ifextraline
\newif\ifobituary
\def\@emptyfootnote{\footnotetext{}} % Change v.2.1.7: default text again empty, as in v.2.1.5
\newcommand\journalfootnotes{% if options blm, jlm, plm are chosen
\@footnoteone
\ifobituary\@footnoteobit\fi
\@footnotetwo
\ifextraline\@myfootnote\fi%
}
\newcommand\defaultfootnotes{% default
\@emptyfootnote
\ifobituary\@footnoteobit\fi
\@footnotetwo
\ifextraline\@myfootnote\fi%
}
\newcommand\maketitle{\par
\begingroup
\newpage
\global\@topnum\z@
\@maketitle\thispagestyle{title}%
\label{FirstPage}% added v.2.1.6 Alistair Smith
\setcounter{c@FirstPage}{\value{page}}% added v.2.1.9 OT
\@thanks%
\endgroup
\ifblm\journalfootnotes
\else\ifjlm\journalfootnotes
\else\ifplm\journalfootnotes
\else\defaultfootnotes
\fi
\fi
\fi
\setcounter{footnote}\z@
\global\let\@maketitle\relax
\global\let\@thanks\@empty
\global\let\maketitle\relax
\global\let\thanks\relax
\addvspace{18\p@}%
}
\def\@maketitle{\newpage
\vspace*{10.5\p@}%
{\parindent\z@\centering\sloppy%
{\Large\@title\par}%
\vspace{24\p@}%
{\normalsize\fontsize{11}{13}\selectfont%
\@author\par}%
\ifdedic@tion
\vspace{0.5\baselineskip}
\textit{\@dedication}%
\par
\fi}%
}
\newif\ifpaperno
\papernofalse
\newcommand\paperno[1]{\papernotrue\gdef\@paperno{#1}}
\def\@paperno{}
\newcommand{\abstractname}{Abstract}
\newif\iflastp@gedone % added v.2.1.6 OT to stop running head after last page
\lastp@gedonefalse %
\newif\if@onlineabstract
\@onlineabstractfalse
\newenvironment{abstract}
{\if@onlineabstract% do this only if abstract appears at end of paper.
% current page is the last page of the paper proper
% fix v.2.1.6 OT: ensure correct running head on last page
% and prevent insertion of running head on query page or abstract page.
\thispagestyle{lmslast}\label{LastPage}\global\lastp@gedonetrue%
% end fix v.2.1.6
\newpage\thispagestyle{title}\vspace*{10.5\p@}%
{\parindent\z@\centering\sloppy%
{\large\normalfont\@title\par}%
\vspace{24\p@}%
{\normalsize\normalfont%
\@author\par}}\ignorespaces%
\gdef\abstractname{Abstract for On-Line Publication}
\vfill
\fi
\par{\centering\normalfont\scshape
\abstractname\\[4\p@]}
\list{}{\topsep\z@ \leftmargin12pt\rightmargin12pt \itemindent\z@
\labelwidth\z@ \labelsep\z@ \listparindent 10pt
\parindent 10pt}\item
\if@onlineabstract\normalsize%
\else\small\fboxsep6pt%
\fi%
\ignorespaces}%
{\endlist
\if@onlineabstract% do this only if abstract appears at end of paper.
\vfill
\ifpaperno
\vspace{18\p@}{\centering{\LARGE
\ifplm PLMS \fi
\ifblm BLMS \fi
\ifjlm JLMS \fi
\@paperno\par}}
\fi%
\else %normal cases - abstract at the beginning
\addvspace{18\p@}
\fi}
\mark{{}{}}
\renewcommand\author{\@ifnextchar [{\@authortwo}{\@authorone}}
\gdef\@author{\mbox{}}
% Fix v.2.1.6 Alistair Smith for author names: ensure uppercase
% Uses 'textcase' package by David Carlisle (included below)
% Modified v.2.1.6 OT: 'and' lowercase on titlepage, uppercase in running header
% Modified v.2.1.6 OT: to allow line breaks by \\ in the author string
%%% OT v.2.1.6: added macros for 'and' and to remove unwanted spaces.
\def\eat@token#1{}
\def\eat@space{\@ifnextchar\ {\eat@token}{}} % eats any '\ ' space
%%% OT v.2.1.9: revised the following line
\newcommand\titlepage@and{{and} \noexpand\eat@space}%
\newcommand\runningheader@and{AND \noexpand\eat@space}%
\def\@authortwo[#1]#2{\gdef\@author{%
\begingroup\def\and{\titlepage@and}\def\\{\break}{#2}\endgroup}%
\gdef\@shortauthor{\begingroup\def\and{\runningheader@and}\def\\{}\MakeTextUppercase{#1}\endgroup}}
\def\@authorone#1{\gdef\@author{%
\begingroup\def\and{\titlepage@and}\def\\{\break}{#1}\endgroup}%
\gdef\@shortauthor{\begingroup\def\and{\runningheader@and}\def\\{}\MakeTextUppercase{#1}\endgroup}}
\newcommand\shortauthor[1]{%
\gdef\@shortauthor{\begingroup\def\and{\runningheader@and}\def\\{}\MakeTextUppercase{#1}\endgroup}}
\gdef\@shortauthor{\@author}
% end Fix v.2.1.6
%
\newif\ifdedic@tion
\newcommand\dedication[1]{\gdef\@dedication{#1}\dedic@tiontrue}
\gdef\@dedication{}
\renewcommand\title{\@ifnextchar [{\@titletwo}{\@titleone}}
\gdef\@title{\mbox{}}
% Fix v.2.1.6 Alistair Smith for title: ensure text uppercase, maths mixed case
% Uses 'textcase' package by David Carlisle (included below)
% Modified v.2.1.6 OT: to allow line breaks by \\ in the title
\def\@titleone#1{\gdef\@title{\begingroup\def\\{\break}{#1}\endgroup}%
\gdef\@shorttitle{\begingroup\def\\{}\MakeTextUppercase{#1}\endgroup}}
\def\@titletwo[#1]#2{\gdef\@title{\begingroup\def\\{\break}{#2}\endgroup}%
\gdef\@shorttitle{\begingroup\def\\{}\MakeTextUppercase{#1}\endgroup}}
\newcommand\shorttitle[1]{\gdef\@shorttitle{\begingroup\def\\{}\MakeTextUppercase{#1}\endgroup}}
\gdef\@shorttitle{\@title}
% end of fix v.2.1.6 Alistair Smith
%
\newcommand\jlmseries[1]{\gdef\@jlmseries{#1}}
\gdef\@jlmseries{(2)}
\newcommand\plmseries[1]{\gdef\@plmseries{#1}}
\gdef\@plmseries{(3)}
%Added v.2.1.6 OT
\newcommand\issn[1]{\gdef\@issn{#1}}
\ifblm
\gdef\@issn{00246093}
\else
\ifjlm
\gdef\@issn{00246107}
\else
\ifplm
\gdef\@issn{00246115}
\fi
\fi
\fi
% end v.2.1.6
\newcommand\volume[1]{\gdef\@volume{#1}}
\gdef\@volume{00}
%Added v.2.1.6 Alistair Smith
\def\@startpage{\pageref{FirstPage}}
\def\@endpage{\pageref{LastPage}}
\def\startpage#1{\gdef\@startpage{#1}\c@page#1}
\def\endpage#1{\gdef\@endpage{#1}}
\newcommand\pagerange[1]{\gdef\@pagerange{#1}}
\gdef\@pagerange{\@startpage--\@endpage}
% end v.2.1.6 addition
%
\newcommand\copyedit[1]{\gdef\@copyedit{\raisebox{12pt}[6pt][6pt]{\hspace*{-85pt}\fontsize{8}{9}\selectfont Copy Edited by: #1}}}
\gdef\@copyedit{}
\newcommand\pubyear[1]{\def\@pubyear{#1}}
\edef\@pubyear{\number\year}
% upright integrals
%% \int will be upright (display mode)
%% \smallint will be upright (text mode)
%% \oldint will be slanted (display/text mode)
%% (\oldsmallint available, but not necessary)
\let\oldintop\intop
\def\oldint{\oldintop\nolimits}
\let\oldsmallint\smallint