7
$\begingroup$

Posts from new users often requiring edits that add LaTeX code. When I review edits from users that add such code, all I see on the LHS and RHS are the raw LaTeX codes, such as $a_y=g$. This is the case even after I select the "rendered" view button. I'd rather just compare the two rendered outputs. Admittedly I have only noticed this on my Mac's Safari, and haven't tried other browsers.

Is there a way to view rendered LaTeX when reviewing?

$\endgroup$
1
  • $\begingroup$ Sometimes it takes a moment or two for me to get them to load (using Opera 12 webbrowser on Scientific Linux 6.4), I usually just run with it and fix it after submitting the fix (you get a 5 minute grace period anyway) $\endgroup$
    – Kyle Kanos
    Mar 5, 2014 at 21:19

2 Answers 2

3
$\begingroup$

You mean like the third paragraph in this edit?

Screenshot

That's kind of a tricky case. The problem is that the change is in the middle of an equation, so the diff engine sticks some extra markup in there to highlight it, causing MathJax not to recognize it as a valid equation at all. To fix it, either:

  • a) the SE diff generator would need be changed to treat MathJax sections as atomic blocks (which would have the unfortunate side effect of always showing the entire equation as changed, even if the actual change was to a tiny part of it), or

  • b) MathJax itself would have to be somehow tweaked to recognize the diff markup and replicate it in the rendered equation. I've done a bit of MathJax hacking myself, but that sounds way beyond my skills.

I suspect the first option above would be the more practical one, but I can't really tell — AFAIK, the diff generation is done on the server side, so only SE developers actually know how the code works.

$\endgroup$
1
$\begingroup$

I just run the chatjax bookmarklet on the diff. It usually works.

I guess showing a rendered diff of math is a rather non-trivial problem, so they just show the latex diff.

$\endgroup$
4
  • $\begingroup$ For me it fails to render when VTCing as a duplicate: the original renders but the duplicates don't. I'll give this a try and see if it works. $\endgroup$ Mar 5, 2014 at 21:29
  • $\begingroup$ Does this fix my problem? $\endgroup$
    – user10851
    Mar 5, 2014 at 23:34
  • $\begingroup$ @ChrisWhite I don't think so :/ $\endgroup$ Mar 5, 2014 at 23:39
  • 1
    $\begingroup$ @EmilioPisanty: SOUP includes a fix for that problem. $\endgroup$ Mar 6, 2014 at 0:31

You must log in to answer this question.

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