Questions tagged [mathjax]

MathJax is a JavaScript engine for displaying mathematics in general, and (through the mhchem package) chemical formulas and equations in particular on Chemistry Stack Exchange.

Filter by
Sorted by
Tagged with
6 votes
2 answers
195 views

Bringing Helping Users Format Their Posts (HUFTP) to a whole new level

Behold A new chatroom is approaching $\ldots$ (It already approached and you weren't there to celebrate) Rightfully named $(L_A)\TeX/\mathcal{M}_{ath}\mathrm{J}^a\mathrm{x}$ help, this is a chatroom ...
132 votes
10 answers
23k views

FAQ: How can I format math/chemistry expressions on Chemistry Stack Exchange?

This FAQ explains and gives examples how to typeset chemical equations, quantities and units, and mathematical expressions on Chemistry Stack Exchange (rather than posting pictures, which you can't ...
-1 votes
1 answer
98 views

Why are compound formulae not rendering properly using \ce tag?

Basically, everywhere I use the \ce tag on chemistry stack exchange, I get wrong formulae. The subscripts are becoming superscripts while the superscripts are becoming subscripts. Is it just me or is ...
-1 votes
1 answer
50 views

Is a package (e.g., \require {cancel}) still needed for a diagonal strikeout in MathJax?

This post, from six years ago, indicates a diagonal strikeout (e.g., for unit cancellation) can be done by calling the \require {cancel} package: Additions to MathJax/mhchem: Cancel, Broken Arrows; ...
8 votes
1 answer
67 views

Extra spacing before mhchem super/subscripts

I'm not entirely sure if this is still the correct platform for mhchem issues, but I've noticed a mildly annoying extra space that occurs just before ...
1 vote
0 answers
62 views

problems rendering overbar in square root on Main ChemSE site

On the ChemSE site (Is it better to use a smaller, more accurate measuring cylinder several times or a larger, less accurate one for the same volume?), the following MathJax code renders my square ...
17 votes
0 answers
373 views

Introducing: Markdown Shortcuts for Stack Exchange

Inserting Mathjax and making posts look nice is rewarding, but it can often be, well, repetitive and boring :( Well, not any more. I have been testing and improving this userscript for quite some time ...
19 votes
12 answers
2k views

What additional formatting features are available to MathJax (possibly via \require{})?

In his answer to a question about crossing out units in dimensional analysis, Loong notes that the \cancel{} LaTeX command can be enabled in MathJax by using ...
2 votes
1 answer
78 views

Problem in rendering with arrow

Screenshots of MathJax text, CH3-CHOH ->[H2SO4][\Delta] CH2=CH2 while editing (lower stuffs are cropped): after editing, on post page (both stuffs are cropped)...
6 votes
1 answer
109 views

Nonconforming MathJax example on the Markdown Editing Help page

The Markdown Editing Help page on Chemistry Stack Exchange (https://chemistry.stackexchange.com/editing-help#latex) includes the following short example for the the use of MathJax: ...
2 votes
0 answers
42 views

How to render a square-scheme reaction using MathJax?

I'm try to write a square-scheme reaction using MathJax. Until now I managed this one. ...
1 vote
1 answer
54 views

Adding tex symbols to post

This is a two part question: The extent to which tex can be incorporated into a post appears to be outlined here (some links from that question need refreshing btw). Is this the main source of ...
9 votes
1 answer
160 views

A link to common notation and symbols on the Tour page

Most new joiners do not know about the tools for mathematical and chemical formatting provided by Chemistry.SE. The Tour page details out the core concept of asking questions very well, but I feel ...
13 votes
3 answers
3k views

How to render Angstrom and Parts-per notations in MathJax?

Summary: Angstrom, Parts per thousand, Parts per Ten-Thousand cannot be displayed. Prior efforts: Searched Google and Detexify. Angstrom. (The letter), (the diacritic mark). The detexify (...
1 vote
1 answer
257 views

Two one-sided arrows from mhchem MathJax extension do not render properly upon conversion to pdf

I am using pdfkit-pythonbased on wkhtmltopdfto convert into pdf a text that contains MathJax ...
6 votes
1 answer
91 views

Formatting hints no shown to user

Why are the basic (math/chemical) formatting hints https://chemistry.stackexchange.com/help/notation not always displayed next to the form where users enter new questions, and why is the elementar \ce{...
3 votes
1 answer
2k views

Using mathrm versus rm MathJax index formatting

I do not understand well, why is so much preferred \mathrm to \rm for index formatting ? (by occurrence and by user script formatting support.) Note that I currently use LaTeX/MathJax only in ...
5 votes
1 answer
434 views

MathJax mhchem editor

Is there a tool (application, online service) that helps writing the ugly formatting MathJax + mhchem code? I mean things like just typing Ctrl-B to get the selected text to bold is something else ...
7 votes
1 answer
133 views

Is there a site on ChemSE to practice mhchem and mathjax?

Is there a site on ChemSE to practice mhchem and mathjax? Or does one just learn while asking or answering a question.
3 votes
1 answer
34 views

Eliminate huge-locant-marked (by \overset) atom side space

Is it possible to elegantly eliminate side whitespace around the base under the overset, which is longer than the base? E.g. if we wanted to talk about the 123456789th carbon atom of a huge poly(...
10 votes
3 answers
334 views

We need some upgreek, please!

Correct typesetting is what you would expect from an academic community. Chem.SE has always tried to be one, and we always value their standards; and our meticulous editors have always had an eye on ...
2 votes
1 answer
42 views

Formatting problem with \tag markup

I tried adding the following markup to an answer. $$\ce{Zn(s) + Cu^{2+}(aq) → Zn^{2+}(aq) + Cu(s)}\tag{Open Circuit voltage 1.1018 V}$$ ...
2 votes
1 answer
43 views

Why two different print styles for the x's?

Created the rather nasty markup below. Why are there two different print styles for the x's? ...
5 votes
1 answer
123 views

What to do if mathrm is hugging physical units?

There was some consensus about how to write physical units from mid-2016 onwards on Chem.SE, as apparent from this post. However, it seems like the damage had already been done by that time. I say so ...
6 votes
0 answers
82 views

Wrong alternative invocation of MathJax

It is commonly known that MathJax can be invoked with $...$ for inline mode and $$...$$ for display mode. The more latex-like ...
7 votes
2 answers
122 views

Does the rendering of the precipitation and gas symbols need improvement?

Doing some markup and noticed something that annoyed me. I wanted to indicate a precipitate or gas such as: \begin{array}{ll} \text{Markup} & \text{Displays}\\\hline \text{\ce{AgCN v + KNO3}} &...
7 votes
1 answer
195 views

(Title LaTeX test) Why does NMR Ix+iIy ($\hat{I}_x+i\hat{I}_y$)

I wanted to test some $\LaTeX$ in the title for myself, and I didn't know any other way to do so. Why does the transverse magnetization in Fourier Transform NMR consist of Ix+iIy ($\hat{I}_x+i\hat{I}...
8 votes
1 answer
166 views

Undefined control sequence \pu in official SE Android app

For some reason content produced with \pu{} cannot be rendered properly in official Stack Exchange android app, though \ce{} ...
11 votes
1 answer
319 views

MathJax in the Android App

Has anyone else noticed issues with MathJax in the StackExchange app? I'm aware the comments and titles don't render MathJax automatically, but I've also seen questions where certain math expressions ...
20 votes
2 answers
1k views

How can I enable MathJax in chat?

Last updated: 9 May 2017 This is an offshoot of ChatJax, which enables MathJax along with mhchem on chat. In order to enable MathJax in chat, please follow the following instructions (courtesy of ...
17 votes
1 answer
973 views

How to write physical units

Units have to be written in an upright font. One normally does it this way: $1.2 \times 10^3\,\mathrm{\frac{J}{mol}}$ $1.2 \times 10^3\,\mathrm{\frac{J}{mol}}$ ...
9 votes
1 answer
61 views

Should we pay attention to possible bugs of MathJax in the apps?

It is quite well known that the (android) app(s) are behind on which MathJax version they are currently using (see here for an example). I find this very unfortunate as many of the newer features, ...
7 votes
4 answers
164 views

Chemical formulas with fractional numbers are displayed wrongly

According to mhchem manual the following code \ce{0.5H2O} should produce the following result But it does not. Instead, I ...
9 votes
3 answers
2k views

Green checkmark or red X with Mathjax/mhchem?

Is there a way to put a green check mark in the body of my text using MathJax/mhchem Syntax? Or a red X to indicate that this thinking is wrong? Something like this: I want to use it while double ...
0 votes
2 answers
84 views

This is a TEST QUESTION, examining MathJax scopes

\require{begingroup} \begingroup $ \require{begingroup} \begingroup \text{begingroup Jax} \def\ce#1{\Huge\color{\purple}{\mathrm{I~love~chemistry!}}} $ This is ...
8 votes
1 answer
113 views

Dimensional analysis with chemistry equations on stack exchange?

I know we use Mathjax/mhchem. What I would like to know, is if its possible to cross out units as part of dimensional analysis. Here is an example of the desirable effect:
7 votes
0 answers
75 views

Enable automatic line-breaking for SVG output

The MathJax configuration for the HTML–CSS output processor includes the option linebreaks: { automatic:true }. When using this output processor (right-click on any ...
3 votes
0 answers
47 views

mhchem in Android app configured differently

Bugreport. Take a look at How to write physical units in the Android app (I did with version 1.0.89), you will see that \pu does not render on Android, while it ...
13 votes
2 answers
757 views

Is MathJax in titles a problem? And why?

I think the title is self explanatory. I certainly think it looks nicer. I thought it still worked for searches too, as long as it's something $\ce{H2SO4}$ or $\ce{K}_i$ - certainly does on my browser....
9 votes
1 answer
90 views

Mhchem broken on mobile

That's how it looks right now. I don't recall this being a problem earlier. It's like this on other questions as well. Link to the answer in question: https://chemistry.stackexchange.com/a/55285/...
15 votes
1 answer
252 views

Do we really need to badger everyone to use MathJax for chemical formulas?

I've observed it a few times now that negative comments were posts simply because a user was not using MathJax to format chemical formulas. I don't mean gentle encouragements to properly format a post,...
11 votes
2 answers
152 views

Unknown Notations

Are the following notations official? Can I find them in a colored IUPAC book? Do they have a name, I could google for? (I need this to judge whether to support this with mhchem or not.) Stability of ...
5 votes
0 answers
76 views

On mobile, mathjax fails to render \geqslant

When I was browsing the Hot Network Questions today, I came across this answer which on my iPhone 4S (iOS 9.1) looks like this: On my laptop it renders just fine, and I couldn't find any existing bug ...
9 votes
0 answers
190 views

Additions to MathJax/mhchem: Cancel, Broken Arrows; SI units

I think sometimes it is necessary to show, that a reaction does not take place, therefore a broken arrow would be a nice thing to have. I played a little in the sandbox and found a somewhat working ...
4 votes
2 answers
114 views

Latex Table Question

Here's a link to a SE question-answer on building tables using Latex. I copied the following bit of Latex code from the top-rated answer and when I pasted it in to an answer on Chemistry SE it didn't ...
10 votes
1 answer
319 views

How to solve mhchem/MathJax rendering problems

Edit: This is not a bug, it is a feature, see my answer post. While recently directing a new user to this meta post about formatting using MathJax, I noticed that some components were not rendering ...
3 votes
0 answers
113 views

Clumsy view of well-formatted questions: What to do?

Before you ask, I did see this. No problems should be there now, right? However, I ran into wierd (not to mention funny, I laughed for about 5 minutes non-stop) questions; take a look at the pic: The ...
5 votes
1 answer
73 views

Latex Subscripting

How do I write $\ce{C_{2}{v}}$ properly in Latex so that the "2" and the "v" are both subscripted on the same subscript line? If I write it as $\ce{C_{2v}}$ (\ce{C_{2v}), I get an down-arrow symbol ...
9 votes
2 answers
365 views

Mathjax formatting buttons for you!

After having to add dollar signs and format SI units countless times in the review section on Physics, I finally got fed up and wrote a script.{*} It basically adds buttons/keyboard shortcuts to ...
5 votes
1 answer
190 views

Solutions for structural formulas?

After finding out that the mhchem plugin for MathJaX doesn't support structural formulas (here), I decided to post this question. I would like to know what kind of solutions there are for writing ...