-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiazessay.latex
240 lines (187 loc) · 7.85 KB
/
diazessay.latex
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Diaz Essay
% LaTeX Template
% Version 2.0 (13/1/19)
%
% This template originates from:
% http://www.LaTeXTemplates.com
%
% Authors:
% Vel ([email protected])
% Nicolas Diaz ([email protected])
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------------------
% PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Diaz Essay
% LaTeX Class
% Version 1.0 (13/1/19)
%
% This class originates from:
% http://www.LaTeXTemplates.com
%
% Authors:
% Vel ([email protected])
% Nicolas Diaz ([email protected])
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------------------
% CLASS CONFIGURATION
%----------------------------------------------------------------------------------------
\documentclass[11pt]{article} % Font size (can be 10pt, 11pt or 12pt)
%----------------------------------------------------------------------------------------
% PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------
\usepackage[english]{babel} % English language hyphenation
\usepackage{graphicx} % Required for including images
\graphicspath{{Figures/}{./}} % Specifies where to look for included images (trailing slash required)
\usepackage{wrapfig} % Allows in-line images
\usepackage{booktabs} % Required for better horizontal rules in tables
\usepackage{enumitem} % Required for list customisation
\usepackage{xcolor}
\usepackage{hyperref}
\usepackage{soul}
\hypersetup{
colorlinks=true,
linkcolor=blue!50!red,
urlcolor=blue!70!black
}
\providecommand\phantomsection{}
$if(csl-refs)$
% definitions for citeproc citations
\NewDocumentCommand\citeproctext{}{}
\NewDocumentCommand\citeproc{mm}{%
\begingroup\def\citeproctext{#2}\cite{#1}\endgroup}
\makeatletter
% allow citations to break across lines
\let\@cite@ofmt\@firstofone
% avoid brackets around text for \cite:
\def\@biblabel#1{#1}
\def\@cite#1#2{{#1\if@tempswa , #2\fi}}
\makeatother
\newlength{\cslhangindent}
\setlength{\cslhangindent}{2.5em}
\newlength{\csllabelwidth}
\setlength{\csllabelwidth}{3em}
\newenvironment{CSLReferences}[2] % #1 hanging-indent, #2 entry-spacing
{\begin{description}%
\setlength{\itemindent}{0pt}%
\setlength{\leftmargin}{0pt}%
\setlength{\parsep}{0pt}%
% turn on hanging indent if param 1 is 1
\ifodd #1
\setlength{\leftmargin}{\cslhangindent}%
\setlength{\itemindent}{-1\cslhangindent}%
\fi
% set entry spacing
\setlength{\itemsep}{#2\baselineskip}%
\renewcommand{\item}[1][]{\hspace*{\cslhangindent}\relax}}%
{\end{description}}
\usepackage{calc}
\newcommand{\CSLBlock}[1]{\hfill\break\parbox[t]{\linewidth}{\strut\ignorespaces#1\strut}}
\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{\strut#1\strut}}
\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{\strut#1\strut}}
\newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1}
$endif$
\setlist{noitemsep} % No spacing between list items
% commented out to get rid of wierd bullets
% \makeatletter
% \renewcommand\@biblabel[1]{\textbf{#1.}} % Remove the square brackets from each bibliography item ('[1]' to '1.')
% \makeatother
%----------------------------------------------------------------------------------------
% DOCUMENT MARGINS
%----------------------------------------------------------------------------------------
\usepackage{geometry} % Required for adjusting page dimensions and margins
\geometry{
paper=a4paper, % Paper size, change to letterpaper for US letter size
top=2.5cm, % Top margin
bottom=3cm, % Bottom margin
left=4cm, % Left margin
right=4cm, % Right margin
headheight=0.75cm, % Header height
footskip=1.5cm, % Space from the bottom margin to the baseline of the footer
headsep=0.75cm, % Space from the top margin to the baseline of the header
%showframe, % Uncomment to show how the type block is set on the page
}
%----------------------------------------------------------------------------------------
% FONTS
%----------------------------------------------------------------------------------------
\usepackage[utf8]{inputenc} % Required for inputting international characters
% \usepackage[T1]{fontenc} % Use 8-bit encoding
\usepackage[LSB,LSBC4,T1]{fontenc}
% \usepackage{mathpazo} % Use the Palatino font - JVS, no
\usepackage{fontspec}
% \usepackage[protrusion=true, expansion=true]{microtype} % Better typography - JVS, no
\linespread{1.10} % Increase line spacing slightly; Palatino benefits from a slight increase by default
%----------------------------------------------------------------------------------------
% TITLE
%----------------------------------------------------------------------------------------
\makeatletter
\renewcommand{\maketitle}{ % Customise the title (do not edit title and author name here)
\vspace*{20pt} % Vertical whitespace before the title
\begin{flushright} % Right align
{\LARGE\@title} % Increase the font size of the title
\vspace{30pt} % Vertical whitespace between the title and author name
{\large\@author}\\ % Author name
\@date % Date
\vspace{20pt} % Vertical whitespace between the author block and abstract
\end{flushright}
}
\makeatother
%----------------------------------------------------------------------------------------
% HEADERS AND FOOTERS
%----------------------------------------------------------------------------------------
\usepackage{fancyhdr} % Required for customising headers and footers
\pagestyle{fancy} % Enable custom headers and footers
\renewcommand{\headrulewidth}{0pt} % Remove default top horizontal rule
\lhead{} % Left header
\chead{} % Centre header
\rhead{} % Right header
\lfoot{} % Left footer
\cfoot{\thepage} % Centre footer
\rfoot{} % Right footer
%----------------------------------------------------------------------------------------
% TITLE SECTION
%----------------------------------------------------------------------------------------
\title{\textbf{$title$} \\ \vspace*{3pt}{\Large\itshape $subtitle$}} % Title and subtitle
\author{\textbf{$author$} \\ \textit{$class$}} % Author and institution
\date{\today} % Date, use \date{} for no date
%----------------------------------------------------------------------------------------
$if(mainfont)$
\setmainfont[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$]{$mainfont$}
$endif$
\begin{document}
\renewcommand{\abstractname}{$abstract$}
\maketitle % Print the title section
%----------------------------------------------------------------------------------------
% ABSTRACT AND KEYWORDS
%----------------------------------------------------------------------------------------
%\renewcommand{\abstractname}{Summary} % Uncomment to change the name of the abstract to something else
$if(abstract)$
\begin{abstract}
\noindent $abstract-text$
\end{abstract}
$if(keywords)$
\hspace*{10mm}\textit{Keywords: }$for(keywords)$$keywords$$sep$, $endfor$ %lorem, ipsum, dolor, sit amet, lectus % Keywords
$endif$
\vspace{20pt} % Vertical whitespace between the abstract and first section
$endif$
%----------------------------------------------------------------------------------------
% ESSAY BODY
%----------------------------------------------------------------------------------------
$body$
%----------------------------------------------------------------------------------------
% BIBLIOGRAPHY
%----------------------------------------------------------------------------------------
\bibliographystyle{unsrt}
\bibliography{sample.bib}
%----------------------------------------------------------------------------------------
\end{document}