Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow rendering typst/latex formulas #75

Merged
merged 1 commit into from
Dec 4, 2023
Merged

Conversation

mfontanini
Copy link
Owner

This adds support for rendering typst/latex formulas by tagging code blocks with the right language (typst and latex respectively) and using the +render property on them. For this to work you need:

  • Typst. This is the rendering engine used for both formats.
  • If you want latex fomulas, you need typst and pandoc. This is used to transform latex into typst before rendering it.

The rationale behind using typst for this is that the language requires no bloat to do this as opposed to latex, and it produces pngs directly rather than going through an intermediate pdf step which simplifies things greatly.

PS: I still need to test this a bit more but this in a working state.

@mfontanini mfontanini merged commit ad45a2e into master Dec 4, 2023
4 checks passed
@mfontanini mfontanini deleted the render-formulas branch December 15, 2023 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant