Skip to content
New issue

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

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

Already on GitHub? # to your account

How to write chemical equations with mhchem in LaTeX #2596

Open
MrWillCom opened this issue Dec 24, 2023 · 4 comments
Open

How to write chemical equations with mhchem in LaTeX #2596

MrWillCom opened this issue Dec 24, 2023 · 4 comments

Comments

@MrWillCom
Copy link
Contributor

mhchem is a tool for writing chemical equations, which is supported by KaTeX, but requires me to include it before using it. However, I didn't see any options to include it in configuration. What should I do to make mhchem work in my Nextra site? Thanks!

mhchem extension for KaTeX can be found here: https://github.com/KaTeX/KaTeX/tree/main/contrib/mhchem

@dimaMachina
Copy link
Collaborator

Do you still need help?

@MrWillCom
Copy link
Contributor Author

So glad to see Nextra in v3! I've tried it out and discovered new improvements on LaTeX. However, I don't see any options for adding a KaTeX extension. Switching to MathJax fixes this, but it leads to another error when headings contain inline LaTeX. 🥲

@dimaMachina
Copy link
Collaborator

Would you want to contribute, to add options for KaTeX as well?

@MrWillCom
Copy link
Contributor Author

I'm afraid I'm not capable of implementing this feature currently, I'll try working on this in the future when I have some spare time.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants