-
Notifications
You must be signed in to change notification settings - Fork 0
/
nsf.cls
92 lines (85 loc) · 2.31 KB
/
nsf.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
%
% Class identification
% [2020/8/6 NSF Template Latex class]
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{nsf}
%
% Parent class
%
\DeclareOption{a4paper}{\OptionNotUsed}
\DeclareOption{a5paper}{\OptionNotUsed}
\DeclareOption{b5paper}{\OptionNotUsed}
\DeclareOption{executivepaper}{\OptionNotUsed}
\DeclareOption{legalpaper}{\OptionNotUsed}
\DeclareOption{twocolumn}{\OptionNotUsed}
\DeclareOption{landscape}{\OptionNotUsed}
\DeclareOption{twoside}{\OptionNotUsed}
\DeclareOption{notitlepage}{\OptionNotUsed}
\DeclareOption{10pt}{\OptionNotUsed}
\DeclareOption{12pt}{\OptionNotUsed}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions\relax
\LoadClass[letterpaper,onecolumn,oneside,11pt]{article}
%
% Packages
%
% Alphabetical order
\RequirePackage[base]{babel} % required by lipsum when using LuaTex
\RequirePackage{booktabs}
\RequirePackage[skip=5pt,font=small]{caption}
\RequirePackage[T1]{fontenc}
\RequirePackage[margin=1in]{geometry}
\RequirePackage[luatex]{graphicx}
\RequirePackage{lipsum}
\RequirePackage{listings}
\RequirePackage[lighttt]{lmodern}
\RequirePackage{longtable}
\RequirePackage{mdframed}
\RequirePackage{multirow}
\RequirePackage[numbers]{natbib}
\RequirePackage{paralist}
\RequirePackage{subcaption}
\RequirePackage{titlesec}
\RequirePackage{tikz}
\RequirePackage{todonotes}
\RequirePackage[normalem]{ulem}
\RequirePackage{wrapfig}
\RequirePackage{xcolor}
\RequirePackage{xspace}
% Specially ordered
\RequirePackage{enumitem} % must be after paralist
\RequirePackage[pdfborderstyle={/S/U/W 1}]{hyperref} % must be last
%
% Spacing
%
% Titles
\titlespacing{\section}{1ex}{*1}{*1}
\titlespacing{\subsection}{.75ex}{*1}{*.75}
\titlespacing{\subsubsection}{.5ex}{*1}{*.5}
\titleformat{\paragraph}[runin]{\normalfont\bfseries}{}{0pt}{}[.]
\titlespacing{\paragraph}{\parindent}{0pt}{*1}
% Lists
\setlist{nosep}
% Floats
% TODO
%
% Title formatting
%
\renewcommand{\maketitle}{\begin{center}\Large\textbf{\@title}\end{center}}
%
% Framed environments
%
\newmdenv[backgroundcolor=black!3,frametitle={Research Questions},frametitlebelowskip=0pt]{questions}
% Make lipsum text gray
\setlipsum{%
par-before = \begingroup\color{gray},
par-after = \endgroup
}
%
% Useful macros
%
\newcommand{\me}{Pinciroli\xspace}
\newcommand{\copi}{Co-PI\xspace}
\newcommand{\argos}{ARGoS\xspace}
\newcommand{\buzz}{Buzz\xspace}