forked from jturner314/engineering-equations
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpreamble.tex
More file actions
80 lines (58 loc) · 1.86 KB
/
Copy pathpreamble.tex
File metadata and controls
80 lines (58 loc) · 1.86 KB
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
% Copyright (C) 2013 Jim Turner
%
% This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License. To
% view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/deed.en_US.
% Page margins
\usepackage[margin=1in]{geometry}
% Muticolumn
\usepackage{multicol}
% Subcaptions
\usepackage{subcaption}
% Graphics
\usepackage{graphicx}
% Better tables
\usepackage{longtable}
\usepackage{tabu}
\usepackage{booktabs}
% Mathematics
\usepackage{amsmath}
% Bold math symbols (e.g. vectors)
\usepackage{bm}
% Differential operators and derivatives
\usepackage{commath}
% Numbers and units
\usepackage{siunitx}
\sisetup{per-mode = symbol,
inter-unit-product = \ensuremath{{}\cdot{}}}
% Misc LaTeX patches
\usepackage{fixltx2e}
% Compact list environments
\usepackage{mdwlist}
% Title without author and date
\makeatletter
\renewcommand{\@maketitle}{\newpage\null\begin{center}{\LARGE \@title \par}\end{center}\par}
\makeatother
% Description environment labels are not bold and are followed by colon
\renewcommand*\descriptionlabel[1]{\hspace\labelsep\normalfont #1:}
% Shorthand for \mathrm
\newcommand{\mrm}[1]{\mathrm{#1}}
% Bold vectors
\renewcommand{\vec}[1]{\bm{#1}}
\newcommand{\uvec}[1]{\bm{\hat{#1}}}
% Del operator
\renewcommand{\del}{\vec{\nabla}}
% Multiletter variables
\newcommand{\var}[1]{\mathord{\mathit{#1}}}
% Vector/matrix transpose
\newcommand{\transpose}[1]{{{#1}^\top}}
% Volume
\newcommand{\volsym}{\settowidth{\dimen255}{V}\ooalign{$V$\cr\rule[.7ex]{\dimen255}{.4pt}\cr}}
% Error function and its complement
\DeclareMathOperator\erf{erf}
\DeclareMathOperator\erfc{erfc}
% Copyright notice on first page
\usepackage{fancyhdr}
\renewcommand{\headrulewidth}{0pt}
% Hyperlinks and PDF document title
\usepackage[pdftex]{hyperref}
\hypersetup{colorlinks,citecolor=black,filecolor=black,linkcolor=black,urlcolor=black}