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

Chemical equations with mhchem #5

Closed
chicolucio opened this issue Jul 5, 2022 · 2 comments
Closed

Chemical equations with mhchem #5

chicolucio opened this issue Jul 5, 2022 · 2 comments

Comments

@chicolucio
Copy link

chicolucio commented Jul 5, 2022

I could not render chemical equations like

\ce{H2O -> H2 + 1/2O2}

It is a supported command according to MathJax docs. The command is from the mhchem package.

@susam
Copy link
Owner

susam commented Jul 5, 2022

Hi @chicolucio,

The mhchem extension seems to autoload fine on MathJax. Here is a screenshot:

mhchem-demo

Are you using the mathematics delimiters to delimit the chemical equation? MathJax requires them to recognize the parts that it needs to render.

@chicolucio
Copy link
Author

My bad... I tested math equations inside align environments and they rendered. The only thing that I put outside math environments was the chemical equation 🤦‍♂️ You are right, it works perfectly. Thanks!

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

No branches or pull requests

2 participants