Skip to content
Discussion options

You must be logged in to vote

Quarto doesn't do that by itself, but you could write a Lua filter that converts one to the other. No promises on this, but something like

---
format: pdf
filters:
  - typst_to_latex.lua
---

```{=typst}
$
integral 2 x diff x
$
```
-- typst_to_latex.lua
function RawBlock(raw)
  if raw.format == "typst" then
    return pandoc.RawBlock("latex", pandoc.write(pandoc.read(raw.text, "typst"), "latex"))
  end
end

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@psads-git
Comment options

@mcanouil
Comment options

Comment options

You must be logged in to vote
1 reply
@psads-git
Comment options

Answer selected by psads-git
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
latex LaTeX engines related libraries and technologies typst lua Issues related to the lua codebase, filter chain, etc
3 participants