https://github.com/quarto-ext/mitex
Using mitex for Typst equations in Quarto
https://github.com/quarto-ext/mitex
Last synced: 8 months ago
JSON representation
Using mitex for Typst equations in Quarto
- Host: GitHub
- URL: https://github.com/quarto-ext/mitex
- Owner: quarto-ext
- Created: 2024-10-16T12:26:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-16T12:37:22.000Z (over 1 year ago)
- Last Synced: 2025-02-07T08:48:44.654Z (over 1 year ago)
- Language: Lua
- Homepage: https://quarto-ext.github.io/mitex/
- Size: 3.68 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Use mitex for Typst Math with Quarto
> [!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)