@andselisk At one point, I almost added electron configurations to the feature set of \ce. I thing there is a discussion in meta. I still might add it, if there is no syntax overlap.
@GaurangTandon If you need a \+ inside \ce to get a normal plus, then you are doing something wrong :-) Adding a few spaces will do (and is the recommended \ce syntax.
@DavidCarlisle Can you give me a pointer about the section heading? The heading is written into an external file (was it .toc?) and re-used in the table of contents, right? I have to make sure that what gets written into the file is not something expanded half-way into something that cannot stand on its own, right?
@DavidCarlisle Why should I include the language files at the beginning? Why wouldn't "load when needed" work? I remember which language is loaded and when a new statement is requested, I \input the definitions before using one of them?
@DavidCarlisle Okay. I remember that I needed the help of the gurus for things like redefining cat codes temporarily and messing with expansion order in order to get things done.
@DavidCarlisle Good to know. I had a quick glance in the TeX Book. It is indeed a multi-stage process. Characters are combined to tokens and these are evaluated then. And the exact order of that is so complex that it fills 4 pages full of "danger bendy road" signs.
@DavidCarlisle Thanks. Well, I remember (from some years ago, when I dived into the TeX book) that there are several stages. Some things being evaluated on parsing the code, some on executing the code. (I am pretty sure, I am using the wrong words here, please excuse.)
@DavidCarlisle I was talking more about the concept of inclusion and conditionals, not actual code \include and \if. // My question was: An \input command will be evaluated just as any other command? So, having a never-executed \input will not load anything. No pre-loading, no early-execution-on-parsing or similar?
@DavidCarlisle Is conditional \include a thing that works? Or is the \include executed before the \if around it is executed, rendering it kind of useless?
@DavidCarlisle With regard to your comment at tex.stackexchange.com/questions/494741, it makes totally sense to load just one or two languages. However, I would like to evaluate the current (babel) language. Is there a way to conditionally include package sub-files either on loading time (evaluating all loaded babel languages) or on a on-demand basis?
Aaaaah! I'd like to use my time-machine and go back to the beginning of the discussion. For all German-speakers folks around here, let me quote Ernst Jandl: "manche meinen // lechts und rinks // kann man nicht // velwechsern. // werch ein illtum!"
@orthocresol Now I am getting confused myself. (I am not a chemist!) IUPAC: Kc = equilibrium constant with concentration basis (c having unit mol/m3), Km = equilibrium constant with molarity basis (m having unit mol/kg). Molarity, according to Wikipedia, is a concentration, its symbol is c, its unit is mol/m3, so it is essentially the same as concentration. Phew.
Well, allow me to I see a conceptual difference between "molarity" itself and "based on molarity". Could you replace the letter with number+unit (or a set thereor), is my rule of thumb.
@Loong I still don't see how the p in Kp "represents a physical quantity". (Wikipedia: A physical quantity is a property of a material that can be quantified by measurement. A physical quantity can be expressed as the combination of unit by a number.) Yes, pressure can a physical quantity, but in this case, the p is a shortcut for "expressed in terms of partial pressures of gases". You cannot give that p a number+unit (or multiple numbers+unit). Same for Kc.
@Loong Well, the IUPAC Green Book writes $K_m$ ("molarity basis") while in the UIPAC's "On the use of italic and roman fonts for symbols in scientific text", they insist that $C_{p,\mathrm{m}}$ has an upright m for "molar".
Bold works just a little bit: $\ce{H2$\mathbf{O}$}$ $\ce{H2$\mathbf{O}$}$ works, but $\ce{$\mathbf{\ce{H2}}$O}$ $\ce{$\mathbf{\ce{H2}}$O}$ does not. I will put it (low) on my todo list.
Answer: Italics are well supported, because they convey a semantic meaning: $\ce{NO_$x$}$ $\ce{NO_$x$}$, $\ce{V_{V,1}C_{C,0.8}$V$_{C,0.2}}$ $\ce{V_{V,1}C_{C,0.8}$V$_{C,0.2}}$
@GaurangTandon Yes, I can reproduce it here, in Chrome. It does not happen on high-res monitors. So time is playing for us. :-) But because mhchem just re-used the standard \equiv, I see the issue with the MathJax guys. They are currently discussion to switch to another font with MathJax v3, so I'd say a bug report does not make too much sense, at the current time.
a) Have the 3 dashes have the same distance. This will look good in large font sizes, but bad in current Chrome at normal size. b) Have it look good now, but in reality it is non-equal distances that one would see on larger font sizes, magnification, high-res screens. Also, browser implementations might change. So I decided for b).
@GaurangTandon Re: triple bonds. I know. I tried my best, but somewhere along the way through MathJax and Chrome, there is some rounding error. Or it may be intentional so that nothing is printed on "half" pixels. I could decide between two options
@GaurangTandon Re chemistry.stackexchange.com/questions/98014/…). Never mind. To be clear: I don't think my \ce is perfect. Some shortcoming are: overhead for short formulae $\ce{H}$, font difference in running text.
@GaurangTandon I do not quite understand your edit to my question chemistry.stackexchange.com/questions/91783/…;. Why don't you want the URL to be clickable? Why did you put a clickable "URL" next to the - now not clickable - http:/ /...?
I already thought about a C.SE extension for MathJax. You could discuss features and I could create it. If everything works perfect, the C.SE extensions become the de-facto standard that people want to use everywhere (like amsmath). But there is also a good chance that C.SE becomes a more and more closed community ("They even have their own flavor of LaTeX").
Regarding the question whether \mm or \mr could be created as a shortcut for \mathrm. Yes, they could. It's as easy as typing \let\mr\mathrm. And it's a little bit more complicated to do that in a MathJax extension. But one has to be careful not to create side-effects.
Regarding the question whether to use \pu instead of \mathrm, I'd kindly ask to use it only for numbers and/or units. And I'd strongly advice against mis-using it for more than pure letters. Everything that goes beyond pure letters might get rendered differently, in future. For instance, m2 rendered differently in earlier versions. And the rendering of kg.s will change shortly.
@LinearChristmas Regarding the question: Is there a performance difference between \pu and \mathrm. Yes, there is. Ater all, \pu is doing some parsing. But it should be neglectable. It should be less than 100 ns. I.e. 10 occurances would have an overhead of 1 ms. Nobody would notice. (It's hard to properly measure such things. My measurement comes from 50000 usages of \ce. My feeling was that the garbage collection has most impact on the running time, not the CPU usage itself.)