14
$\begingroup$

Edit: I have retagged this question 'feature-request' in an attempt to expedite action on these issues. I request that the MathOverflow developers implement an automatic fix of the issues in the answers below, together with the problem involving \*, and the problem described in this question linked immediately below.

I have previously made a request for an automatic fix to an outstanding MathJax issue involving backticks. That request has not been addressed yet...

In any case, I have come across some other issues which cause the MathJax to not render or to render incorrectly. One of them is the appearance within MathJax code of \* instead of \ast (as quid indicates in a comment below, using \ast is probably a safer option than *). I have fixed a few instances of this problem myself and today (August 7, 2013) there have been at least two questions edited to fix this same issue.

In view of the above problems involving MathJax, I am asking everyone to list other similar recurrent mathjax problems. I am looking for problems which verify all (or at least most) of the following conditions:

  • It should be a technical problem involving MathJax; this is probably not the right place to deal with misuse of MathJax.

  • The problem should occur in several instances.

  • The problem would ideally admit a fairly straightforward automatic fix, e.g. by applying a search and replace algorithm to the text in questions and answers.

Just to be clear, the MathJax problems need not have been caused by the site update.

The ultimate goal is to have some automatic fix applied to each problem listed in the answers in this thread. This would probably depend on the intervention of the MathOverflow developers. Even if that does not happen, it may still be useful to gather a list of the problems to look for.

$\endgroup$
  • 1
    $\begingroup$ It might be slightly safer to use \ast instead of *, the latter having a markdown-meaning that could interfere at some point (even if it might not at the moment). $\endgroup$ – user9072 Aug 8 '13 at 15:44
  • 1
    $\begingroup$ I've pinged the SE folks again regarding this thread. $\endgroup$ – Scott Morrison Sep 12 '13 at 23:01
  • 1
    $\begingroup$ We're looking into this - sorry for the delay in our response. $\endgroup$ – Tim Post Sep 13 '13 at 16:56
  • $\begingroup$ Dear @Tim Post: Thank your for the update. Please keep us posted of any developments. $\endgroup$ – Ricardo Andrade Sep 13 '13 at 17:30
  • $\begingroup$ Dear @Tim Post, any updates? $\endgroup$ – Ricardo Andrade Nov 18 '13 at 23:17
  • $\begingroup$ @RicardoAndrade I'm terribly sorry, it's been one of those weeks, I'll follow up on this first thing in the morning. Thanks for reminding me! :) $\endgroup$ – Tim Post Nov 19 '13 at 0:52
  • 1
    $\begingroup$ Dear @Tim Post, any more updates? I apologize for the constant nagging. $\endgroup$ – Ricardo Andrade Jan 10 '14 at 23:55
  • $\begingroup$ @Scott Morrison, sorry to bother you. Do you happen to know whether this is moving forward or not? Thank you very much. $\endgroup$ – Ricardo Andrade Feb 2 '14 at 19:00
  • 1
    $\begingroup$ @RicardoAndrade, not to my knowledge. $\endgroup$ – Scott Morrison Feb 3 '14 at 0:55
  • 1
    $\begingroup$ @TimPost Ping. The issue is still unresolved after 2 1/2 years. $\endgroup$ – Emil Jeřábek supports Monica Jan 28 '16 at 11:36
8
$\begingroup$

A couple I have noticed:

  • using \\, instead of \, splits the line,
  • using \\; instead of \; splits the line, and
  • using \\! instead of \! splits the line.

Added later: There have been some instances where people have used \_ instead of _ but I believe all of these have now been fixed. Edit by R. Andrade: Apparently, there are still instances of this issue left even though none show up using the site search function. For example, see George Lowther's comment below.

Added later: As quid points out, there was also an issue where people had used \\# instead of \# but all of these cases have been fixed. Edit 2 by R. Andrade: It appears that this issue is not resolved either. Ironically, I have just fixed (August 19, 2013) this same problem in one of my own answers.

Added later: Some people have used \( and \) instead of ( and ). These do not render properly.

