๐ ๐จโ๐ป ๐ LaTeX Templates for Use with Quarto
.qmd files, both inline and in block form.
โ Back to the Programming Reading Guide ๐จโ๐ป
โ Back to the LaTeX Section ๐
โ Back to the Programming Section ๐จโ๐ป

1 ๐ ๐จโ๐ป ๐ LaTeX Templates for Use with Quarto
1.1 Introduction
Quarto allows the use of mathematical formulas with LaTeX inside .qmd files, both inline and in blocks.
This makes it possible to create scientific, technical, and educational documents with precise and elegant mathematical notation.
1.2 Inline Equations
Inline equations are written between $ and $:
Example:
Euler's identity is: $e^{i\pi} + 1 = 0$Result:
Eulerโs identity is: \(e^{i\pi} + 1 = 0\)
1.3 Block Equations
Block equations use $$ as delimiters and are centered:
$$
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
$$Result:
\[ x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \]
1.4 Systems of Equations
You can use \begin{align} or \begin{cases}:
$$
\begin{cases}
x + y = 2 \\
2x - y = 3
\end{cases}
$$Result:
\[ \begin{cases} x + y = 2 \\ 2x - y = 3 \end{cases} \]
1.5 Matrices
$$
A = \begin{bmatrix}
1 & 2 \\
3 & 4
\end{bmatrix}
$$Result:
\[ A = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} \]
1.6 Summations, Products, Integrals
$$
\sum_{i=1}^{n} i = \frac{n(n+1)}{2}
$$
$$
\prod_{k=1}^{n} k = n!
$$
$$
\int_0^\infty e^{-x} dx = 1
$$Result:
\[ \sum_{i=1}^{n} i = \frac{n(n+1)}{2} \]
\[ \prod_{k=1}^{n} k = n! \]
\[ \int_0^\infty e^{-x} dx = 1 \]
1.7 Fractions, Powers, and Roots
$$
\frac{a + b}{c}, \quad x^2, \quad \sqrt{x}, \quad \sqrt[3]{x}
$$Result:
\[ \frac{a + b}{c}, \quad x^2, \quad \sqrt{x}, \quad \sqrt[3]{x} \]
1.8 Logic and Sets
$$
A \cap B, \quad A \cup B, \quad A \subseteq B, \quad A \in B
$$
$$
\forall x \in \mathbb{R}, \quad \exists y > 0
$$Result:
\[ A \cap B, \quad A \cup B, \quad A \subseteq B, \quad A \in B \]
\[ \forall x \in \mathbb{R}, \quad \exists y > 0 \]
1.9 Conclusion
LaTeX support in Quarto allows you to write mathematical expressions with the same power and precision as a scientific paper.
These templates serve as a foundation for producing technical and educational content with a high visual standard.
โ Back to the Programming Reading Guide ๐จโ๐ป
โ Back to the LaTeX Section ๐
โ Back to the Programming Section ๐จโ๐ป
๐ Back to Top
Blog do Marcellini โ Exploring Mathematics, Statistics, and Physics with Rigor and Beauty.
Created by Blog do Marcellini with โค๏ธ and code.
2 ๐ Useful Links
- ๐งโ๐ซ About the Blog
- ๐ป Project GitHub
- ๐ฌ Contact via Email