-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathessay.cls
70 lines (63 loc) · 2.35 KB
/
essay.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
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{essay}[2016/01/04 Standard Essay Format]
\LoadClass[12pt]{extarticle}
%----------------------------------------------------------------------------------------------------
%GENERAL PAGE SETTINGS
%----------------------------------------------------------------------------------------------------
\RequirePackage[margin=1in, headheight=35pt]{geometry}
\RequirePackage{times}
\RequirePackage[scaled]{helvet} % Helvetica, scaled 95%
\RequirePackage[T1]{fontenc} % better glyphs
\setlength\parindent{1em}
\linespread{1.5} % Palatino appreciates some space.
\makeatletter % macro definitions - redifine this?
%----------------------------------------------------------------------------------------------------
%IMAGES
%----------------------------------------------------------------------------------------------------
\RequirePackage{graphicx}
\RequirePackage{wrapfig} % inline figures.
%----------------------------------------------------------------------------------------------------
%SECTION FORMATTING
%----------------------------------------------------------------------------------------------------
\RequirePackage[hidelinks]{hyperref} % Linking ToC, no link chrome.
\RequirePackage{enumitem}
%\RequirePackage{cite} %simple bibtex - numeric citations
\RequirePackage[round, authoryear]{natbib} % simple bibtex - textual citations
%\RequirePackage[style=numeric,backend=biber]{biblatex} % complicated bibtex
\hypersetup{
linktoc=all,
}
%\RequirePackage[sf]{titlesec} % Section Title Options (switches to sans-serif)
%right-aligned two-part header, with title on top and authorship information below.
\renewcommand{\maketitle}{
\begin{flushright}
\textsf{
{\LARGE\textbf{\@title}}\vspace{2pt}\\
{\large\@subtitle}\\
\vspace{40pt}
{\small\linespread{0.9}\selectfont
\textbf{\textsc{\@author}}\\
\@class\\
\@institution\\
\@date
}
\linespread{1.05}\selectfont
\vspace{40pt}
}
\end{flushright}
}
%macro definitions for the `\maketitle` command.
\def\@subtitle{}
\newcommand{\subtitle}[1]{
\def\@subtitle{#1}
}
\def\@class{}
\newcommand{\class}[1]{
\def\@class{#1}
}
\def\@institution{The University of Texas at Austin}
\newcommand{\institution}[1]{
\def\@institution{#1}
}
\renewcommand{\abstractname}{\textsf{Summary}} % Change the display title of the `abstract` environment.
\endinput