$\endgroup$
  • 1
    $\begingroup$ Another one of this type, I actually noticed I think via one of your recent edits, \\# instead of \# to get # (breaks MathJax rendering). I think these are all transition problems because before one needed the extra backslash while now this is not needed anymore and its presence causes problems. (Somewhere there was a thread on meta already on this double-backslash problem.) $\endgroup$ – user9072 Aug 8 '13 at 15:42
  • 4
    $\begingroup$ The other thread is meta.mathoverflow.net/q/238 . $\endgroup$ – Emil Jeřábek supports Monica Aug 8 '13 at 16:13
  • $\begingroup$ Dear @Michael: Thank you very much for your contribution. $\endgroup$ – Ricardo Andrade Aug 8 '13 at 17:55
  • $\begingroup$ It appears there may still be some instances left of \_ being used instead of _. For example, George Lowther fixed such problems in his answer mathoverflow.net/a/54531/21095 one hour ago. $\endgroup$ – Ricardo Andrade Aug 13 '13 at 3:32
  • $\begingroup$ @Michael: What method do you use to find questions with a given issue and determine if there are any left? Do you simply use the search function on mathoverflow? $\endgroup$ – Ricardo Andrade Aug 13 '13 at 3:44
  • 1
    $\begingroup$ Yes. The appropriate search only shows one post using \_. In this case the user intended to get the resulting output. $\endgroup$ – Michael Albanese Aug 13 '13 at 3:45
  • $\begingroup$ @Michael: Does that mean that George Lowther's answer did not appear in a search for \_ before it was corrected? $\endgroup$ – Ricardo Andrade Aug 13 '13 at 4:17
  • 1
    $\begingroup$ It did not. I'm not sure why. $\endgroup$ – Michael Albanese Aug 13 '13 at 5:17
  • 1
    $\begingroup$ @MichaelAlbanese Please stop these trivial edits. You edited an answer on mathoverflow.net/questions/25374/duplicate-detection-problem which had zero upvotes (while other answers had many more, including an accepted answer), thus bumping a three-year old long-settled question to the front page. There is no reason to do that. $\endgroup$ – Felipe Voloch Aug 13 '13 at 17:26
  • 1
    $\begingroup$ btw, I still have answers containing \\, instead of \, and \_ instead of _ (also ` \\\\ ` instead of ` \\ `, but I'm not sure if they are such an issue). I just edited one, and was about to edit another but held off as I don't want to bump lots of old posts up. $\endgroup$ – George Lowther Aug 13 '13 at 20:58
  • 4
    $\begingroup$ @Felipe Voloch: While the bumping to the front page is inconvenient, please consider that these answers and questions do not render correctly. /// @George Lowther: Thank you very much for that information. Interestingly, searching for \\, returns none of your posts, thus showing that the search function is not entirely effective in locating these problems... $\endgroup$ – Ricardo Andrade Aug 17 '13 at 5:42
  • 1
    $\begingroup$ @RicardoAndrade All am I asking is to use some common sense and ask whether that particular question/answer really needs that edit. My example is a clear example that doesn't. Now, if the whole page is not rendering because of one faulty equation at the very bottom, I think this is a software bug and should be addressed as such. $\endgroup$ – Felipe Voloch Aug 17 '13 at 14:57
  • 1
    $\begingroup$ This issue still seems to exist in some places; see Doubled backslashes in old posts. $\endgroup$ – LSpice Mar 8 '18 at 11:22
5
$\begingroup$

Since people are randomly listing various combinations of \\ with other characters, let me for the record repeat here what I wrote in the comments to Double backslashes:

  • Every \\ needs to be simplified to \ unless it appears in a \substack or inside a matrix or array-like LaTeX environment (e.g., matrix, align, gather, cases), where it could be legitimately used as a line break. What follows the \\ is otherwise irrelevant, though as a particular case, \\\ or \\\\ should yield \\.
$\endgroup$
  • 1
    $\begingroup$ For completeness, I want to remark that a double backslash \\ creates a new line when mathjax is rendered using CSS or SVG. Interestingly, it appears to be ignored and not create a new line when mathjax is rendered using mathml. $\endgroup$ – Ricardo Andrade Sep 6 '13 at 18:34
1
$\begingroup$

Reposted from another thread:

Some cases which seem not to have been dealt with so far:

\[ and \]

for generating square brackets (as in the OP Inverting the Weyl Character Formula )

and

i < j

(as in https://mathoverflow.net/revisions/82322/1 ). About the latter syntax, I'm surprised that it has ever worked (in LaTeX, not html!), but if it did, it's probably worth searching for it. As for the former one, I would suspect it was used often enough. I'm not sure if backslash-squarebracket actually is a meaningful command in LaTeX for generating square brackets, but people have definitely used it (maybe to get past markup?).

$\endgroup$
  • 3
    $\begingroup$ In actual LaTeX, \[...\] is a glorified version of $$...$$ (which however appears not to be supported by MathJax, at least in the local setup). In SE 1.0, the backslash would be eaten up by Markdown before being passed to LaTeX as in the other cases. $\endgroup$ – Emil Jeřábek supports Monica Sep 2 '13 at 17:43
  • 1
    $\begingroup$ Just to be sure, it may be a good idea to further search for other html symbols appearing within mathjax code. If < was used for some reason, other html symbols may have similarly been used. $\endgroup$ – Ricardo Andrade Sep 7 '13 at 12:41
  • $\begingroup$ I can confirm that html entities other that < appear a few times within mathjax code in old posts (probably from before mathjax was enabled on MathOverflow). Hopefully, any automatic fix which is eventually applied to the issues in this thread will also search and replace these symbols. $\endgroup$ – Ricardo Andrade Dec 2 '13 at 15:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .