This repository has been archived by the owner on Jun 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ncjms.cls
136 lines (118 loc) · 4.68 KB
/
ncjms.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
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{ncjms}[2014/12/12, v1.0]
%%%%%%%%%%%
%%%%%%%%%%% load the appropriate class
\LoadClass[12pt, e-only, reqno]{amsart}
%%%%%%%%%%%
%%%%%%%%%%% load all necessary packages
\RequirePackage{fancyhdr}
\RequirePackage{color}
\RequirePackage{graphicx}
\RequirePackage[authoryear,round]{natbib}
\RequirePackage{amssymb}
\RequirePackage[mathlines]{lineno} %adds line numbers if needed
\RequirePackage{amsmath}
\RequirePackage{enumerate}
\RequirePackage{multicol}
\RequirePackage{multirow}
\RequirePackage{hyperref}
\RequirePackage{booktabs}
\usepackage[margin=1in]{geometry}
\geometry{letterpaper}
\usepackage{type1cm}
\usepackage{eso-pic}
\usepackage{mathptmx}
\usepackage{fix-cm} % Allows for Computer Modern fonts of arbitrary sizes
%
%
%%%%%%%%%%%
%%%%%%%%%%% define all available options
\DeclareOption{draft}{\setlength\overfullrule{5pt}} %allows to see long lines
\DeclareOption{noref}{ %if you do not want to see references
\hypersetup{colorlinks=true, linkcolor=black, anchorcolor=black,
citecolor=black, menucolor=black, urlcolor=black}
}
\DeclareOption{final}{\setlength\overfullrule{0pt}} %for final printing
\DeclareOption{editor}{% this option works for editors only. It loads a private file ncjmsed.tex that provides few
% more options and a slightly different formatting for editors
% this few packages are used by editors only
\input{ncjmsed.tex}
}
%%%%%%%%%%%
%%%%%%%%%%%
%
%
%
\def\publname{North Carolina Journal of\newline
Mathematics and Statistics}
%%%%% change the authors and title from all upper case
\newenvironment{nouppercase}{%
\let\uppercase\relax%
\renewcommand{\uppercasenonmath}[1]{}}{}
\let\Maketitle\maketitle
\renewcommand\maketitle{
\begin{nouppercase}
\Maketitle
\end{nouppercase}
}
%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%% Define the heather and footer of the paper
%
\renewcommand{\headrulewidth}{0pt} %no line for the header
%
\pagestyle{fancy} %this defines a a header and footer from page 2 on
% we want page numbers and authors and title running in the header
\fancyhf{}% clears any traces of header and footer
\fancyhead[LE,RO]{\thepage} %inserts the page
\fancyhead[CE]{\small \textit{Use authorruning to put Author's header here}} %only a warning if authors do not include their
\fancyhead[CO]{\small \textit{Use titlerunning to put Title's header here}} %only a warning if authors do not include their
% }
%
% command for authors to enter their own header for authors and title
\newcommand\authorsrunning[1]{\fancyhead[CE]{\small \textit{#1}}}
\newcommand\titlerunning[1]{\fancyhead[CO]{\small \textit{#1}}}
%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%% Proper formatings of headings
%
%
\renewcommand*{\@seccntformat}[1]{% %add a dot after the section heading
\csname the#1\endcsname.~
}
% add appropriate spacing before and after the section, subsection and subsubsection headings
%
\renewcommand\section{\@startsection {section}{1}{\z@}%
%{\noindent \normalsize \hspace*{0.12in}}%
{3.0ex \@plus .1ex \@minus .2ex}%
{2.3ex \@plus.2ex}%
{\normalfont\normalsize\bfseries}}
%
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
{2.75ex\@plus 1ex \@minus .2ex}%
{1.5ex \@plus .2ex}%
{\normalfont\normalsize\bfseries}}
%
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
{-2.75ex\@plus -1ex \@minus -.2ex}%
{1.5ex \@plus .2ex}%
{\normalfont\normalsize\bfseries}}
%
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
{3.25ex \@plus1ex \@minus.2ex}%
{-1em}%
{\normalfont\normalsize\bfseries}}
%
\renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
{3.25ex \@plus1ex \@minus .2ex}%
{-1em}%
{\normalfont\normalsize\bfseries}}
%
%
%
%
%make sure equations, tables and figures are numbered by (section.eq#)
\numberwithin{equation}{section}
\numberwithin{table}{section}
\numberwithin{figure}{section}
\heavyrulewidth=.12em %dimension of the heavy line for tables
\abovetopsep = 0.5em %separation from the top of the page to the caption
\ProcessOptions