2
$\begingroup$

I just noticed that this question has some printing issues on the overview page that has to do with a \begin{cases} statement.

problematic appearance

$\endgroup$
4
  • $\begingroup$ Unless it has been changed, the reason is that the code for the preview grabs the first $n$ characters of the post. That of course provides ample opportunities to get broken MathJax code for the preview. $\endgroup$
    – Daniel Fischer Mod
    Commented Feb 20, 2016 at 19:06
  • $\begingroup$ @DanielFischer But the strange looking box shouldn't be desirable, I think. $\endgroup$
    – Martijn
    Commented Feb 20, 2016 at 19:09
  • $\begingroup$ This seems related. I think we have a question about the excerpt preview with an answer, but I haven't found it yet. $\endgroup$
    – Daniel Fischer Mod
    Commented Feb 20, 2016 at 19:11
  • $\begingroup$ Also this, which links to this. These are about search results, but it's probably the same code. $\endgroup$
    – Daniel Fischer Mod
    Commented Feb 20, 2016 at 19:16

1 Answer 1

5
$\begingroup$

Part of the problem is that MathJax syntax is chopped. This happens all the time, and usually results in completely non-rendered partial formula, which I think is the best we are going to have for a long time.

Another problem is that the text did have enough of a formula in it to render somewhat, resulting in an ugly box. This has to do with nested markup (and somewhat sloppy at that):

  $f_{XY}(x,y) =  \begin{cases}
          2e^{-y} & \text{if  $-y< x < y$ and 0 < y < } \infty .\\
      0 & ...

I edited it to remove formula-text-formula nesting:

 \text{if  } -y< x < y \ \text{ and }\ 0 < y < \infty 

Now the preview has plain unrendered formula, since there is no $ for MathJax to interpret as the closing delimiter.


Part of a problem is having symmetric delimiters $ ... $, which was not the best idea for TeX... Today one is advised to use \( \) in LaTeX documents but this doesn't work well here due to escaping and over-escaping.

$\endgroup$

You must log in to answer this question.

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