-
Notifications
You must be signed in to change notification settings - Fork 0
/
imr.sty
111 lines (97 loc) · 3.56 KB
/
imr.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
99
100
101
102
103
104
105
106
107
108
109
110
111
%
% This is the style guide to generate papers for the IMR
% conference.
%
%%Set text widths
\setlength\textwidth {6.5in}
\setlength\textheight {8.75in}
\setlength\columnsep {0.5in}
\setlength\topmargin {-0.5in}
\setlength\parskip {6pt plus 1pt}
\setlength\parindent {0pt}
%%Set the font size
\renewcommand\normalsize{%
\@setfontsize\normalsize\@ixpt{11}
\abovedisplayskip 9\p@ \@plus1.8\p@ \@minus4.5\p@
\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip \z@ plus2.7\p@
\belowdisplayshortskip 5.4\p@ plus2.7\p@ minus3\p@
\let\@listi\@listI}
\normalsize
\renewcommand\small{%
\@setfontsize\small\@ixpt{9.9}%
\abovedisplayskip 7.7\p@ \@plus2.7\p@ \@minus3.6\p@
\abovedisplayshortskip \z@ \@plus1.8\p@
\belowdisplayshortskip 3.6\p@ \@plus1.8\p@ \@minus1.8\p@
\def\@listi{\leftmargin\leftmargini
\topsep 3.6\p@ \@plus1.8\p@ \@minus1.8\p@
\parsep 1.8\p@ \@plus\p@ \@minus\p@
\itemsep \parsep}%
\belowdisplayskip \abovedisplayskip
}
\renewcommand\footnotesize{%
\@setfontsize\footnotesize\@viiipt{8.6}%
\abovedisplayskip 5.4\p@ \@plus1.8\p@ \@minus3.6\p@
\abovedisplayshortskip \z@ \@plus\p@
\belowdisplayshortskip 2.7\p@ \@plus\p@ \@minus1.8\p@
\def\@listi{\leftmargin\leftmargini
\topsep 2.7\p@ \@plus\p@ \@minus\p@
\parsep 1.8\p@ \@plus\p@ \@minus\p@
\itemsep \parsep}%
\belowdisplayskip \abovedisplayskip
}
\renewcommand\scriptsize{\@setfontsize\scriptsize{7.2}\@vipt}
\renewcommand\tiny{\@setfontsize\tiny\@vpt\@vpt}
\renewcommand\large{\@setfontsize\large\@xipt{12}}
\renewcommand\Large{\@setfontsize\Large\@xiipt{14}}
\renewcommand\LARGE{\@setfontsize\LARGE\@xivpt{18}}
\renewcommand\huge{\@setfontsize\huge\@xviipt{22}}
\renewcommand\Huge{\@setfontsize\Huge\@xxpt{25}}
%% Create font types for title, headings, etc.
\def\titlefont{\LARGE\sffamily\bfseries}
\def\authorfont{\Large\sffamily}
\def\datefont{\large\sffamily\slshape}
\def\sectionfont{\large\sffamily\bfseries}
\def\subsectionfont{\large\sffamily\bfseries}
\def\captionfont{\small\sffamily}
\def\@seccntformat#1{\csname the#1\endcsname\@secpunct\quad}
\renewcommand{\section}{\def\@secpunct{\rlap{.}}
\@startsection {section}{1}
{\z@}
{10pt plus2pt minus2pt}
{3pt}
{\centering\sectionfont\uppercase}}
\renewcommand{\subsection}{\def\@secpunct{}
\@startsection{subsection}{2}
{\z@}
{10pt plus2pt minus1pt}
{1pt}
{\subsectionfont}}
\renewcommand{\subsubsection}{\def\@secpunct{}
\@startsection{subsubsection}{3}
{\z@}
{10pt plus2pt minus1pt}
{1pt}
{\hspace{0.2in}\subsectionfont}}
%% Title, author, abstract, keywords setup/
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\title#1{\gdef\@title{\uppercase{#1}}}
\def\@maketitle{
\let \footnote \thanks
\vskip60pt{\centering\titlefont\leftskip.5in plus1fill\rightskip\leftskip\@title\par}%
\vskip12pt{\authorfont\centering\begin{tabular}[t]{c}\@author\end{tabular}\par}
\vskip12pt{\datefont\centering\@date\par}\vskip72pt
\begin{center}%
{\sectionfont\uppercase{ABSTRACT}}
\end{center}%
\vskip1pt\normalsize\@abstract\vskip10pt
\normalsize\textbf{Keywords:~}\@keywords\vskip20pt
}
\renewcommand{\abstract}[1]%
{\def\@abstract{#1}}
\newcommand{\keywords}[1]%
{\def\@keywords{\textbf{#1}}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% change default caption header
\def\fnum@figure{\captionfont{\bfseries\figurename~\thefigure}}
\def\fnum@table{\captionfont{\bfseries\tablename~\thetable}}