Skip to content
Discussion options

You must be logged in to vote

I agree that some hints in the documentation would be nice since formatting chemical equations is quite a common need in scholarly writing.
As far as I see, using the mhchem package inside math delimiters (e.g., $\ce{H2O}$) currently is the best option. It works both for HTML (via MathJax) and pdf (via the Latex package). If you need docx output, you might try using this mhchem lua filter for pandoc. I just recently came across it (here), and did not try it myself yet, but it looks promising. Looking at the Quarto documentation on custom filters, it should not be too complicated to use.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@baptiste
Comment options

@ghost
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
math any issue related to math support in specific formats
4 participants