this is for holding javascript data
Alex Iverson added DefCommands.tex
over 9 years ago
Commit id: 244af380a032b1b2e8f1b43e90b5a0996782e631
deletions | additions
diff --git a/DefCommands.tex b/DefCommands.tex
new file mode 100644
index 0000000..fa0489f
--- /dev/null
+++ b/DefCommands.tex
...
Defining commands
\newcommand{\units}[1]{{\renewcommand{\.}{\!\cdot\!}\rm\,#1}}
\newcommand{\sci}[1]{\times 10^{#1}}
\newcommand{\sub}[1]{_{\text{#1}}}
\newcommand{\textfrac}[2]{{\textstyle\frac{#1}{#2}}}
\newcommand{\half}{\textfrac{1}{2}}
\newcommand{\infinity}{\infty}
\newcommand{\degree}{\ensuremath{{}^{\circ}}}
\newcommand{\abs}[1]{\left| #1 \right|}