Skip to content
Branch: master
Find file History

Latest commit

mpolyak Release v0.11.1 (#2098)
* Release v0.11.1

Bump master to v0.12.0-pre

* Update CHANGELOG.md for v0.11.1-release

* Update CHANGELOG.md with Changes section for v0.11.1-release
Latest commit f03671c Sep 18, 2019

Files

Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md Release v0.11.1 (#2098) Sep 18, 2019
mhchem.js Add mhchem extension (#1436) Nov 24, 2018
mhchem.patch Add mhchem extension (#1436) Nov 24, 2018

README.md

mhchem extension

This extension adds to KaTeX the \ce and \pu functions from the mhchem package.

Usage

This extension isn't part of core KaTeX, so the script should be separately included. Write the following line into the HTML page's <head>. Place it after the line that calls katex.js.

<script src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/contrib/mhchem.min.js" integrity="sha384-oa0lfxCGjaU1LdYckhq8LZcP+JTf8cyJXe69O6VE6UrShzWveT6KiCElJrck/stm"></script>

Syntax

See the mhchem Manual for a full explanation of the input syntax, with working examples. The manual also includes a demonstration box.

Note that old versions of mhchem.sty used \cf for chemical formula and \ce for chemical equations, but \cf has been deprecated in place of \ce. This extension supports only \ce. You can define a macro mapping \cf to \ce if needed.

Browser Support

This extension has been tested on Chrome, Firefox, Opera, and Edge.

You can’t perform that action at this time.