forked from tarleb/parse-latex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.qmd
69 lines (49 loc) · 1.74 KB
/
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---
title: "Parse LaTeX examples"
format: html
number-sections: true
filters:
- parse-latex-noeq
- mathjax3eqno
---
\section{Section example $x^3$}\label{Section Example}
\section{Table}\label{Table Example}
::: {#tbl-Example}
\begin{center}
\begin{tabular}{|l|l|l|}
\hline
Var & Class & Description\\
\hline
$x $ & numeric & xyz \\
$y$ & numeric & xzh \\
$z $ & integer & xlp \\
\hline
\end{tabular}
\end{center}
A fabulous table that defines various variables
:::
\section{Enumeration}
An enumeration
\begin{enumerate}
\item \textit{Title}\\
Lorem ipsum dolor sit amet, consetetur \textcolor{red}{sadipscing elitr}, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing
\item \textit{Second Title}\\
Lorem ipsum dolor sit ame....
\end{enumerate}
# Equations {#sec-Eqs}
In the original version of `parse-LaTeX`, these equations would not get numbered automatically. But with `mathjax3eqno`, they do.
\begin{equation}
x^2 = x * x \label{equation}\tag{super}
\end{equation}
Another one. It was not numbered. But now it is numbered
\begin{align}
x^2 &= x * x \notag
\\y^2 &= y * y\label{equation2}
\end{align}
\section{Itemize}
\begin{itemize}
\item First bullet
\item Second Bullet
\end{itemize}
\section{Cross-reference}
Using quarto crossreferences, you can refer to @sec-Eqs and @tbl-Example. LaTeX referencing now works exclusively for equations, see \eqref{equation} for a reference to an equation, and also \eqref{equation2} i.e. Equation \ref{equation2}