Questions tagged [mathjax]
MathJax is a JavaScript engine for displaying mathematics, available on some Stack Exchange sites.
249
questions
4
votes
0
answers
63
views
Some MathJax expressions incorrectly do not render in the preview, but do render in the actual post
Some math equations do not render correctly in the editor preview.
Here's an example of one of them:
$$\text{card}(x) = \|x\|_{0} = \lim_{p \to 0} \left( \sum_{k=1}^{n} |x_{k}|^p \right)^{1/p}$$
...
0
votes
0
answers
78
views
Math mode in image alt text [duplicate]
I used math mode in an image's alt text. This had worked in the past, but now upon an edit, it is broken: the alt text now appears as a link after the image. See answer at What is the difference ...
4
votes
1
answer
172
views
MathJax render issues in cs.stackexchange.com [duplicate]
I see following for this following question - How to wiggle sort an array in linear time complexity?
I checked in incognito mode, in extension free Chrome instance (Version 119.0.6045.199 (Official ...
2
votes
1
answer
137
views
'DeclareMathOperator' is not working with subscripts or superscripts
Somehow SE's MathJax doesn't like \DeclareMathOperator in subscripts or superscripts. This doesn't render on SE:
$\DeclareMathOperator{\two}{two}$
$\two+\two=\two^\two$
(I can't directly demonstrate ...
1
vote
0
answers
76
views
Why is my MathJax formatting so messed up? [duplicate]
Just look at this mess.
The following source:
We have $G$ solvable, so that we can find a tower of subgroups
$$
G = G_0 \supset G_1 \supset\cdots\supset G_m = 1
$$
so that the conditions on ...
4
votes
0
answers
176
views
MathJax bugs "Your post appears to contain code that is not properly formatted" [duplicate]
V1: complains
$$
\frac{x}{y}
$$
V2: doesn't
$$\frac{x}{y}$$
V3: complains
$$\begin{align}
& \frac{x}{y} + \frac{y}{x} \\
& \frac{y}{x} + \frac{x}{y} \\
\end{align}$$
I favor working ...
3
votes
2
answers
165
views
Why isn't xcolor supported for Latex?
In mathcha.io, I have an equation with colors.
\begin{equation*}
\frac{\partial L}{\partial X} =\ \textcolor[rgb]{0.82,0.01,0.11}{\frac{\partial L}{\partial Y}} W^{T}
\end{equation*}
If I want to ...
6
votes
1
answer
119
views
Equation renders in preview mode but not when posted on SE site
I answered a question on OR SE (here) and the equations do render in preview mode, but not when the answer is submitted. The same problem persists on different devices and browsers.
4
votes
1
answer
116
views
MathJax preview renders slowly and improperly
When writing expressions in the body with MathJax on the Mathematics Stack Exchange site, the preview is sometimes immediate, but oftentimes it takes maybe a good five seconds to render. In the latter ...
6
votes
0
answers
94
views
MathJax malfunctioning (shows preview) in Firefox
Preview is shown alongside the render in answers I edit - not always, but most of the time. It's also sometimes the case for comments, mine and others'. I can highlight and copy the pre-renders; in ...
3
votes
2
answers
88
views
Where can I ask if a bug affects multiple sites?
The [bug] tag excerpt read(s):
Use this tag for a reproducible problem ON THIS SITE
I have a MathJax problem, reproduced at DSP.SE, Math.SE, Stats.SE, and MathOverflow.SE. Meta.SE doesn't use ...
5
votes
1
answer
271
views
MathJax escape sequences don't work
The equation $x = \{y\}$ is supposed to render like this x = {y} but instead in the preview pane it looks like this x = y. The escape sequences for curly braces, \{ and \}, do not render correctly. ...
4
votes
1
answer
233
views
Why aren't two subscripts in same line allowed in MathJax?
I'm trying to write the following equation on math.SE:
(\mathcal L_r \eta)_{\mu_1...\mu_p}=(r+p)\eta_{\mu_1...\mu_n}
However, you will find that if you put this expression between dollar signs, it ...
3
votes
0
answers
94
views
Is it possible to add a "Copy to clipboard" option in the MathJax drop-down list?
In Piazza, when viewing the source of some math that is typeset using MathJax, there is the option to "Copy to clipboard", as shown in the screenshot below. If I click on "TeX Commands&...
3
votes
0
answers
57
views
Can a search include mathematical expressions?
It's difficult to search for math-related topics without using math expressions. Can this be done somehow? I'm talking about things beyond +, - , / , etc.
3
votes
0
answers
132
views
MathJax processing issue - Strange behavior in the editor of "\:" in a formula
I noticed that in some posts, the code of the equations ends with "\:.", but nor "\:", nor ":" themselves appear in the rendered equation (see, e.g., this answer). ...
27
votes
0
answers
319
views
Are there plans to switch to the current version of MathJax?
As pointed out on Mathematics Meta, Stack Exchange still uses MathJax v2, although v4 was released recently. (The answer by Davide Cervone - one of the MathJax developers - summarized some potential ...
-6
votes
1
answer
138
views
Globally Enable MathJax
MathJax seems to be enabled on some sites and not others.
Whilst I appreciate that it's definitely more useful on some sites than others, there are times where one might want to use it basically ...
17
votes
2
answers
2k
views
I think there is a MathJax bug for 'mathcal' typesetting on some platforms
The MathJax rendering for mathcal is not working correctly on my computer. Instead of a cursive-style letter for \mathcal, MathJax renders a square. However, other MathJax rendering is unaffected.
...
4
votes
0
answers
55
views
Link in comments occasionally not formatted on MathJax-enabled site
Occasionally, links in comments that use MathJax do not show normally. The problem is reproducible, and browser-agnostic. It comes and goes depending on inserting a space around the closing $ ...
9
votes
0
answers
281
views
MathJax can create unbroken, too wide texts
On Astronomy, I just encountered an answer to this question which completely overflows the answer/question column of the site:
I'm not sure whether there actually is a good solution to this - but SE ...
6
votes
0
answers
97
views
MathJax not rendering properly in comment on mobile-sized screen
MathJax is not rendering properly in the comment of this post.
Original comment:
In mobile view:
6
votes
1
answer
181
views
Is there a 'Mathematics' Stack Exchange-like editor with an option to save drafts?
I really like the ease of use to type LaTeX and general text in the Mathematics text editor. I was wondering if the same editor has been implemented somewhere else where someone could use it for ...
11
votes
0
answers
100
views
Live refresh doesn't render MathJax (again)
This old bug is back: this is how the recently active questions page on Math.SE looked like after clicking '1 question with new activity':
and this is how it should look like, and actually does after ...
15
votes
1
answer
315
views
In 2022, what actually happens to a candidate question for the HNQ when MathJax is in the title? (e.g. edit changing n=25 to "$n=25$")
For my recently asked Physics SE question How can an $n=25$ Rydberg state exist in a solid? What does the wave function look like? an edit was made changing n=25 to "$n=25$". Presumably this ...
11
votes
0
answers
125
views
MathJax formula has extraneous line breaks on the user profile page
MathJax formulas can have extraneous line breaks on the user profile page. An example from https://math.stackexchange.com/users/24265/franck-dernoncourt?tab=topactivity:
It was tested with Chrome on ...
6
votes
1
answer
124
views
Prerequisites to enable mhchem on a site
mhchem offers some advantages with respect to MathJax when writing chemical formulas and so on.
What are the prerequisites that need to be satisfied in order to have mhchem enabled on a given site?
7
votes
1
answer
157
views
Chemistry equation \ce modifier works in a non chem SE site's posts, but not in search results. Should we consider it "working" and start using it?
In Space Exploration SE there are a lot of questions related to chemistry (mostly production and combustion of rocket propellants and air/water for people) and after six years there I just this moment ...
9
votes
1
answer
121
views
Revision history and suggested edits pages don't recognize non-standard MathJax delimiters
A follow up of What delimiters work for MathJax?: the question Vector convolution? on MathOverflow contains some non-standard MathJax delimiters: \begin{equation} and \end{equation}. They are ...
13
votes
1
answer
362
views
What delimiters work for MathJax?
I thought I knew a thing or two about post formatting, but these posts on the two Mathematics sites surprised me: Vector Convolution? (Mathematics SE) and Vector convolution? (MathOverflow). The first ...
9
votes
0
answers
161
views
MathJax layout problems persist in "All actions" tab and review queues
I'm seeing a strange MathJax layout problem on Cross Validated. Here's an example from the "All actions" tab of a user profile, but I've also seen it in the review queues as well.
This ...
4
votes
0
answers
104
views
MathJax inconsistency between preview and rendered post
I cannot show it here or in the Sandbox directly since there is no MathJax on Meta.SE. There is a Sandbox in Cryptgraphy Meta that one can test there; just click edit and see the difference. The ...
6
votes
1
answer
209
views
Yet another error of "Your post appears to contain code that is not properly formatted as code"
I feel like I've found and read through all the relevant posts on Meta about this error, but I still can't resolve this error! I have about 6 equations in double-dollar-signs, several in single-dollar-...
5
votes
1
answer
549
views
How do I type a diameter symbol on MathJax-enabled sites?
Is there a directive for a diameter symbol ⌀ in MathJax?
The internet mentions \diameter but that seems to require some package (wasysym? or something) that isn't supported here and so doesn't work.
...
0
votes
0
answers
126
views
How can I make newline and align the equation of the math equation in CrossValidated?
I want to input a math equation in CrossValidated like this:
But I want a version of vectorized latex equation, not an image like above (you can zoom in the webpage to validate it). When I input the ...
6
votes
1
answer
150
views
How should I represent/display pseudo code in Stack Exchange?
This semester I'm attending a course on Algorithms and Data Structures. I will probably have a few questions to post to Computer Science or Mathematics. The slides of my teacher use math symbols such ...
6
votes
0
answers
89
views
The $ sign introduced with \ wreaks havoc the MathJax rendering [duplicate]
On a MathJax-enabled website, it's supposed to be possible to enter a LaTeX $ as \$, but it does not work consistently inside a formula delimited by $$ at start and end. For example, on crypto-SE or ...
12
votes
0
answers
129
views
MathJax text broken along several lines in post titles (in review queues)
I have noticed a problem concerning the use of MathJax in titles of questions that appear in review queues, and this has been happening for some time. Consider, for instance, this question. It uses ...
10
votes
0
answers
103
views
Dollar sign becomes MathJax on top network posts
This is basically the same issue as these (all of them are status-completed at the moment):
Dollar sign used as currency renders incorrectly in Android app
Dollar signs breaks formatting of 'Hot ...
9
votes
0
answers
84
views
MathJax sometimes doesn't work in older-style duplicate links
Take a look at Showing $f'(x) = f(x)$ implies an exponential function:
The Mathjax fails in duplicate links on duplicate questions closed prior to February 2013 that include HTML escaped characters. ...
5
votes
0
answers
86
views
Math Processing Error
Today while voting to close this post as duplicate, the earlier posts were shown with
[Math Processing Error] in red.
I tried in both Windows PC(Chrome) and in Android phone in Full-site mode, both ...
7
votes
1
answer
629
views
How to fix the visualization of latex equations in dark mode (SO)?
Recently, I was reading a post on SO including LaTex equations, and it happens that in dark mode the visualization of the math is not well implemented...
A quick solution would be to change the ...
15
votes
0
answers
102
views
Show a preview of the title when editing/asking - at least on the MathJax sites
When you are asking a question - or making a suggested edit - you can see the preview of the post, but not a preview of the title. This does not matter that much on the sites without MathJax - after ...
1
vote
0
answers
59
views
LaTeX incorrectly parsed in search results [duplicate]
I noticed that sometimes LaTeX is incorrectly parsed in the search result pages. For example, the first result for https://math.stackexchange.com/search?q=arma right now looks like this, where the end ...
4
votes
0
answers
64
views
Winter hat showing up in math expressions [duplicate]
Noticed a small bug in Mathematics Stack Exchange, though perhaps it might exist anywhere using MathJax. The winter hat (in this case, "Gimme Space") shows up inside the rendered expressions....
5
votes
1
answer
179
views
Weird line break in LaTeX formula
This answer appeared in HNQ and has unwanted line breaks in the LaTeX formulas as you can see. The author of the answer confirms that the breaks are not intended.
For some reason the issue disappears ...
46
votes
1
answer
202
views
Can we get a preview for titles when writing questions?
On sites like Physics SE or Mathematics SE, it is not uncommon that you have to write formulas in the question title. I know this is discouraged because most people don't search for:
"How can it ...
16
votes
0
answers
191
views
Rendering bug with backslash and dollar sign on MathJax-enabled sites
Typing
`\$`
on a MathJax-enabled site renders
\\\$
instead of the expected
\$
On the preview, the rendering is also wrong, but it only renders \\$, as can be seen in the following screenshot:
This ...
4
votes
0
answers
192
views
MathJax rendering bug with escaped dollar sign (\$), apparently only on crypto.SE
Screenshot:
Offending Markdown: (see also live in this post revision on crypto.SE)
> $$\left|\Pr_{k\leftarrow_\$\ \{0,1\}^n}[\mathcal{A}(1^n, F(k,-))=1] - \Pr_{f\leftarrow_\$\ \{0,1\}^n\to\{0,1\}^...
13
votes
1
answer
184
views
MathJax \newcommand in question titles is incorrectly scoped to the entire page, unlike in posts and comments
There are many sites in the network where MathJax is enabled. In MathJax we can also define macros - which can be used basically as shortcuts.
However, some problems might be caused by such macros, ...