-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path_newcommands.tex
More file actions
39 lines (31 loc) · 1.31 KB
/
_newcommands.tex
File metadata and controls
39 lines (31 loc) · 1.31 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
%!TEX root = template.tex
% general commands
\renewcommand{\>}{\frqq}
\newcommand{\<}{\flqq}
\newcommand{\myquote}[1]{\frqq{}#1\flqq{}\xspace}
\newcommand{\mysinglequote}[1]{\frq#1\flq{}\xspace}
% shortcuts for references
\newcommand{\fig}[1]{\hyperref[#1]{Figure \ref*{#1}}}
\newcommand{\tab}[1]{\hyperref[#1]{Table \ref*{#1}}}
\newcommand{\eq}[1]{\hyperref[#1]{Equation \ref*{#1}}}
\newcommand{\Sec}[1]{\hyperref[#1]{Section \ref*{#1}}}
% circled numbers
\newcommand*\circled[1]{\tikz[baseline=(char.base)]{
\node[shape=circle,draw,inner sep=1.5pt] (char) {#1};}}
% citation needed
\newcommand{\todocite}[0]{\todo[color=green!40]{Source}}
% useful commands for equations
\newcommand{\e}{\enspace} % width of one digit
\newcommand{\dd}{\,\mathrm{d}}
% \newcommand{\del}{\partial} % comes from package commath
\newcommand{\Ra}{\Rightarrow}
\newcommand{\ra}{\rightarrow}
\renewcommand{\vec}[1]{\underline{#1}}
\newcommand{\heq}{\widehat{=}}
\renewcommand{\deg}{$\,^\circ$}
\newcommand{\chindof}{\chi^2/\mathrm{ndof}}
\newcommand{\xcal}[1]{\text{\usefont{OMS}{cmsy}{m}{n}#1}} % Use original mathcal font instead of charters mathcal version
\newcommand{\orderof}[1]{$\xcal{O}\left( #1 \right)$} % \orderof{\si{\metre}} now is more beautiful
% new units for siunitx package
\DeclareSIUnit\event{ev}
\DeclareSIUnit\channel{ch}