-
Notifications
You must be signed in to change notification settings - Fork 61
/
math.yml
155 lines (155 loc) · 4.5 KB
/
math.yml
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
title: Equations and math
cases:
- title: equation \[ ... \]
tex: |-
\[
x^2 - 5 x + 6 = 0
\]
tree:
type: root
children:
- type: math
value: |-
x^2 - 5 x + 6 = 0
- title: double dollar equation
tex: |-
$$
x^2 - 5 x + 6 = 0
$$
tree:
type: root
children:
- type: math
value: |-
x^2 - 5 x + 6 = 0
- title: labelled equation
tex: |-
\begin{equation} \label{eq:solve}
x^2 - 5 x + 6 = 0
\end{equation}
tree:
type: root
children:
- type: math
value: |-
\begin{equation} \label{eq:solve}
x^2 - 5 x + 6 = 0
\end{equation}
- title: inline math
tex: |-
For example, $\cos (2\theta) = \cos^2 \theta - \sin^2 \theta$.
tree:
type: root
children:
- type: paragraph
children:
- type: text
value: 'For example, '
- type: inlineMath
value: \cos (2\theta) = \cos^2 \theta - \sin^2 \theta
- type: text
value: '.'
- title: inline math (alternative style)
tex: |-
For example, \(\cos (2\theta) = \cos^2 \theta - \sin^2 \theta\).
tree:
type: root
children:
- type: paragraph
children:
- type: text
value: 'For example, '
- type: inlineMath
value: \cos (2\theta) = \cos^2 \theta - \sin^2 \theta
- type: text
value: '.'
- title: pmatrix
tex: |-
\begin{pmatrix}
a_{1,1} & a_{1,2} & \cdots & a_{1,n} \\
a_{2,1} & a_{2,2} & \cdots & a_{2,n} \\
\vdots & \vdots & \ddots & \vdots \\
a_{m,1} & a_{m,2} & \cdots & a_{m,n}
\end{pmatrix}
tree:
type: root
children:
- type: math
value: |-
\begin{pmatrix}
a_{1,1} & a_{1,2} & \cdots & a_{1,n} \\
a_{2,1} & a_{2,2} & \cdots & a_{2,n} \\
\vdots & \vdots & \ddots & \vdots \\
a_{m,1} & a_{m,2} & \cdots & a_{m,n}
\end{pmatrix}
- title: pmatrix*
tex: |-
\begin{pmatrix*}
a_{1,1} & a_{1,2} & \cdots & a_{1,n} \\
a_{2,1} & a_{2,2} & \cdots & a_{2,n} \\
\vdots & \vdots & \ddots & \vdots \\
a_{m,1} & a_{m,2} & \cdots & a_{m,n}
\end{pmatrix*}
tree:
type: root
children:
- type: math
value: |-
\begin{pmatrix*}
a_{1,1} & a_{1,2} & \cdots & a_{1,n} \\
a_{2,1} & a_{2,2} & \cdots & a_{2,n} \\
\vdots & \vdots & \ddots & \vdots \\
a_{m,1} & a_{m,2} & \cdots & a_{m,n}
\end{pmatrix*}
- title: align*
tex: |-
\begin{align*}
\nabla \times \vec{e}+\frac{\partial \vec{b}}{\partial t}&=0 \\
\nabla \times \vec{h}-\vec{j}&=\vec{s}\_{e}
\end{align*}
tree:
type: root
children:
- type: math
value: |-
\begin{align*}
\nabla \times \vec{e}+\frac{\partial \vec{b}}{\partial t}&=0 \\
\nabla \times \vec{h}-\vec{j}&=\vec{s}\_{e}
\end{align*}
- title: subequations
tex: |-
\begin{subequations} \label{eq:system}
\begin{align}
x + y & \geq 0 \label{eq:sum} \\
x - y & \leq 4 \label{eq:diff}\\
x \times y & \geq 1 \label{eq:prod} \\
x^y + y^x &\geq 1 \label{eq:exp_sum}
\end{align}
\end{subequations}
tree:
type: root
children:
- type: mathGroup
label: eq:system
identifier: eq:system
equations:
- |-
\begin{align}
x + y & \geq 0 \label{eq:sum} \\
x - y & \leq 4 \label{eq:diff}\\
x \times y & \geq 1 \label{eq:prod} \\
x^y + y^x &\geq 1 \label{eq:exp_sum}
\end{align}
children:
- type: math
value: \begin{align*}x + y & \geq 0 \label{eq:sum}\end{align*}
kind: subequation
- type: math
value: \begin{align*}x - y & \leq 4 \label{eq:diff}\end{align*}
kind: subequation
- type: math
value: \begin{align*}x \times y & \geq 1 \label{eq:prod}\end{align*}
kind: subequation
- type: math
value: \begin{align*}x^y + y^x &\geq 1 \label{eq:exp_sum}\end{align*}
kind: subequation