-
Notifications
You must be signed in to change notification settings - Fork 7
/
tex.txt
74 lines (59 loc) · 1.29 KB
/
tex.txt
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
\operatorname{ReLU}(...)
\bar{x}_t // bar over x
\hat{x} // < over x
# Dots
\ldots // ...
\cdots // centered dots
\ddots // diagonal dots
\cdot // centered dot
\odot // dot with circle around
# Arrows
\overrightarrow // -> above char
\overleftarrow // <- above char
# Space
\quad, \qquad
# Symbols
~: \textasciitilde
# Cite
\citep{x} // [1]
\citet{x} // Author name, [1]
\citeauthor{x} // Author name
\newcommand{Cmd}[2]{cmd#1cmd#s}
# References
\usepackage[...]{cleveref}
nameinlink // include name in hyper-link
noabbrev // always figure instead of fig.
\cref{fig:figure} -> 'figure 1'
\Cref{fig:figure} -> 'Figure 1'
\cref{a,b} -> 'Figure a and b'
## Customize label format
\usepackage[nameinlink,noabbrev]{cleveref}
\creflabelformat{equation}{#2#1#3} // lower-case
\creflabelformat{Equation}{#2#1#3} // upper-case
# Quotes
`single quote'
``double quote''
-, --, --- // hyphen
# Ungefaehr
${\sim}60\%$
${\approx}60\%$
# input vs. include
\input{file}
* copy-pastes file
\include{file}
* adds \clearpage
* creates aux file -> faster
* but can not be nested
# Align environment
* aligned by &
* \nonumber for no label
\begin{align}
a&=... \nonumber \\
\begin{end}
# setspace
\usagepackage{setspace}
\singlespacing
\onehalfspacing
\doublespacing
\begin{singlespace}
\begin{spacing}{1.0}