-
Notifications
You must be signed in to change notification settings - Fork 2
/
JMR.sty
51 lines (43 loc) · 1.73 KB
/
JMR.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
\def\fileversion{0.3}
\def\filedate{2010/03/24}
\ProvidesClass{JMR}[2010/03/24 J Marine Research]
\usepackage{graphicx} % for \includegraphics{}
\DeclareOption{final}{%
\renewcommand{\includegraphics}[2][]{\medskip {\bf Figure file: #2}}%
\def\fps@figure{p} % see article.cls line 463
}
\ProcessOptions
\usepackage{times} % cleaner font (optional)
\usepackage{setspace} % for \doublespacing
\usepackage{lineno} % for line numbering, if desired
\usepackage[left=4cm, right=2.5cm, top=2.5cm, bottom=2.5cm]{geometry}
% For natbib details, see e.g.
% http://merkel.zoneo.net/Latex/natbib.php
\usepackage{natbib} % to permit natbib bibliography style
\renewcommand{\refname}{\begin{center}REFERENCES\end{center}}
\bibpunct[; ]{(}{)}{;}{a}{,}{;}
\doublespacing
\setlength{\parindent}{4ex}
\renewcommand*\abstractname{ABSTRACT}
% For section-heading details, see e.g.
% http://help-csli.stanford.edu/tex/latex-sections.shtml
\setcounter{secnumdepth}{3}
\def\thesection{\arabic{section}}
\renewcommand\section{\@startsection{section}{1}{\z@}%
{3.0ex \@plus 1.0ex \@minus 0.5ex}%
{0.1ex \@plus 0.1ex \@minus 0.1ex}%
{\normalfont\large\bfseries}}
\def\thesubsection{\alph{subsection}}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
{2.5ex \@plus 1.0ex \@minus 0.5ex}%
{0.1ex \@plus 0.1ex \@minus 0.1ex}%
{\normalfont\large\itshape}}
\def\thesubsubsection{\roman{subsubsection}}
% subsubsections are ``run-in'' style
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
{2.5ex \@plus 1.0ex \@minus 0.5ex}%
{-1.0em \@plus -0.2em \@minus 0.2em}%
{\normalfont\itshape}}
\makeatletter
\renewcommand\@seccntformat[1]{\csname the#1\endcsname.\quad}
\makeatother