-
DescriptionThis is a speculation of me: Is it possible to have I suspect not, as I cannot compile the following
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
No.
|
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
Some reasons: Compatibility: Many researchers, authors, and technical writers already have existing LaTeX or Typst code snippets from previous work or collaborations. Enabling Quarto to read these snippets ensures compatibility with existing workflows and documents, reducing the need for extensive reformatting or rewriting. Code Reuse: If authors or collaborators have already developed LaTeX or Typst code for specific purposes (e.g., custom macros, theorem environments, or specialized diagrams), being able to include these snippets in Quarto documents facilitates code reuse and consistency across different writing projects. Interoperability: Quarto's ability to read LaTeX and Typst snippets can promote interoperability with other tools and software that generate output in these formats. This integration can streamline workflows and enhance collaboration among teams working with different tools. Maybe that is why it has been created LaTeX support for Typst via package mitex. |
Beta Was this translation helpful? Give feedback.
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