Debian Codegraph @

texmf-dist/doc/latex/notestex/NotesTeX.tex

raw
1 \documentclass[10pt]{article}
2 \pdfoutput=1
3 \usepackage{../tex/NotesTeX}
4
5 %\usepackage{showframe}
6
7 \title{\begin{center}{\Huge \textit{NotesTeX}}\\{{\itshape An All-In-One Notes Package For Students}}\end{center}}
8 \author{Aditya Dhumuntarao\footnote{\href{https://geodesick.com/}{\textit{My Personal Website}}}}
9
10
11 \affiliation{
12 DAMTP, University of Cambridge\\
13 Perimeter Institute of Theoretical Physics\\
14 University of Minnesota
15 }
16
17 \emailAdd{[email protected]}
18
19 \begin{document}
20 \maketitle
21 \flushbottom
22 \newpage
23 \pagestyle{fancynotes}
24 \part{Introduction}
25 \section{Motivation}\label{sec:motivation}
26 \begin{margintable}\vspace{.8in}\footnotesize
27 \begin{tabularx}{\marginparwidth}{|X}
28 Section~\ref{sec:motivation}. Motivation\\
29 Section~\ref{sec:reqpackages}. Required Packages\\
30 Section~\ref{sec:license}. Margins\\
31 \end{tabularx}
32 \end{margintable}
33 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.
34
35 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}.
36
37 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!
38
39
40 \section{Required Packages}\label{sec:reqpackages}
41 For \textit{NotesTeX,} the following packages are required
42 \begin{center}
43 \texttt{marginnote, sidenotes, fancyhdr, titlesec, geometry, and tcolorbox.}
44 \end{center}
45 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.
46
47 \section{License}\label{sec:license}
48 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}.
49
50 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.}
51
52 \newpage
53
54 \part{Modifications}\label{Part:Modification}
55 \section{Features}\label{sec:Features}
56 \begin{margintable}\vspace{1.4in}\footnotesize
57 \begin{tabularx}{\marginparwidth}{|X}
58 Section~\ref{sec:Features}. Features\\
59 Section~\ref{sec:incpackage}. Included Packages\\
60 Section~\ref{Sec:Margins}. Margins\\
61 Section~\ref{sec:shortcuts}. Shortcuts\\
62 Section~\ref{Sub:Special}. \texttt{amsthm} Environments\\
63 Section~\ref{sec:part}. Part Environment\\
64 Section~\ref{Sec: Fullpage}. Fullpage Environment\\
65 \end{tabularx}
66 \caption{Contents for \textsc{Part II}}
67 \end{margintable}
68 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.\\
69
70 \noindent \textit{NotesTeX} includes the following:
71 \begin{enumerate}
72 \item Several mathematics and physics packages.
73 \item Margins and margin environments for tables, figures, and asides.
74 \item \TeX\ shortcuts for various math scripts namely vector bold math, \texttt{mathbb}, \texttt{mathfrak}, and \texttt{mathcal}.
75 \item \texttt{amsthm} integrations and special environments for theorems, lemmas, proofs, definitions, examples, and remarks.\
76 \item Stylized support for the \texttt{part} environment.
77 \item A fullpage environment that spans across the text width and the margin for longer equations and horizontal figures.
78 \end{enumerate}
79 Each of these will be discussed in the following subsections.
80
81 \section{Included Packages} % (fold)
82 \label{sec:incpackage}
83 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.
84 \begin{verbatim}
85 \usepackage[T1]{fontenc} % Font Styling
86 \usepackage{lmodern,mathrsfs}
87 \end{verbatim}
88 \begin{margintable}\footnotesize
89 \begin{tabularx}{\marginparwidth}{|X}
90 \href{https://www.ctan.org/pkg/fontenc}{fontenc}\\
91 \href{https://www.ctan.org/pkg/mathrsfs}{mathrsfs}\\
92 \href{https://www.ctan.org/pkg/enumitem}{enumitem}\\
93 \href{https://www.ctan.org/pkg/mathtools}{mathtools}\\
94 \href{https://www.ctan.org/pkg/amsfonts}{amsfonts}\\
95 \href{https://www.ctan.org/pkg/amsthm}{amsthm}\\
96 \href{https://www.ctan.org/pkg/bm}{bm}\\
97 \href{https://www.ctan.org/pkg/array}{array}\\
98 \href{https://www.ctan.org/pkg/tabularx}{tabularx}\\
99 \href{https://www.ctan.org/pkg/booktabs}{booktabs}\\
100 \href{https://www.ctan.org/pkg/graphicx}{graphicx}\\
101 \href{https://www.ctan.org/pkg/float}{float}\\
102 \href{https://www.ctan.org/pkg/caption}{caption}\\
103 \href{https://www.ctan.org/pkg/setspace}{setspace}\\
104 \href{https://www.ctan.org/pkg/multicol}{multicol}\\
105 \href{https://www.ctan.org/topic/pgf-tikz}{tikz}\\
106 \href{https://www.ctan.org/pkg/physics}{physics}\\
107 \href{https://www.ctan.org/pkg/cancel}{cancel}
108 \end{tabularx}
109 \caption{Links}
110 \end{margintable}
111 \begin{verbatim}
112 \usepackage[shortlabels]{enumitem} % Enumitem Options
113 \usepackage{mathtools,amssymb,amsfonts,amsthm,bm} % Math Presets
114 \usepackage{array,tabularx,booktabs} % Table Presets
115 \usepackage{graphicx,wrapfig,float,caption} % Figure Presets
116 \usepackage{setspace,multicol} % Text Presets
117 \usepackage{tikz,physics,cancel} % Physics Presets
118 \end{verbatim}
119
120 % section prepackage (end)
121
122
123 \newpage
124
125
126 \section{Margins}\label{Sec:Margins}%
127 \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
128 \begin{center}
129 \begin{multicols}{2}
130 \noindent\texttt{$\backslash$marginfigure~[sidenote]\\
131 $\backslash$sidenote~[sidenote]\\
132 $\backslash$marginnote~[marginnote]\\
133 $\backslash$margintable~[sidenote]\\
134 $\backslash$sn~[NotesTeX]\\
135 $\backslash$mn~[NotesTeX]\\
136 }
137 \end{multicols}
138 \end{center}
139 The implementation of each of these is as follows.
140 \begin{enumerate}
141 \item \texttt{Marginnote:} This is how a \texttt{$\backslash$marginnote\{...\}} behaves.\marginnote{Not numbered, 10pt.}
142 \item \texttt{Mn:} This is how a \texttt{$\backslash$mn\{...\}} behaves.\mn{Numbered, footnotesize.}
143 \item \texttt{Sidenote:} This is how a \texttt{$\backslash$sidenote\{...\}} behaves.\sidenote{Numbered, 10pt.}
144 \item \texttt{Sn:} This is how a \texttt{$\backslash$sn\{...\}} behaves.\sn{Numbered, footnotesize.}
145 \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.
146 \begin{marginfigure}
147 \begin{center}
148 \begin{tikzpicture}
149 \draw[black,thick] (-1,-1) -- (-.06,-.06);
150 \draw[black,thick] (.06,.06) -- (1,1);
151 \draw[black,thick] (-1,1) -- (1,-1);
152 \filldraw[black] (-1,-1) circle (2pt) node[anchor=north] {2};
153 \filldraw[black] (-1,1) circle (2pt) node[anchor=south] {1};
154 \filldraw[black] (1,-1) circle (2pt) node[anchor=north] {3};
155 \filldraw[black] (1,1) circle (2pt) node[anchor=south] {4};
156 \end{tikzpicture}
157 \end{center}
158 \caption{Marginfigure: Tikz}
159 \end{marginfigure}%
160 \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.
161 \begin{margintable}
162 \vspace{.1in}
163 \begin{tabularx}{\marginparwidth}{|X|X|}
164 \hline
165 \textit{NotesTeX} & \textbf{rocks!}\\
166 \hline
167 \end{tabularx}
168 \caption{Margintable}
169 \end{margintable}
170 \end{enumerate}
171 \subsection{Why use both \texttt{marginnotes} and \texttt{sidenotes}?}
172 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.
173
174 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}.
175
176 \newpage
177
178 \section{\TeX\ Shortcuts}\label{sec:shortcuts}
179 \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
180 \begin{verbatim}
181 % ----------------------------------------------------------------------
182 % User Created Commands
183 % ----------------------------------------------------------------------
184 ...
185 \end{verbatim}
186 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.
187
188 \subsection{Available Shortcuts}
189 To keep things light, \textit{NotesTeX} offers the following simplifications/shortcuts to the mathematics dictionary.
190 \begin{enumerate}
191 \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.
192 \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
193 \begin{center}
194 $\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$\\
195 $\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$
196 \end{center}
197 \item \texttt{Mathbb}: All \texttt{$\backslash$mathbb\{$\cdot$\}} objects are turned into \texttt{$\backslash$bb\{$\cdot$\}}. This only works for uppercase alphabet.
198 \begin{equation*}
199 \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
200 \end{equation*}
201 \item \texttt{Mathcal:} All \texttt{$\backslash$mathcal\{$\cdot$\}} objects are turned into \texttt{$\backslash$mc\{$\cdot$\}}. This only works for uppercase alphabet.
202 \begin{equation*}
203 \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
204 \end{equation*}
205 \end{enumerate}
206
207
208 \newpage
209 \section{\texttt{amsthm} Environments}\label{Sub:Special}
210 \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.
211
212 \begin{definition}
213 The \texttt{definition} environment and the associated \texttt{tcolorbox} are provided by the following code in \texttt{NotesTeX.sty}:
214 \begin{verbatim}
215 \tcolorboxenvironment{definition}{
216 boxrule=0pt,
217 boxsep=0pt,
218 colback={White!90!Cerulean},
219 enhanced jigsaw,
220 borderline west={2pt}{0pt}{Cerulean},
221 sharp corners,
222 before skip=10pt,
223 after skip=10pt,
224 breakable,
225 }
226 \end{verbatim}
227 \end{definition}
228 \begin{theorem}
229 The \texttt{theorem} environment and the associated \texttt{tcolorbox} are provided by the following code in \texttt{NotesTeX.sty}:
230 \begin{verbatim}
231 \tcolorboxenvironment{theorem}{
232 boxrule=0pt,
233 boxsep=0pt,
234 colback={White!90!Dandelion},
235 enhanced jigsaw,
236 borderline west={2pt}{0pt}{Dandelion},
237 sharp corners,
238 before skip=10pt,
239 after skip=10pt,
240 breakable,
241 }
242 \end{verbatim}
243 \end{theorem}
244 \begin{lemma}
245 The \texttt{lemma} environment and the associated \texttt{tcolorbox} are provided by the following code in \texttt{NotesTeX.sty}:
246 \begin{verbatim}
247 \tcolorboxenvironment{lemma}{
248 boxrule=0pt,
249 boxsep=0pt,
250 blanker,
251 borderline west={2pt}{0pt}{Red},
252 before skip=10pt,
253 after skip=10pt,
254 sharp corners,
255 left=12pt,
256 right=12pt,
257 breakable,
258 }
259 \end{verbatim}
260 \end{lemma}
261 \begin{proof}
262 The \texttt{proof} environment and the associated \texttt{tcolorbox} are provided by the following code in \texttt{NotesTeX.sty}:
263 \begin{verbatim}
264 \tcolorboxenvironment{proof}{
265 boxrule=0pt,
266 boxsep=0pt,
267 blanker,
268 borderline west={2pt}{0pt}{NavyBlue!80!white},
269 before skip=10pt,
270 after skip=10pt,
271 left=12pt,
272 right=12pt,
273 breakable,
274 }
275 \end{verbatim}
276 \end{proof}
277 \begin{example}
278 The \texttt{example} environment and the associated \texttt{tcolorbox} are provided by the following code in \texttt{NotesTeX.sty}:
279 \begin{verbatim}
280 \tcolorboxenvironment{example}{
281 boxrule=0pt,
282 boxsep=0pt,
283 blanker,
284 borderline west={2pt}{0pt}{Black},
285 sharp corners,
286 before skip=10pt,
287 after skip=10pt,
288 left=12pt,
289 right=12pt,
290 breakable,
291 }
292 \end{verbatim}
293 \end{example}
294 \begin{remark}
295 The \texttt{remark} environment and the associated \texttt{tcolorbox} are provided by the following code in \texttt{NotesTeX.sty}:
296 \begin{verbatim}
297 \tcolorboxenvironment{remark}{
298 boxrule=0pt,
299 boxsep=0pt,
300 blanker,
301 borderline west={2pt}{0pt}{Green},
302 before skip=10pt,
303 after skip=10pt,
304 left=12pt,
305 right=12pt,
306 breakable,
307 }
308 \end{verbatim}
309 \end{remark}
310 \begin{exercise}
311 The exercise environment remains unchanged from the \texttt{amsthm} presets.
312 \end{exercise}
313
314
315
316 \subsection{\texttt{tcolorbox} Environment and Known Issues} % (fold)
317 \label{ssub:tcolorbox environments_and_known_issues}
318
319 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.}
320
321
322 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.
323
324 % subsubsection tcolorbox environments_and_known_issues (end)
325
326 \section{The Part Environment}\label{sec:part}
327 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.\\
328
329 \begin{fullpage}
330 {{\centering
331 \begin{tcolorbox}[width=\marginparwidth,height=\marginparwidth/2,colback=black!75!white,colframe=black!75!white,center title,fonttitle=\bfseries\normalsize,title=PART,text fill]
332 \begin{center}
333 {\color{white}\Huge\bfseries\#}
334 \end{center}
335 \end{tcolorbox}
336 }}
337 ~ \newline
338 \begin{verbatim}
339 \titleformat{\part}[hang]{{\thispagestyle{plain}}\Huge\bfseries}{\marginnote{
340 \begin{tcolorbox}
341 [width=\marginparwidth,height=\marginparwidth/2,colback=black!75!white,
342 colframe=black!75!white,center title,fonttitle=\bfseries\normalsize,title=PART,
343 text fill]
344
345 \begin{center}
346 {\color{white}\thepart}
347 \end{center}
348
349 \end{tcolorbox}
350 }[-1.25in]}{0pt}{\Huge\bfseries}
351 \end{verbatim}
352 \end{fullpage}
353
354 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}.
355 \newpage
356
357 \section{Fullpage Environment}\label{Sec: Fullpage}
358 \begin{fullpage}
359 The \texttt{fullpage} environment is defined by
360 \begin{center}
361 \texttt{$\backslash$begin\{fullpage\}}\\
362 $\cdots$\\
363 \texttt{$\backslash$end\{fullpage\}}
364 \end{center}
365 with the with of the \texttt{fullpage} environment given by \texttt{$\backslash$textwidth}+\texttt{$\backslash$marginparsep}+\texttt{$\backslash$marginparwidth}.\\
366 \end{fullpage}
367 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.}\\
368
369 \begin{fullpage}
370 \begin{verbatim}
371 \newenvironment{fullpage}{
372 {\smallskip\noindent
373 \begin{minipage}{\textwidth+\marginparwidth+\marginparsep}\hrule\smallskip\smallskip}
374 {\smallskip\smallskip\hrule\end{minipage}\vspace{.1in}
375 }
376 \end{verbatim}
377 \end{fullpage}
378
379 \begin{remark}
380 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.
381 \end{remark}
382
383 \begin{fullpage}
384 \begin{multicols}{2}
385 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.
386
387 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.
388 \end{multicols}
389 \end{fullpage}
390
391 \subsection{Known Issues with Fullpage}\label{Sub: Fullpage_Issues}
392
393 There are a few issues with the \texttt{fullpage} however.
394 \begin{remark}
395 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.
396 \end{remark}
397 \begin{remark}
398 \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.
399 \end{remark}
400
401 \newpage
402
403 \part{Advanced Page Formatting}
404 For those wanting to adjust the margin sizes, or the \texttt{fancyhdr} layout, there are a few comments that could be made here.
405 \section{Page Dimensions}
406 \textit{NotesTeX} relies on the \texttt{geometry} package to set its dimensions. The associated code is the deceptively simple chunk of code given by
407 \begin{verbatim}
408 \geometry{paperheight=845pt,paperwidth=597pt,
409 marginparsep=.02\paperwidth,marginparwidth=.23\paperwidth,
410 hoffset=-1in, voffset=-1in, headheight=.02\paperheight,
411 headsep=.03\paperheight,footskip=20pt,
412 textheight=.84\paperheight,textwidth=.64\paperwidth}.
413 \end{verbatim}
414 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.
415
416
417 \section{\texttt{Fancyhdr} Layout}
418 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
419 \begin{verbatim}
420 \pagestyle{fancy}%
421 \newlength{\offset}%
422 \setlength{\offset}{\marginparwidth + \marginparsep}%
423 \renewcommand{\sectionmark}[1]{\markboth{#1}{}}%
424 \renewcommand{\subsectionmark}[1]{\markright{#1}{}}%
425
426 \fancypagestyle{fancynotes}{%
427 \fancyhf{}%
428 \fancyheadoffset[rh]{\offset}%
429 \renewcommand{\headrulewidth}{0pt}%
430 \fancyhead[L]{\textsc{\leftmark}}%
431 \fancyhead[R]{\footnotesize \textit{\rightmark}~~~~ \thepage}%
432 }%
433 \end{verbatim}
434 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.
435
436 \end{document}