# Tag Info

23

In order to get $\mathrm{[Kr]\mskip2mu4d^{10}\mskip2mu5s^1\mskip2mu5p^3\mskip2mu5d^4}$, I'd prefer to input $\ce{[Kr] 4d10 5s1 5p3 5d4}$.

14

Thanks for your nice words about mhchem. I am happy to implement this feature. In fact, it already is listed on my to-do list. There are four steps, that I need to decide on, for each mhchem feature request. You could help me with your input and suggestions. 1. Is this a common notation? I think, we can agree on that. (Even though I am not a chemist, I've ...

13

CAVEAT: Due to the use of Unicode, the below may not render properly on all systems, especially mobile devices. (Thanks, Martin!) Green boxed checkmark \require{enclose} \enclose{box}[mathcolor="green"]{\unicode{x2714}} $\require{enclose} \enclose{box}[mathcolor="green"]{\unicode{x2714}}$ Red boxed stylized 'X' \require{enclose} \enclose{box}[...

12

You can use the following for a green check mark since it is implemented in amssymb: $\Large\color{\green}{\checkmark}$ $\Large\color{\green}{\checkmark}$ $\Large\color{\green}{\unicode{10004}}$ $\Large\color{\green}{\unicode{10004}}$ (matches last entry from below) $\Large\color{\green}{\unicode{10003}}$ $\Large\color{\green}{\unicode{10003}}$ (should ...

12

States of aggregation should not be subscripted, it is not wrong, but the recommendations (Sec. 2.1.) are different. The document recommends that: The symbols should be printed in roman type without full stops (periods) and should be placed in parentheses after the symbol for a physicochemical quantity or chemical substance to which they relate. (....) ...

11

It really is tricky to judge what is official and what is not. Here is my take on the several issues. This is not something that should be implemented in mhchem, as I think it is just sloppy typesetting. The used symbols are binary mathematical operators like “=” just as in $3<4$ and $\pi\approx3.14$. Therefore the correct typestting should ...

11

This change was introduced with MathJax/mhchem v3. That's because it is the recommended way of writing. It is IUPAC's recommendation. Red Book section IR-4.3 shows examples, but is missing a clear text description. The Green Book states "The staggered arrangement is now recommended" and refers to the Red Book. It is ACS's recommendation. The ACS Style ...

11

In order to get $\mathrm{[Kr]\mskip2mu4d^{10}\mskip2mu5s^1\mskip2mu5p^3\mskip2mu5d^4}$, I'd prefer to input $\ce{[Kr] 4d^10 5s^1 5p^3 5d^4}$.

10

A meta answer to a meta question, making it meta². Be careful with conventions like this. They are not as intuitive and universal as you might think. I've seen ✘ Artificial Flavours written on products in the UK, meaning "without artificial flavours". In Germany, for instance, this would be interpreted as the opposite. There, in votes, you do not tick ...

10

So, after failing to reproduce the problem in another browser, I have discovered my own answer. I want to leave this here for other folks who encounter this issue. The problem is in how you tell your browser to render MathJax. If you right-click on some maths, you will see the MathJax settings menu. Under Math Settings > Math Renderer you can change ...

10

This doesn't look right. $\mathrm{|{}^1H|}$ $\mathrm{|{}^1H|}$ and $\mathrm{|\ce{^1H}|}$ $\mathrm{|\ce{^1H}|}$ should give the same result. They don't. $\mathrm{|{}^1H|}$ $\mathrm{|\ce{^1H}|}$ I'll debug this further. Please don't use workarounds like \! because things will look weird after an update. (Hmm, StackExchange hasn't updated MathJax for 3 years.) ...

9

As a workaround, you could use $\ce{$0.5$\,H2O}$ to get $\ce{$0.5$\,H2O}$

8

This bug was caused by /sites route in the stackexchange api not returning MHChemMathJax in markdown_extensions due to configuration changes for the mhchem 3.0 upgrade. The fix is already rolled out, so the apps should be rendering mhchem after a restart. However, the apps are using embedded mathjax & mhchem .js files. We'll need to update the apps in ...

8

As the main offender, let me try to give an explanation. For the sake of full disclosure, this is the - admittedly canned - comment, that was supposed to be in the edit summary: I have updated your post with chemistry markup. If you want to know more, please have a look here and here. Please do not use markup in the title field, see here for details....

8

The documentation you linked is for mhchem v 4.01 (dated 23 April 2015). It is likely that Chemistry.SE uses an older version of the package that renders charge differently. Also note that Chemistry.SE uses the MathJax filter to process math mode $\LaTeX$ (including mhchem) and the problem could be in MathJax. For example, MathJax converts $\ce{SO4^2-}$ into ...

8

Or you can use $\ce{1/2\,H2O}$ to get $\ce{1/2\,H2O}$.

8

You are mixing chemistry typeset with maths typeset; I don't think that the mhchem module is set up for this. There is probably much more wrong than what you consider a bug. Assuming $K$ is an equilibrium constant, it should be in italics (it is not with \ce) and the subscript should be in upright font (but get interpreted as variables within \ce). A similar ...

8

It's because you have a tiny, invisible character between the 8 and the 0. Move your arrow keys back and forth inside the text; you'll find you need one extra key to traverse the gap between 8 and 0. https://www.babelstone.co.uk/Unicode/whatisit.html says: U+0024 : DOLLAR SIGN {milréis, escudo} U+005C : REVERSE SOLIDUS {backslash} U+0070 : LATIN SMALL ...

7

(4) Learning by example The MathJax and mhchem syntax in the left-hand side must be enclosed in single dollar signs $...$ for an inline (smaller) equation, or double dollar signs $$...$$ for a larger, centred, display-style equation. Type... To get... \ce{H2O} $$\ce{H2O}$$ \ce{Ca^2+(aq) + 2 OH-(aq) <=> Ca(OH)2(s)} $$\ce{Ca^2+(aq) + 2 OH-(aq) <=&... 7 This issue has been solved since mid of 2016. \ce{0.5H2O} renders as \ce{0.5H2O}. Short background: MathJax is NOT LaTeX. MathJax is a complete re-implementation of LaTeX using the same input syntax. Almost the same, with fine differences. The same applied to mhchem. The behavior of LaTeX/mhchem (written by me) was re-created for MathJax (by the ... 7 This was a change that was recently introduced to mhchem. (‘recently’ meaning ‘in the latest version’.) The change was made because IUPAC explicitly says the charge should not be above the index of the preceeding element. Which makes sense if you think about it in most cases (the charge of 2- belongs to \ce{CrO4}, not just to the \ce{O}) — but it is ... 7 Thanks! Some of the things are already fixed on my harddrive (the "undefined" error), but not published yet. The others, I take as valid input for my todo list. For now, 10^-10 can be written as e-10, but I'll support explicit exponents. What does 8.001 \pm 0.005~\mathrm{nm} mean? Shouldn't it rather read (8.001 \pm 0.005)~\mathrm{nm}? I am not sure if ... 7 TL;DR: What is the need of it if mathrm is doing the job properly? – Apoorv Potnis There is no need. There always was a demand for the siunitx package for LaTeX (here by me on our site). However, that was creeping along very, very slowly. In the meantime pu has been implemented for our convenience, see: How to write physical units. I have always ... 7 mhchem doesn't support this yet. I'll put it on my the (mid-term) to do list. Thanks for the link to the IUPAC document. Please, please, don't write spacing commands inside \ce, like \ce{(\!\!\!\!-CH2-CHCl-\!\!\!\!)_{n}} (your 3rd option), because this is not future-proof. You might use the use dollar signs to escape to math feature like \ce{(\!\!\!\!-... 7 Yes, see Introducing: Markdown Shortcuts for StackExchange. Of course, this doesn't change the fact that you will need to learn a new bunch of shortcuts (or customise them). That is all we really have, though. There is no way around the fact that formatting equations, etc. properly requires some learning. Using TeX syntax here (or something that is pretty ... 6 MathJax/mhchem 3.0.6 should fix the issues. It supports all standard uncertaincy notations as listed at https://chemistry.stackexchange.com/a/58667/24052. It will take a week or so to make its way to here. You can test this not-yet-released version at the bottom of https://mhchem.github.io/MathJax-mhchem/ 5 The official documentation of MathJax/mhchem 3.0.0 can be found at https://mhchem.github.io/MathJax-mhchem/. It includes a test drive for live testing. Please be aware that you might not be using the latest version. (Even StackExchange does not run the latest version, released just a couple of days ago.) If you cannot find a solution there or with a web ... 5 Probably not, at least probably not in the way you would like it. As far as I see there is no centering zero-width box implemented in MathJax (in LaTeX one could use makebox with \makebox[width][pos]{text}), there are right/left overlapping boxes though. I guess the following is a (mediocre) workaround, but it's the best I could come up with.$$\ce{CH3-[CH2]...

Only top voted, non community-wiki answers of a minimum length are eligible