-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.qmd
51 lines (42 loc) · 978 Bytes
/
example.qmd
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
---
title: "Mathjax3 Equation Numbers Example"
filters:
- mathjax3eqno
number-sections: true
---
# Intro
Here we look at Equations \eqref{tonull}, \eqref{eq-toinf} and \eqref{eq-toone}.
\begin{equation} \label{tonull} \tag{$\ast$}
\lim_{n\to\infty} \exp(-n) = 0
\end{equation}
and
$$
\lim_{n\to\infty} \frac{n+1}{n} = 1
$${#eq-toone}
# Second section
Here is another important equation:
$$
\lim_{n\to\infty} \exp(n) = \infty \tag{$\infty$}
$${#eq-toinf}
and never forget to mention
\begin{equation}
a^2 + b^2 = c^2
\end{equation}
where
\begin{align}
\notag a&= 3\\
b&=4
\end{align}
or
## Einstein!
$$
e = mc^2
$${#eq-emc2}
but this one is unnumbered:
\begin{equation*}
1 + 1 = 4
\end{equation*}
The next equation features a manual section prefix number *in html format*. Command `setNewSection` is meant as a workaround for quarto books. Equation numbering by section does work when rendering to pdf.
$$\setNewSection{17}
0 = 0
$${#eq-truezero}