summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/notestex/doc/NotesTeX.tex
blob: 4b1b99505450fe41152eea435e6ec02138de7e38 (plain)
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
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
\documentclass[10pt]{article}
\pdfoutput=1 
\usepackage{../tex/NotesTeX}

%\usepackage{showframe}

\title{\begin{center}{\Huge \textit{NotesTeX}}\\{{\itshape An All-In-One Notes Package For Students}}\end{center}}
\author{Aditya Dhumuntarao\footnote{\href{https://geodesick.com/}{\textit{My Personal Website}}}}


\affiliation{
DAMTP, University of Cambridge\\
Perimeter Institute of Theoretical Physics\\
University of Minnesota
}

\emailAdd{adhumunt@gmail.com}

\begin{document}
	\maketitle
	\flushbottom
	\newpage
	\pagestyle{fancynotes}
	\part{Introduction}	
	\section{Motivation}\label{sec:motivation}
	\begin{margintable}\vspace{.8in}\footnotesize
		\begin{tabularx}{\marginparwidth}{|X}
		Section~\ref{sec:motivation}. Motivation\\
		Section~\ref{sec:reqpackages}. Required Packages\\
		Section~\ref{sec:license}. Margins\\
		\end{tabularx}
	\end{margintable}
	During my year as a Part III student at Cambridge, I realized that my theoretical physics professors, namely David Tong and David Skinner, would use the \texttt{jhep} format to typeset the notes for their classes. As the year went on, I started typesetting my personal notes during class and realized that the \texttt{jhep} format, while great for publications and lecture notes in general, was lacking a few small but useful features.

	I came across James P. Sethna's wonderful text on statistical mechanics, published by the Oxford University Press, and loved the formatting of the OUP. Sadly the OUP does not have a publicly released LaTeX .sty file for their content, and while the Memoir class and the Tufte style packages provide extensive functionality, I needed something slightly different and a package that was more readily modifiable. Enter \textit{NotesTeX}.

	The result of this year long work, from 2016-2017, is the package now known as \textit{NotesTeX.} The purpose of this package was to consolidate all these changes that I slowly incorporated into the original \texttt{jhep} format, and to provide stable support for commonly used physics and mathematics environments. I sincerely hope that you enjoy the package!


	\section{Required Packages}\label{sec:reqpackages}
	For \textit{NotesTeX,} the following packages are required
	\begin{center}
		\texttt{marginnote, sidenotes, fancyhdr, titlesec, geometry, and tcolorbox.}
	\end{center}
	The roles of each of these packages will be discussed in Part~\ref{Part:Modification}. However, for a brief summary, the \texttt{marginnote}, \texttt{sidenote}, \texttt{titlesec}, and \texttt{tcolorbox} packages are used in creating the \texttt{$\backslash$part} environment, the package \texttt{geometry} is used globally to set the page width, page height, and margin width, and finally, \texttt{fancyhdr}, which is overridden on the title page, the contents page, and the \texttt{$\backslash$part} page, sets the header for the body.

	\section{License}\label{sec:license}
	Aditya Dhumuntarao does not own the copyright to the original package, \texttt{jheppub.sty}. All modification have been approved by the Jhep Editorial committee, and permission has been attributed to Aditya to distribute freely the modified version of \texttt{jheppub.sty}, known as \texttt{NotesTeX.sty}.

	This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3 of this license or (at your option) any later version. The latest version of this license is found \href{http://www.latex-project.org/lppl.txt}{here}, and version 1.3 or later is part of all distributions of LaTeX version 2005/12/01 or later. The current maintainer of this work is Aditya Dhumuntarao.\footnote{Please contact me at my email if you have any questions or comments.}

	\newpage

	\part{Modifications}\label{Part:Modification}
	\section{Features}\label{sec:Features}
	\begin{margintable}\vspace{1.4in}\footnotesize
		\begin{tabularx}{\marginparwidth}{|X}
		Section~\ref{sec:Features}. Features\\
		Section~\ref{sec:incpackage}. Included Packages\\
		Section~\ref{Sec:Margins}. Margins\\
		Section~\ref{sec:shortcuts}.  Shortcuts\\
		Section~\ref{Sub:Special}. \texttt{amsthm} Environments\\
		Section~\ref{sec:part}. Part Environment\\
		Section~\ref{Sec: Fullpage}. Fullpage Environment\\
		\end{tabularx}
		\caption{Contents for \textsc{Part II}}
	\end{margintable}
	While \textit{NotesTeX}\footnote{Affectionately called \textit{NoTeX}.} inherits most of the \texttt{jhep} formatting for sections, subsections, subsubsections, title page, contents page, and bibliography presets, there are significant departures from the original format and underlying features. The central focus of this package was to expand the use of the margin in order to include; simple marginnotes, numbered side--notes, marginfigures, and margintables. The secondary motivation was to include a list of preloaded packages that any physics or mathematics students would require while type--setting notes. Lastly, there are a few stylistic improvements that allow for better readability.\\

	\noindent \textit{NotesTeX} includes the following:
	\begin{enumerate}
		\item Several mathematics and physics packages.
		\item Margins and margin environments for tables, figures, and asides.
		\item \TeX\ shortcuts for various math scripts namely vector bold math, \texttt{mathbb}, \texttt{mathfrak}, and \texttt{mathcal}.
		\item \texttt{amsthm} integrations and special environments for theorems, lemmas, proofs, definitions, examples, and remarks.\
		\item Stylized support for the \texttt{part} environment.
		\item A fullpage environment that spans across the text width and the margin for longer equations and horizontal figures.
	\end{enumerate}
	Each of these will be discussed in the following subsections.

	\section{Included Packages} % (fold)
	\label{sec:incpackage}
	Additional package are listed right under the required packages in \texttt{NotesTeX.sty}. These are divided into font styling packages and mathematical and physics related packages. The list of packages are also reiterated here and their links are in the sidenotes.
	\begin{verbatim}
		\usepackage[T1]{fontenc}                            % Font Styling
		\usepackage{lmodern,mathrsfs}
	\end{verbatim}
	\begin{margintable}\footnotesize 
		\begin{tabularx}{\marginparwidth}{|X}
			\href{https://www.ctan.org/pkg/fontenc}{fontenc}\\
			\href{https://www.ctan.org/pkg/mathrsfs}{mathrsfs}\\
			\href{https://www.ctan.org/pkg/enumitem}{enumitem}\\
			\href{https://www.ctan.org/pkg/mathtools}{mathtools}\\
			\href{https://www.ctan.org/pkg/amsfonts}{amsfonts}\\
			\href{https://www.ctan.org/pkg/amsthm}{amsthm}\\
			\href{https://www.ctan.org/pkg/bm}{bm}\\
			\href{https://www.ctan.org/pkg/array}{array}\\
			\href{https://www.ctan.org/pkg/tabularx}{tabularx}\\
			\href{https://www.ctan.org/pkg/booktabs}{booktabs}\\
			\href{https://www.ctan.org/pkg/graphicx}{graphicx}\\
			\href{https://www.ctan.org/pkg/float}{float}\\
			\href{https://www.ctan.org/pkg/caption}{caption}\\
			\href{https://www.ctan.org/pkg/setspace}{setspace}\\
			\href{https://www.ctan.org/pkg/multicol}{multicol}\\
			\href{https://www.ctan.org/topic/pgf-tikz}{tikz}\\
			\href{https://www.ctan.org/pkg/physics}{physics}\\
			\href{https://www.ctan.org/pkg/cancel}{cancel}
		\end{tabularx}
		\caption{Links}
	\end{margintable}
	\begin{verbatim}
		\usepackage[shortlabels]{enumitem}                  % Enumitem Options
		\usepackage{mathtools,amssymb,amsfonts,amsthm,bm}   % Math Presets
		\usepackage{array,tabularx,booktabs}                % Table Presets
		\usepackage{graphicx,wrapfig,float,caption}         % Figure Presets
		\usepackage{setspace,multicol}                      % Text Presets
		\usepackage{tikz,physics,cancel}                    % Physics Presets
	\end{verbatim}

	% section prepackage (end)


	\newpage


	\section{Margins}\label{Sec:Margins}%
	\textit{NotesTeX} inherits all the margin commands that are used by \texttt{sidenote} and \texttt{marginnote}, and two additional pre-configured commands known as \texttt{$\backslash$mn} and \texttt{$\backslash$sn}. The relevant commands, and the packages they belong to, are
	\begin{center}
		\begin{multicols}{2}
		\noindent\texttt{$\backslash$marginfigure~[sidenote]\\
		$\backslash$sidenote~[sidenote]\\
		$\backslash$marginnote~[marginnote]\\
		$\backslash$margintable~[sidenote]\\
		$\backslash$sn~[NotesTeX]\\
		$\backslash$mn~[NotesTeX]\\
		}
	\end{multicols}
	\end{center}
	The implementation of each of these is as follows.
	\begin{enumerate}
		\item \texttt{Marginnote:} This is how a \texttt{$\backslash$marginnote\{...\}} behaves.\marginnote{Not numbered, 10pt.}
		\item \texttt{Mn:} This is how a \texttt{$\backslash$mn\{...\}} behaves.\mn{Numbered, footnotesize.}
		\item \texttt{Sidenote:} This is how a \texttt{$\backslash$sidenote\{...\}} behaves.\sidenote{Numbered, 10pt.}
		\item \texttt{Sn:} This is how a \texttt{$\backslash$sn\{...\}} behaves.\sn{Numbered, footnotesize.}
		\item \texttt{Marginfigure:} This environment requires the \texttt{$\backslash$begin\{marginfigure\}} {$\cdots$}\newline\texttt{$\backslash$end\{marginfigure\}} enclosings. The \texttt{caption} package is needed to caption the figure.
		\begin{marginfigure}
		\begin{center}
			\begin{tikzpicture}
				\draw[black,thick] (-1,-1) -- (-.06,-.06);
				\draw[black,thick] (.06,.06) -- (1,1);
				\draw[black,thick] (-1,1) -- (1,-1);
				\filldraw[black] (-1,-1) circle (2pt) node[anchor=north] {2};
				\filldraw[black] (-1,1) circle (2pt) node[anchor=south] {1};
				\filldraw[black] (1,-1) circle (2pt) node[anchor=north] {3};
				\filldraw[black] (1,1) circle (2pt) node[anchor=south] {4};
			\end{tikzpicture}
		\end{center}
		\caption{Marginfigure: Tikz}
		\end{marginfigure}%
		\item \texttt{Margintable:} This environment requires the \texttt{$\backslash$begin\{margintable\}} {$\cdots$}\newline\texttt{$\backslash$end\{margintable\}} enclosings. A table package, such as \texttt{tabular}, \texttt{tabulary}, \texttt{tabu}, or \texttt{tabularx} is required. The \texttt{caption} package is needed to caption the table.
		\begin{margintable}
			\vspace{.1in}
			\begin{tabularx}{\marginparwidth}{|X|X|}
			\hline
			\textit{NotesTeX} & \textbf{rocks!}\\
			\hline
			\end{tabularx}
			\caption{Margintable}
		\end{margintable}
	\end{enumerate}
	\subsection{Why use both \texttt{marginnotes} and \texttt{sidenotes}?}
	Quite simply, \texttt{marginnotes} overlap each other if they are too close. This means that figures, and tables can overlap by just using \texttt{marginnotes}. This is why \texttt{sidenotes} is so useful as it not only numbers all side notes, but also dynamically aligns all side notes, figures, and tables.

	So clearly, \texttt{sidenotes} must be better right? There are a few places where \texttt{sidenotes} fails too however. For instance, \texttt{sidenotes} cannot be used in equations, \texttt{multicols}, and with the \texttt{tcolorbox}\sn{See \ref{Sub:Special} and \ref{Sec: Fullpage} for more details.} environment. As the majority of the special environments from \texttt{amsthm} are modified to use \texttt{tcolorbox}, \texttt{marginnotes} becomes an essential part of \textit{NotesTeX}.

	\newpage

	\section{\TeX\ Shortcuts}\label{sec:shortcuts}
	\textit{NotesTeX} comes built in with a minimal set of keyboard shortcuts for a few special characters. All of these shortcuts can be found in \texttt{NotesTeX.sty} just under
	\begin{verbatim}
	% ----------------------------------------------------------------------
	%           User Created Commands
	% ----------------------------------------------------------------------
	...
	\end{verbatim}
	If one has their own macros,\sidenote{\footnotesize Most people have their own shortcuts for commonly used mathematics, such as derivatives or integrals. For those looking for some physics shortcuts, the \textbf{supremely excellent} physics package (automatically included in \textit{NotesTeX}) has possible everything that one can imagine.} then simply add it under this area. 

	\subsection{Available Shortcuts}
	To keep things light, \textit{NotesTeX} offers the following simplifications/shortcuts to the mathematics dictionary.
	\begin{enumerate}
		\item Vector Bold Math: The shortcut \texttt{\{$\backslash$bf $\cdot$\}} $\longrightarrow$ \texttt{$\backslash$bf$\cdot$} creates boldface text. For example, \texttt{\{$\backslash$bf a\}} becomes \texttt{$\backslash$bfa} producing the output \bfa. This works for both upper and lower case alphabet.
		\item \texttt{Mathfrak:} The \texttt{$\backslash$mathfrak} environment is quite similar to the Vector Bold Math in the shortcut argument, \texttt{$\backslash$mathfrak\{$\cdot$\}} $\longrightarrow$ \texttt{$\backslash$mf$\cdot$}. This works for both upper and lower case producing
		\begin{center}
			$\mfa\mfb\mfc\mfd\mfe\mff\mfg\mfh\mfi\mfj\mfk\mfl\mfm\mfn\mfo\mfp\mfq\mfr\mfs\mft\mfu\mfv\mfw\mfx\mfy\mfz$\\
			$\mfA\mfB\mfC\mfD\mfE\mfF\mfG\mfH\mfI\mfJ\mfK\mfL\mfM\mfN\mfO\mfP\mfQ\mfR\mfS\mfT\mfU\mfV\mfW\mfX\mfY\mfZ$
		\end{center}
		\item \texttt{Mathbb}: All \texttt{$\backslash$mathbb\{$\cdot$\}} objects are turned into \texttt{$\backslash$bb\{$\cdot$\}}. This only works for uppercase alphabet.
		\begin{equation*}
			\bbA\bbB\bbC\bbD\bbE\bbF\bbG\bbH\bbI\bbJ\bbK\bbL\bbM\bbN\bbO\bbP\bbQ\bbR\bbS\bbT\bbU\bbV\bbW\bbX\bbY\bbZ
		\end{equation*}
		\item \texttt{Mathcal:} All \texttt{$\backslash$mathcal\{$\cdot$\}} objects are turned into \texttt{$\backslash$mc\{$\cdot$\}}. This only works for uppercase alphabet.
		\begin{equation*}
			\mcA\mcB\mcC\mcD\mcE\mcF\mcG\mcH\mcI\mcJ\mcK\mcL\mcM\mcN\mcO\mcP\mcQ\mcR\mcS\mcT\mcU\mcV\mcW\mcX\mcY\mcZ
		\end{equation*}
	\end{enumerate}


	\newpage
	\section{\texttt{amsthm} Environments}\label{Sub:Special}
	\texttt{amsthm} environments are defined as usual being enclosed by \texttt{$\backslash$begin\{environment\}}$\cdots$ \texttt{$\backslash$end\{environment\}} and most have been modified ostensibly from the original \texttt{amsthm} presets. Primarily, most environments, with the exception of the exercise environment, are now integrated with the wonderful \texttt{tcolorbox} package. Note that the counting for \texttt{theorems} and \texttt{lemmas} is distinct from the counting for \texttt{definitions}. Also note that the \texttt{breakable} for \texttt{tcolorbox} allows these environments to span multiple pages.

	\begin{definition}
		The \texttt{definition} environment and the associated \texttt{tcolorbox} are provided by the following code in \texttt{NotesTeX.sty}:
		\begin{verbatim}
			\tcolorboxenvironment{definition}{
			  boxrule=0pt,
			  boxsep=0pt,
			  colback={White!90!Cerulean},
			  enhanced jigsaw, 
			  borderline west={2pt}{0pt}{Cerulean},
			  sharp corners,
			  before skip=10pt,
			  after skip=10pt,
			  breakable,
			}
		\end{verbatim}
	\end{definition}
	\begin{theorem}
		The \texttt{theorem} environment and the associated \texttt{tcolorbox} are provided by the following code in \texttt{NotesTeX.sty}:
		\begin{verbatim}
			\tcolorboxenvironment{theorem}{
			  boxrule=0pt,
			  boxsep=0pt,
			  colback={White!90!Dandelion},
			  enhanced jigsaw, 
			  borderline west={2pt}{0pt}{Dandelion},
			  sharp corners,
			  before skip=10pt,
			  after skip=10pt,
			  breakable,
			}
		\end{verbatim}
	\end{theorem}
	\begin{lemma}
		The \texttt{lemma} environment and the associated \texttt{tcolorbox} are provided by the following code in \texttt{NotesTeX.sty}:
		\begin{verbatim}
		\tcolorboxenvironment{lemma}{
		  boxrule=0pt,
		  boxsep=0pt,
		  blanker,
		  borderline west={2pt}{0pt}{Red},
		  before skip=10pt,
		  after skip=10pt,
		  sharp corners,
		  left=12pt,
		  right=12pt,
		  breakable,
		}
		\end{verbatim}
	\end{lemma}
	\begin{proof}
		The \texttt{proof} environment and the associated \texttt{tcolorbox} are provided by the following code in \texttt{NotesTeX.sty}:
		\begin{verbatim}
			\tcolorboxenvironment{proof}{
			  boxrule=0pt,
			  boxsep=0pt,
			  blanker,
			  borderline west={2pt}{0pt}{NavyBlue!80!white},
			  before skip=10pt,
			  after skip=10pt,
			  left=12pt,
			  right=12pt,
			  breakable,
			}
		\end{verbatim}
	\end{proof}
	\begin{example}
		The \texttt{example} environment and the associated \texttt{tcolorbox} are provided by the following code in \texttt{NotesTeX.sty}:
		\begin{verbatim}	
		\tcolorboxenvironment{example}{
		  boxrule=0pt,
		  boxsep=0pt,
		  blanker,
		  borderline west={2pt}{0pt}{Black},
		  sharp corners,
		  before skip=10pt,
		  after skip=10pt,
		  left=12pt,
		  right=12pt,
		  breakable,
		}
		\end{verbatim}
	\end{example}	
	\begin{remark}
		The \texttt{remark} environment and the associated \texttt{tcolorbox} are provided by the following code in \texttt{NotesTeX.sty}:
		\begin{verbatim}
		\tcolorboxenvironment{remark}{
		  boxrule=0pt,
		  boxsep=0pt,
		  blanker,
		  borderline west={2pt}{0pt}{Green},
		  before skip=10pt,
		  after skip=10pt,
		  left=12pt,
		  right=12pt,
		  breakable,
		}
		\end{verbatim}
	\end{remark}
	\begin{exercise}
		The exercise environment remains unchanged from the \texttt{amsthm} presets.
	\end{exercise}



	\subsection{\texttt{tcolorbox} Environment and Known Issues} % (fold)
	\label{ssub:tcolorbox environments_and_known_issues}
	
	There is one issue with this however.\marginnote{Not a major one but frustrating nonetheless.} Since we are using a \texttt{tcolorbox}, this proof environment is incompatible with \texttt{$\backslash$sn} and \texttt{$\backslash$sidenote}, as it results in a \textbf{Float(s) Error}. However, this environment is compatible with \texttt{$\backslash$mn} and \texttt{$\backslash$marginnote} thankfully.\mn{As one can see right here.}


	The \texttt{breakable} should allow the \texttt{proof} environment to span multiple pages. If one wishes to change the color, simply modify the line which states \texttt{borderline west=\{1pt\}\{0pt\}\{blue\}}. The first numeric value dictates the width of the line, the second dictates how close it is away from the \textit{left} margin, while the last argument obviously dictates the color. This code could also be used to change any of the other \texttt{amsthm} environments.

	% subsubsection tcolorbox environments_and_known_issues (end)

	\section{The Part Environment}\label{sec:part}
	In the original Jhep format, the \texttt{$\backslash$part} environment is not special and is set to the default given by the article class. In \textit{NotesTeX}, the \texttt{part} environment produces the following image. Furthermore the code responsible is noted below.\\

	\begin{fullpage}
	{{\centering
		\begin{tcolorbox}[width=\marginparwidth,height=\marginparwidth/2,colback=black!75!white,colframe=black!75!white,center title,fonttitle=\bfseries\normalsize,title=PART,text fill]
		  \begin{center}
		  {\color{white}\Huge\bfseries\#}
		  \end{center}
		\end{tcolorbox}
	}}
	~ \newline 
	\begin{verbatim}
		\titleformat{\part}[hang]{{\thispagestyle{plain}}\Huge\bfseries}{\marginnote{
			\begin{tcolorbox}
			[width=\marginparwidth,height=\marginparwidth/2,colback=black!75!white,
			   colframe=black!75!white,center title,fonttitle=\bfseries\normalsize,title=PART,
			   text fill]

			  \begin{center}
			  	{\color{white}\thepart}
			  \end{center}

			\end{tcolorbox}
		}[-1.25in]}{0pt}{\Huge\bfseries}
	\end{verbatim}
	\end{fullpage}
	
	This combines the \texttt{titlesec} and the \texttt{tcolorbox} packages, placing the title of the \texttt{$\backslash$part} on the left hand side, and the \texttt{$\backslash$part} number in the margin. It is recommended that one do not mess with this, other than changing the colors given by \texttt{colback} and \texttt{colframe}.
	\newpage

	\section{Fullpage Environment}\label{Sec: Fullpage}
	\begin{fullpage}
		The \texttt{fullpage} environment is defined by
		\begin{center}
			\texttt{$\backslash$begin\{fullpage\}}\\
			$\cdots$\\
			\texttt{$\backslash$end\{fullpage\}}
		\end{center}
		with the with of the \texttt{fullpage} environment given by \texttt{$\backslash$textwidth}+\texttt{$\backslash$marginparsep}+\texttt{$\backslash$marginparwidth}.\\
	\end{fullpage}
	There are some clear benefits of having use of the full page at times. Suppose that one wants to place a figure that cannot fit into the margins, or if an equation is quite long and it bleeds into the margin, then the \texttt{fullpage} environment can both clearly separate these from the surrounding text and allot for the dimensions without hassle. The code in \texttt{NotesTeX.sty} that is responsible for the \texttt{fullpage} environment is given by\sn{This is also an example of why the \texttt{fullpage} environment is nice.}\\

	\begin{fullpage}
			\begin{verbatim}
			\newenvironment{fullpage}{
			{\smallskip\noindent
			\begin{minipage}{\textwidth+\marginparwidth+\marginparsep}\hrule\smallskip\smallskip}
			{\smallskip\smallskip\hrule\end{minipage}\vspace{.1in}
			}
			\end{verbatim}
	\end{fullpage}
	
	\begin{remark}
		If one do not like the lines at the beginning and end of the \texttt{fullpage} environment, simply remove all the \texttt{$\backslash$hrule} that is in the code. Similarly, it is possible to change the vertical spacing after the \texttt{fullpage} is over, by modifying the \texttt{$\backslash$vspace\{\}} argument. 
	\end{remark}
	
	\begin{fullpage}
		\begin{multicols}{2}
		A major benefit of having a \texttt{fullpage} is the ability to use \texttt{multicols} to its fullest extent. For example, these empty sentences are an example of how effective the \texttt{multicols} package can be inside of the \texttt{fullpage} environment. 

		This would be especially useful for formatting exercises in multiple columns and it makes the text distinct from the rest of the \texttt{fullpage} environment. The author has run out of things to say.
		\end{multicols}
	\end{fullpage}

	\subsection{Known Issues with Fullpage}\label{Sub: Fullpage_Issues}

	There are a few issues with the \texttt{fullpage} however. 
	\begin{remark}
		Since the \texttt{fullpage} environment uses a \texttt{minipage}, and minipages do not work over multiple pages, one will need a new \texttt{fullpage} per page.	
	\end{remark}
	\begin{remark}
		\textbf{Also, please note \texttt{marginnote}, or \texttt{sidenotes} cannot be used in this environment.} Footnotes, on the other hand, can be used but are really ugly.
	\end{remark}
	
	\newpage

	\part{Advanced Page Formatting}
	For those wanting to adjust the margin sizes, or the \texttt{fancyhdr} layout, there are a few comments that could be made here.
	\section{Page Dimensions}
	\textit{NotesTeX} relies on the \texttt{geometry} package to set its dimensions. The associated code is the deceptively simple chunk of code given by
	\begin{verbatim}
		\geometry{paperheight=845pt,paperwidth=597pt,
          marginparsep=.02\paperwidth,marginparwidth=.23\paperwidth,
          hoffset=-1in, voffset=-1in, headheight=.02\paperheight,
          headsep=.03\paperheight,footskip=20pt,
          textheight=.84\paperheight,textwidth=.64\paperwidth}.
	\end{verbatim}
	Ignoring most of the arguments, the \texttt{$\backslash$paperheight} and \texttt{$\backslash$paperwidth} are set to be the standard $8\times11$ inches but in \texttt{pt} format instead. All other options, with the exception of \texttt{$\backslash$hoffset} and \texttt{$\backslash$voffset}, inherit fractions of \texttt{$\backslash$paperheight} and \texttt{$\backslash$paperwidth}, the most important being \texttt{$\backslash$marginparwidth}. Increasing \texttt{$\backslash$marginparwidth} causes the margin to bleed off of the right side of the page. In order to increase, one \textbf{must} decrease the \texttt{$\backslash$textwidth} accordingly.


	\section{\texttt{Fancyhdr} Layout}
	As mentioned before, \texttt{fancyhdr} is overridden on the title page, the contents page, and the \texttt{$\backslash$part} page, and sets the header for all other pages through the code
	\begin{verbatim}
	\pagestyle{fancy}%
	\newlength{\offset}%
	\setlength{\offset}{\marginparwidth + \marginparsep}%
	\renewcommand{\sectionmark}[1]{\markboth{#1}{}}%
	\renewcommand{\subsectionmark}[1]{\markright{#1}{}}%

	\fancypagestyle{fancynotes}{%
	  \fancyhf{}%
	  \fancyheadoffset[rh]{\offset}%
	  \renewcommand{\headrulewidth}{0pt}%
	  \fancyhead[L]{\textsc{\leftmark}}%
	  \fancyhead[R]{\footnotesize \textit{\rightmark}~~~~ \thepage}%
	}%
	\end{verbatim}
	The header style is set so that it spans the width of the entire page as opposed to just the \texttt{$\backslash$textwidth} through the line \texttt{$\backslash$fancyheadoffset[rh]\{$\backslash$myoddoffset\}}. The \texttt{$\backslash$sectionmark} and \texttt{$\backslash$subsectionmark} are set up so that the \texttt{section} appears on the left and all \texttt{subsections} appear on the right along with the page number, and this is given in the last two lines of code.

\end{document}