From f63733a35e4a47a7607c1a262ff3fbc863928264 Mon Sep 17 00:00:00 2001 From: Erik Demaine Date: Fri, 5 Jul 2019 02:02:09 -0400 Subject: [PATCH] Document mhchem \cf not supported (use \ce instead) (#2008) * Document mhchem \cf not supported (use \ce instead) * Mention \cf -> \ce in support table --- contrib/mhchem/README.md | 2 ++ docs/support_table.md | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/mhchem/README.md b/contrib/mhchem/README.md index faf96a4b..e7a56f0a 100644 --- a/contrib/mhchem/README.md +++ b/contrib/mhchem/README.md @@ -14,6 +14,8 @@ This extension isn't part of core KaTeX, so the script should be separately incl See the [mhchem Manual](https://mhchem.github.io/MathJax-mhchem/) 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. diff --git a/docs/support_table.md b/docs/support_table.md index b621d7e2..8b377a43 100644 --- a/docs/support_table.md +++ b/docs/support_table.md @@ -212,7 +212,8 @@ table td { |\ce |${\mathrm{C}{\vphantom{X}}_{\smash[t]{6}}\mathrm{H}{\vphantom{X}}_{\smash[t]{5}}{-}\mathrm{CHO}}$|`\ce{C6H5-CHO}` Requires an [extension](https://github.com/KaTeX/KaTeX/tree/master/contrib/mhchem/)| |\cee|Not supported|Deprecated by mhchem |\centerdot|$a\centerdot b$|`a\centerdot b`| -|\cf|Not supported|Deprecated by mhchem| +|\cf|Not supported|Deprecated by mhchem; +use `\ce` instead| |\cfrac|$\cfrac{2}{1+\cfrac{2}{1+\cfrac{2}{1}}}$|`\cfrac{2}{1+\cfrac{2}{1+\cfrac{2}{1}}}`| |\check|$\check{oe}$|`\check{oe}`| |\ch|$\ch$||