-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathepsrc.cls
104 lines (90 loc) · 2.59 KB
/
epsrc.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
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{epsrc_temp}[2014/12/28 Template for EPSRC Case for Support]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions
\LoadClass[11pt,onecolumn,a4paper,notitlepage]{article}
\RequirePackage[margin=2cm]{geometry}
%natbib required for angew bst and to reduce spacing
\RequirePackage[super,sort&compress,numbers,]{natbib}
\setlength{\bibsep}{0.0pt} %reducing spacing in bibliography
\RequirePackage[small,compact]{titlesec}
\titlespacing{\section}{0pt}{0ex}{0.1ex}
\titlespacing{\subsection}{0pt}{0ex}{0ex}
\titlespacing{\subsubsection}{0pt}{0ex}{0ex}
% customisable lists
\RequirePackage{enumitem}
\setlist{nolistsep}%remove spacing from lists
\RequirePackage[T1]{fontenc}
\RequirePackage[scaled]{helvet}
\renewcommand*\familydefault{\sfdefault}
\setlength{\parindent}{1em}
\setlength{\intextsep}{0.4ex}
\renewcommand\maketitle{\par
\begingroup
\renewcommand\thefootnote{\@fnsymbol\c@footnote}%
\def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
\long\def\@makefntext##1{\parindent 1em\noindent
\hb@[email protected]{%
\hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
\if@twocolumn
\ifnum \col@number=\@ne
\@maketitle
\else
\twocolumn[\@maketitle]%
\fi
\else
\newpage
\global\@topnum\z@ % Prevents figures from going at top of page.
\@maketitle
\fi
\thispagestyle{fancy}\@thanks
\endgroup
\setcounter{footnote}{0}%
\global\let\thanks\relax
%\global\let\maketitle\relax
%\global\let\@maketitle\relax
\global\let\@thanks\@empty
\global\let\@author\@empty
\global\let\@date\@empty
\global\let\@title\@empty
%\global\let\title\relax
\global\let\author\relax
\global\let\date\relax
\global\let\and\relax
}
\def\@maketitle{%
\newpage
\null
\noindent
\let \footnote \thanks
{\Large \bfseries \@title \par}%
\vskip 1em%
}
\def\@part[#1]#2{%
\ifnum \c@secnumdepth >\m@ne
\refstepcounter{part}%
\addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
\else
\addcontentsline{toc}{part}{#1}%
\fi
{\parindent \z@ \raggedright
\interlinepenalty \@M
\normalfont
\ifnum \c@secnumdepth >\m@ne
\Large\bfseries \partname\nobreakspace\thepart: \nobreak
\fi
\Large \bfseries #2%
\markboth{}{}\par}%
\nobreak
\vskip 0.5ex
\@afterheading}
\def\@spart#1{%
{\parindent \z@ \raggedright
\interlinepenalty \@M
\normalfont
\Large \bfseries #1\par}%
\nobreak
\vskip 0.3ex
\@afterheading}
%\setcounter{secnumdepth}{0}
\endinput