-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tex
113 lines (93 loc) · 3.64 KB
/
main.tex
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
\documentclass[11pt, letterpaper, titlepage]{report}
\usepackage[utf8]{inputenc}
\usepackage{geometry}
\usepackage{color,graphicx,overpic,wrapfig}
\usepackage{fancyhdr} % header/footer stuff
\usepackage{amssymb} % math symbols
\usepackage{mathtools} % more math stuff
\usepackage{siunitx} % for SI units, ex. $3.5 ~ \si{kg.s^{-2}}$
\usepackage{hyperref} % for hyperlinks
\usepackage{subfiles}
% Page geometry
\geometry{top=2.54cm, left=2.1cm, right=2.1cm, bottom=2.1cm}
% Indentation/space between paragraphs
\setlength{\headheight}{12pt}
\renewcommand{\baselinestretch}{1.5}
\setlength{\parskip}{0.3cm}
\setlength{\parindent}{0.6cm}
% Title page
\title{\textbf{\Huge{ \begin{center}
Physics 230 Notes\\ % Document name
\end{center} }}}
\author{ Lora Ma and Benjamin Kong\\}
% Header/Footer
\pagestyle{fancy}
\rhead{\thepage}
\lhead{Header}
\rfoot{}
% Hyperlink colors
\hypersetup{
colorlinks=true,
linkcolor=blue,
filecolor=blue,
urlcolor=blue,
}
% Format for creating new command: \newcommand{name}[num][default]{definition}
\DeclareMathOperator{\di}{d\!} % derivative operator symbol, ex. $\int f(x) \di x$
\newcommand{\Eval}[3]{\left.#1\right\rvert_{#2}^{#3}} % evaluation bar (ex. evaluating integral or $\Eval{F(x)}{0}{2}$)
\newcommand{\barrows}{\textcolor{magenta}{\Longrightarrow}\quad} % long arrow (start of line)
\newcommand{\barrow}{\quad\textcolor{magenta}{\Longrightarrow}\quad} %long arrow
\newcommand{\sumi}[1][1]{ \sum_{n={#1}}^{\infty} } % sum starting at n = 1
\newcommand{\limi}[1][n]{ \lim_{{#1}\to\infty} } % limit as n goes to infinity
\newcommand{\ddx}[1][x]{ \dfrac{\text{d}}{\di #1} } % derivative operator
\newcommand{\dyd}[2][y]{ \dfrac{\di #1}{\di #2} } % derivative of y w.r.t. x, (ex. \dyd{x} or \dyd[g]{t}).
\newcommand{\bracks}[1]{ \left( #1 \right) } % scaled left and right brackets
\newcommand{\pfrac}[2]{\left(\frac{#1}{#2}\right)} % scaled fraction with left/right brackets
\newcommand{\tpfrac}[2]{\left(\tfrac{#1}{#2}\right)} % tiny fraction with left/right brackets
\newcommand{\abs}[1]{\left| #1 \right|} % scaled fraction with left/right brackets
\newcommand{\norm}[1]{\left\| #1 \right\|} % scaled fraction with left/right brackets
\newcommand{\abracks}[1]{\langle #1 \rangle} % angled l/r brackets for vectors
\newcommand{\cbracks}[1]{\left\{ #1 \right\}} % scaled curly l/r brackets
\newcommand{\sbracks}[1]{\left[ #1 \right]} % scaled square l/r brackets
% $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ %
% $$$$$$$$$$$$$ CUSTOM SYMBOLS $$$$$$$$$$$$$$ %
\newcommand{\R}{\mathbb{R}} % Real numbers
\newcommand{\infnums}{1,2,\ldots}
\newcommand{\Bv}{ \vec{B} }
\newcommand{\Ev}{ \vec{E} }
\newcommand{\Fv}{ \vec{F} }
\newcommand{\Jv}{ \vec{J} }
\newcommand{\Av}{ \vec{A} }
\newcommand{\Nabv}{ \vec{\nabla} }
\newcommand{\vv}{ \vec{v} }
% $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ %
\makeatletter
\fancypagestyle{mypagestyle}{%
\fancyhf{}% Clear header/footer
\fancyfoot[C]{\thepage}% Page # in middle/centre of footer
\renewcommand{\headrulewidth}{0pt}% .4pt header rule
\def\headrule{{\if@fancyplain\let\headrulewidth\plainheadrulewidth\fi
\color{red}\hrule\@height\headrulewidth\@width\headwidth \vskip-\headrulewidth}}
\renewcommand{\footrulewidth}{0pt}%
}
\makeatother
\pagestyle{mypagestyle}
\begin{document}
\maketitle
\pagenumbering{gobble}
\maketitle % Create the title page first.
{
\hypersetup{}
\parskip 0pt
\tableofcontents
} % Table of contents next.
\newpage
\pagenumbering{arabic}
\pagestyle{mypagestyle}
\subfile{Chapters/chap6.tex}
\subfile{Chapters/chap7.tex}
\subfile{Chapters/chap8.tex}
\subfile{Chapters/chap9.tex}
\subfile{Chapters/chap10.tex}
\subfile{Chapters/chap11.tex}
\end{document}