Skip to content
Discussion options

You must be logged in to vote

You have to use MathJax, KaTeX, etc. as described in the documentation: https://quarto.org/docs/output-formats/html-basics.html#latex-equations

There is an example in the gallery, namely "HTML for web publishing" using KaTeX (see the code at https://github.com/quarto-dev/quarto-gallery/blob/main/articles/html/html.qmd).

The tricky part is to find which HTML library provides \qty.

---
title: "Quarto HTML Basics"
format:
  html:
    html-math-method: katex
---

$$
\qty(x^2)
$$

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@Lightup1
Comment options

@Lightup1
Comment options

@Lightup1
Comment options

@mcanouil
Comment options

mcanouil Aug 1, 2022
Collaborator

@Lightup1
Comment options

Answer selected by Lightup1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants