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.

Inside of your Markdown cell: formula between two $

  • integrated formula: $f(x) = 2 \times x$

      $f(x) = 2 \times x$

  • center formula: $$f(x) = 2 \times x$$

      $$f(x) = 2 \times x$$

Cheat sheet on LaTeX

One page with a lot of informations A quick guide to LATEX, very useful.

Insert text inside a formula \text

$$f(x) = 2x \text{ with } 0 \le x \leq 5$$

$$f(x) = 2x \text{ with } 0 \le x \leq 5$$

Vector and other hats

$$\overrightarrow{AB\ }$$

$$\overrightarrow{AB\ }$$

$$\overline{AB\ }$$

$$\overline{AB\ }$$

$$\widehat{ABC\ }$$

$$\widehat{ABC\ }$$

$$\vec{A\ }$$

$$\vec{A\ }$$

$$\vec{\imath}$$

$$\vec{\imath}$$

Predefined functions \cos

$$\cos{(x+1)}$$

$$\cos{(x+1)}$$

$$\sqrt{(x+1)}$$

$$\sqrt{(x+1)}$$

$$\sqrt[3]{(x+1)}$$

$$\sqrt[3]{(x+1)}$$

Exponent and subscript

$$x_i+1=2^x-1$$          [hard to read but works]

$$x_i+1=2^x-1$$

$$x_i + 1 = 2^x - 1$$    [same result]

$$x_i + 1 = 2^x - 1$$

$$x_{i + 1} = 2^{x - 1}$$

$$x_{i + 1} = 2^{x - 1}$$

Limit, sum and integral

$$\lim_{x \to \infty} x + 1$$

$$\lim_{x \to \infty} x + 1$$

$$\sum_{i=1}^{10} x_i$$

$$\sum_{i=1}^{10} x_i$$

$$\prod_{i=1}^{10} \sqrt[i]{x_i^2 - 1}$$

$$\prod_{i=1}^{10} \sqrt[i]{x_i^2 - 1}$$

$$\int_{0}^{1} 2x\,dx$$

$$\int_{0}^{1} 2x\,dx$$

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}$$