-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.qmd
40 lines (25 loc) · 933 Bytes
/
README.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
---
format: gfm
---
# Use mitex for Typst Math with Quarto
::: {.callout-warning}
Experimental extension
:::
This is a Quarto extension that provides support for using the [Mitex](https://typst.app/universe/package/mitex/) Typst library to render mathematical expressions.
## Installing
```bash
quarto add quarto-ext/mitex
```
This will install the extension under the `_extensions` subdirectory.
If you're using version control, you will want to check in this directory.
## Using
To use the extension, add the following to your Quarto document:
```yaml
filters:
- mitex
```
## Example
Here is the source code for a minimal example: [example.qmd](example.qmd).
- Inline Math will be wrapped in a Typst RawInline using `#mi()`
- Display Math will be transformat to Typst RawBlock using `#mitex()`
See built [PDF](https://quarto-ext.github.io/mitex) and [source `.typ`](https://quarto-ext.github.io/mitex/example.typ)