You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: latex-math/README.md
+36-11Lines changed: 36 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,14 +7,27 @@
7
7
The notation and shortcuts used in latex-files of lectures, papers, ... of the Chair of Statistical Learning and Data Science is defined and maintained in this repository.
8
8
Notation & shortcuts are split into multiple files depending on subject and can be integrated as needed.
9
9
10
-
+`basic-math`: basic mathematical notation such as mathematical spaces, sums & products, linear algebra, basic probability and statistics
11
-
+`basic-ml`: basic machine learning notation such as notation for data (x, y), prediction functions, likelihood, loss functions, generalization error
12
-
+`ml-nn`: neural networks
13
-
+`ml-svm`: support vector machines
14
-
+`ml-trees`: decision trees
15
-
+`ml-interpretable`: IML / xAI
16
-
17
-
:warning:**Important Usage Note**: If you encounter these files within a lecture or project repository, do not make any changes locally. Go to [slds-lmu/latex-math](https://github.com/slds-lmu/latex-math) and make your changes either directly or via pull request.
10
+
-`basic-math`: Basic mathematical notation such as mathematical spaces, sums & products, linear algebra, basic probability and statistics
11
+
-`basic-ml`: Basic machine learning notation such as notation for data (x, y), prediction functions, likelihood, loss functions, generalization error
:warning:**Important Usage Note**: If you encounter these files within a lecture or project repository, do not make any changes locally.
30
+
Go to [slds-lmu/latex-math](https://github.com/slds-lmu/latex-math) and make your changes either directly or via pull request.
18
31
Any local changes are assumed to be spurious and *will be overridden* with upstream `slds-lmu/latex-math`.
19
32
20
33
## Using the notation
@@ -31,22 +44,34 @@ Note that some of the macros defined here may use additional Latex packages -- a
31
44
\usepackage{mathtools}
32
45
\usepackage{bm} % basic-ml, ml-gp
33
46
\usepackage{siunitx} % basic-ml
34
-
\usepackage{dsfont} % basic-math
47
+
\usepackage{dsfont} % basic-math, not package is called `doublestroke` when installing via tlmgr
35
48
\usepackage{xspace} % ml-mbo
36
49
\usepackage{xifthen} % ml-interpretable
37
50
```
38
51
39
52
See `latex-math.pdf` for all currently defined commands & definitions.
40
53
54
+
Note that the file `preamble.tex` contains packages required for `latex-math.Rmd` to be rendered, which are not necessarily all packages you would need in a fresh LaTeX project, since RMarkdown by default includes various required packages already.
55
+
41
56
## Updating / adding files
42
57
43
58
- A new shortcut / notation that falls into the scope of one of the existing files should be added in the respective file with a short description.
44
59
- Multiple shortcuts / notations belonging to another major subject should be summarized in a new .tex file.
45
60
-**ALWAYS** check if a command is already contained in one of the files - overwriting a command might result in compiling errors.
46
61
-**ALWAYS recompile `latex-math.Rmd` if you add new commands so it is kept up-to-date and to check that you have committed all the changes your notation requires to work.**
62
+
- If you add a new file, make sure it is added as an `include` in the header of `latex-math.Rmd` such that it is included in the rendered preview
47
63
48
-
To ensure recompilation is not forgotten, please install the pre-commit hook:
64
+
## Building
65
+
66
+
Use the included `Makefile` to render `latex-math.pdf` and to create the combined .tex file `latex-math-combined.tex`:
0 commit comments