-
Notifications
You must be signed in to change notification settings - Fork 3
/
macros.tex
43 lines (26 loc) · 853 Bytes
/
macros.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
\newcommand*\submitdate{1. April 2020}
%% ABBREVIATIONS & MACROS
\newcommand{\swname}[1]{\texttt{#1}}
%% GENERAL MATHS STUFF
\newcommand*{\diff}{\mathrm{d}}
\newcommand*{\pdiff}[0]{\partial}
\newcommand*{\dd}[2][]{\frac{\pdiff #1}{\pdiff #2}}
%% CHAPTER MATERIALS AND METHODS
\newcommand*{\vel}{v}
\newcommand*{\loc}{x}
\newcommand*{\acc}{a}
\newcommand*{\mass}{m}
\newcommand*{\force}{f}
% convenience commands that make writing faster and also allow easily changing formatting later during the writing process
\newcommand*{\matlab}{\swname{Matlab}}
\newcommand*{\python}{\swname{Python}}
\newcommand*{\pgfplots}{\swname{pgfplots}}
\newcommand*{\gnuplot}{\swname{gnuplot}}
%% CHAPTER CONCEPT
\newcommand*{\Bfun}{B}
\newcommand*{\Afun}{A}
%%%%% Emacs-related stuff
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "main"
%%% End: