-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
509 lines (505 loc) · 16.4 KB
/
index.html
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
<!DOCTYPE html>
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>notes</title>
<meta content="IE=edge" http-equiv="X-UA-Compatible" />
<meta content="width=device-width, initial-scale=1" name="viewport" />
<meta content="Edward A. Roualdes" name="author" />
<link
crossorigin="anonymous"
href="./index_files/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
rel="stylesheet"
/>
<style type="text/css">
.container {
margin-left: auto;
margin-right: auto;
max-width: 650px;
}
* {
color: #666;
}
/* Create three equal columns that floats next to each other */
.column {
float: left;
width: 33.33%;
/* padding: 10px; */
/* height: 300px; */
/* Should be removed. Only for demonstration */
}
/* Clear floats after the columns */
.row:after {
content: "";
/* display: table; */
/* clear: both; */
}
/* Remove the Dot in List Environment */
ul {
list-style-type: none;
}
</style>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script
async
src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"
></script>
<script
async
src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"
></script>
<![endif]-->
<script
crossorigin="anonymous"
integrity="sha256-E3P3OaTZH+HlEM7f1gdAT3lHAn4nWBZXuYe89DFg2d0="
src="https://code.jquery.com/jquery-3.6.2.slim.min.js"
></script>
<link
crossorigin="anonymous"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N"
rel="stylesheet"
/>
<script
crossorigin="anonymous"
integrity="sha384-+sLIOodYLS7CIrQpBjl+C7nPvqq+FbNUBDunl/OZv93DB7Ln/533i8e/mZXLi/P+"
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"
></script>
<link
crossorigin="anonymous"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css"
integrity="sha384-vKruj+a13U8yHIkAyGgK1J3ArTLzrFGBbBc0tDp4ad/EyewESeXE/Iv67Aj8gKZ0"
rel="stylesheet"
/>
<!-- The loading of KaTeX is deferred to speed up page rendering -->
<script
crossorigin="anonymous"
defer=""
integrity="sha384-PwRUT/YqbnEjkZO0zZxNqcxACrXe+j766U2amXcgMg5457rve2Y7I6ZJSm2A0mS4"
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js"
></script>
<!-- To automatically render math in text elements, include the auto-render extension: -->
<script
crossorigin="anonymous"
defer=""
integrity="sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05"
onload="renderMathInElement(document.body);"
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js"
></script>
<script>
document.addEventListener("DOMContentLoaded", function () {
renderMathInElement(document.body, {
delimiters: [
{ left: "$$", right: "$$", display: true },
{ left: "$", right: "$", display: false },
{ left: "\\(", right: "\\)", display: false },
{ left: "\\[", right: "\\]", display: true },
],
});
});
</script>
<link href="./index_files/atom-one-light.min.css" rel="stylesheet" />
<script src="./index_files/highlight.pack.js"></script>
<script>
hljs.initHighlightingOnLoad();
</script>
<script>
$(document).ready(function () {
$("#notesSearch").on("keyup", function () {
var value = $(this).val().toLowerCase();
$("#data")
.children("li")
.filter(function () {
var inText = $(this).text().toLowerCase().indexOf(value) > -1;
var inDataTags =
$(this).find(`[data-tag*='${value}']`).length > 0;
$(this).toggle(inText || inDataTags);
});
});
});
</script>
</head>
<body>
<div class="container">
<nav class="navbar navbar-expand-sm">
<a class="navbar-brand" href=""> A $\LaTeX$ Cheat Sheet </a>
<button
aria-controls="navbarDropdown"
aria-expanded="false"
aria-label="Toggle navigation"
class="navbar-toggler navbar-light"
data-target="#navbarDropdown"
data-toggle="collapse"
type="button"
>
<span class="navbar-toggler-icon"> </span>
</button>
</nav>
<hr />
<p>
A $\LaTeX$ cheat sheet inspired by
<a href="https://github.com/KVentayen"> Karl Ventayen </a>
.
</p>
<p>
For now, this site focuses on statistics notation, because that's where
this idea first came from.
</p>
<p>
Search for some math, $\LaTeX$, or other key terms. $\LaTeX$ code for
the math symbols show up in
<code> this color and style </code>
. Most of this syntax should be portable across various $\LaTeX$
implementations. This site uses
<a href=""> $\KaTeX$ </a>
and assumes you know enough already to surround all the
<code> latex code </code>
in dollar signs, like
<code> $\alpha$ </code>
to get $\alpha$. And use double dollar signs to get display mode math,
that is centered and generally taller math expressions.
</p>
<div class="md-form mt-0">
<input
aria-label="Search"
class="form-control"
id="notesSearch"
placeholder="Search notes"
type="text"
/>
</div>
<br />
<ul id="data">
<div class="row" data-tag="" style="text-align: center">
<div class="column" style="background-color: #59bfff">
Description
</div>
<div class="column" style="background-color: #8cd3ff">
$\LaTeX$ Output
</div>
<div class="column" style="background-color: #bfe6ff">
$\LaTeX$ Code
</div>
</div>
<li>
<div class="row" data-tag="math">
<div class="column">Expectation Formula</div>
<div class="column">$\mathbb{E}[X] = \int_{S} x f(x) dx$</div>
<div class="column">
<code> \mathbb{E}[X] = \int_{S} x f(x) dx </code>
</div>
</div>
</li>
<li>
<div class="row" data-tag="greek, alpha">
<div class="column">alpha (lowercase)</div>
<div class="column">$\alpha$</div>
<div class="column">
<code> \alpha </code>
</div>
</div>
</li>
<li>
<div class="row" data-tag="greek, beta">
<div class="column">beta (lowercase)</div>
<div class="column">$\beta$</div>
<div class="column">
<code> \beta </code>
</div>
</div>
</li>
<li>
<div class="row" data-tag="greek, gamma">
<div class="column">gamma (lowercase)</div>
<div class="column">$\gamma$</div>
<div class="column">
<code> \gamma </code>
</div>
</div>
</li>
<li>
<div class="row" data-tag="greek, delta">
<div class="column">delta (lowercase)</div>
<div class="column">$\delta$</div>
<div class="column">
<code> \delta </code>
</div>
</div>
</li>
<li>
<div class="row" data-tag="greek, epsilon">
<div class="column">epsilon (lowercase)</div>
<div class="column">$\epsilon$</div>
<div class="column">
<code> \epsilon </code>
</div>
</div>
</li>
<li>
<div class="row" data-tag="greek, zeta">
<div class="column">zeta (lowercase)</div>
<div class="column">$\zeta$</div>
<div class="column">
<code> \zeta </code>
</div>
</div>
</li>
<li>
<div class="row" data-tag="greek, eta">
<div class="column">eta (lowercase)</div>
<div class="column">$\eta$</div>
<div class="column">
<code> \eta </code>
</div>
</div>
</li>
<li>
<div class="row" data-tag="greek, theta">
<div class="column">theta (lowercase)</div>
<div class="column">$\theta$</div>
<div class="column">
<code> \theta </code>
</div>
</div>
</li>
<li>
<div class="row" data-tag="greek, iota">
<div class="column">iota (lowercase)</div>
<div class="column">$\iota$</div>
<div class="column">
<code> \iota </code>
</div>
</div>
</li>
<li>
<div class="row" data-tag="greek, kappa">
<div class="column">kappa (lowercase)</div>
<div class="column">$\kappa$</div>
<div class="column">
<code> \kappa </code>
</div>
</div>
</li>
<li>
<div class="row" data-tag="greek, lambda">
<div class="column">lambda (lowercase)</div>
<div class="column">$\lambda$</div>
<div class="column">
<code> \lambda </code>
</div>
</div>
</li>
<li>
<div class="row" data-tag="greek, mu">
<div class="column">mu (lowercase)</div>
<div class="column">$\mu$</div>
<div class="column">
<code> \mu </code>
</div>
</div>
</li>
<li>
<div class="row" data-tag="greek, nu">
<div class="column">nu (lowercase)</div>
<div class="column">$\nu$</div>
<div class="column">
<code> \nu </code>
</div>
</div>
</li>
<li>
<div class="row" data-tag="greek, xi">
<div class="column">xi (lowercase)</div>
<div class="column">$\xi$</div>
<div class="column">
<code> \xi </code>
</div>
</div>
</li>
<li>
<div class="row" data-tag="greek, omicron">
<div class="column">omicron (lowercase)</div>
<div class="column">$\omicron$</div>
<div class="column">
<code> \omicron </code>
</div>
</div>
</li>
<li>
<div class="row" data-tag="greek, pi">
<div class="column">pi (lowercase)</div>
<div class="column">$\pi$</div>
<div class="column">
<code> \pi </code>
</div>
</div>
</li>
<li>
<div class="row" data-tag="greek, rho">
<div class="column">rho (lowercase)</div>
<div class="column">$\rho$</div>
<div class="column">
<code> \rho </code>
</div>
</div>
</li>
<li>
<div class="row" data-tag="greek, sigma">
<div class="column">sigma (lowercase)</div>
<div class="column">$\sigma$</div>
<div class="column">
<code> \sigma </code>
</div>
</div>
</li>
<li>
<div class="row" data-tag="greek, tau">
<div class="column">tau (lowercase)</div>
<div class="column">$\tau$</div>
<div class="column">
<code> \tau </code>
</div>
</div>
</li>
<li>
<div class="row" data-tag="greek, upsilon">
<div class="column">upsilon (lowercase)</div>
<div class="column">$\upsilon$</div>
<div class="column">
<code> \upsilon </code>
</div>
</div>
</li>
<li>
<div class="row" data-tag="greek, phi">
<div class="column">phi (lowercase)</div>
<div class="column">$\phi$</div>
<div class="column">
<code> \phi </code>
</div>
</div>
</li>
<li>
<div class="row" data-tag="greek, chi">
<div class="column">chi (lowercase)</div>
<div class="column">$\chi$</div>
<div class="column">
<code> \chi </code>
</div>
</div>
</li>
<li>
<div class="row" data-tag="greek, psi">
<div class="column">psi (lowercase)</div>
<div class="column">$\psi$</div>
<div class="column">
<code> \psi </code>
</div>
</div>
</li>
<li>
<div class="row" data-tag="greek, omega">
<div class="column">omega (lowercase)</div>
<div class="column">$\omega$</div>
<div class="column">
<code> \omega </code>
</div>
</div>
</li>
<li>
<div class="row" data-tag="probability, chebyshev">
<div class="column">Chebyshev Probability</div>
<div class="column">
$\mathbb{P}[|X - \mu| \geq k \sigma] \leq \frac{1}{k^2}$
</div>
<div class="column">
<code>
\mathbb{P}[|X - \mu| \geq k \sigma] \leq \frac{1}{k^2}
</code>
</div>
</div>
</li>
<li>
<div class="row" data-tag="fraction">
<div class="column">Fraction</div>
<div class="column">$\frac{x^2}{\mu/2}$</div>
<div class="column">
<code> \frac{x^2}{\mu/2} </code>
</div>
</div>
</li>
<li>
<div class="row" data-tag="superscript, subscript">
<div class="column">Superscript, Subscript</div>
<div class="column">$x_{i-1}^{2y}$</div>
<div class="column">
<code> x_{i-1}^{2y} </code>
</div>
</div>
</li>
<li>
<div class="row" data-tag="superscript, subscript, integral, display">
<div class="column">Integral with Limits</div>
<div class="column">$\int_{0}^{1} x^2 dx$</div>
<div class="column">
<code> \int_{0}^{1} x^2 dx </code>
</div>
</div>
</li>
<li>
<div class="row" data-tag="conditional, probability">
<div class="column">Conditinal Probability</div>
<div class="column">$\mathbb{P}[X \in A| Y = 2] = 0.5$</div>
<div class="column">
<code> \mathbb{P}[X \in A| Y = 2] = 0.5 </code>
</div>
</div>
</li>
<li>
<div class="row" data-tag="set, in, contained in">
<div class="column">Element in Set</div>
<div class="column">$a \in A$</div>
<div class="column">
<code> a \in A </code>
</div>
</div>
</li>
<li>
<div class="row" data-tag="set, subset">
<div class="column">Subset of Set</div>
<div class="column">$A \subset B$</div>
<div class="column">
<code> A \subset B </code>
</div>
</div>
</li>
<li>
<div class="row" data-tag="sum, expectation">
<div class="column">Expectation Formula</div>
<div class="column">
$\mathbb{E}[X] = \sum_{x \in \{0, 1\}} x * f(x) = 0 * f(0) + 1 *
f(1)$
</div>
<div class="column">
<code>
$\mathbb{E}[X] = \sum_{x \in \{0, 1\}} x * f(x) = 0 * f(0) + 1 *
f(1)$
</code>
</div>
</div>
</li>
<li>
<div class="row" data-tag="curly brace">
<div class="column">Curly Brace</div>
<div class="column">$\{0, 1, 2, 3\}$</div>
<div class="column">
<code> \{0, 1, 2, 3\} </code>
</div>
</div>
</li>
</ul>
</div>
</body>
</html>