Integrate LaTeX in Jupyter Notebook
Why not?
Why ?
I wanted to try LaTeX because seeing a nice mathematical formula from time to time is nice.
Moreover, I realized that all my mathematics books during my studies were written with this tool, the font is very recognizable. So now nostalgia has caught up with me! And the usual desire to discover a new tool.
Install on my computer
On my computer, I use Visual Studio Code and the two extensions LaTeX Utilities and LaTeX Workshop and the LaTeX distribution TeX Live. Thanks to Linux Magazine n°242 for the help.
Use in a Notebook
But here, I wanted to test LaTeX in a Jupyter NoteBook.
Cheat sheet on LaTeX
One page with a lot of informations A quick guide to LATEX, very useful.
Parenthesis, bracket and brace
$$\cos{\left(\frac{1}{x}\right)}$$
$$\cos{\left(\frac{1}{x}\right)}$$
$$\left\{\begin{array}{ll} x-1=2\\x+1=4 \end{array} \right.$$
$$\left\{\begin{array}{ll} x-1=2\\x+1=4 \end{array} \right.$$
$$\overbrace{AB^2 + AC^2 = BC^2}^{\text{Pythagor's theorem}}$$
$$\overbrace{AB^2 + AC^2 = BC^2}^{\text{Pythagor's theorem}}$$
Matrix
$$\begin{pmatrix}
a & b & c\\
d & e & f\\
g & h & i\\
\end{pmatrix}$$
$$\begin{pmatrix}
a & b & c\\
d & e & f\\
g & h & i\\
\end{pmatrix}$$
$$\begin{Bmatrix}
a & b & c\\
\vdots & \vdots & \vdots\\
g & h & i\\
\end{Bmatrix}$$
$$\begin{Bmatrix}
a & b & c\\
\vdots & \vdots & \vdots\\
g & h & i\\
\end{Bmatrix}$$