Ron Kok 64745b5c8a Add mhchem extension (#1436) | пре 6 година | |
---|---|---|
.. | ||
README.md | пре 6 година | |
mhchem.js | пре 6 година | |
mhchem.patch | пре 6 година |
This extension adds to KaTeX the \ce
and \pu
functions from the mhchem package.
This extension isn't part of core KaTeX, so the script should be separately included. Write the following line into the HTML pages <head>
. Place it after the line that calls katex.js
.
<script src="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/contrib/mhchem.min.js"></script>
See the mhchem Manual for a full explanation of the input syntax, with working examples. The manual also includes a demonstration box.
This extension has been tested on Chrome, Firefox, Opera, and Edge.