Sometimes I have question thumbnail that does not render LaTeX:

enter image description here

I have compared my code with other posts, I do not found differences that can explain this behavior.

What can cause LaTeX or MathJax not to render in thumbnails?

  • 1
    The $\rm\LaTeX$ is not complete in the excerpt generating the thumbnail, and thus does not compile. – Asaf Karagila Dec 4 at 10:05
  • Thank you for being reactive. I am sorry I do not understand what you meant? What LaTeX is not complete? I have no LaTeX error within the post itself. – jlandercy Dec 4 at 10:07
  • 4
    The thumbnail is generated by clipping some part of the question. This clipping does not contain the entire $\rm\LaTeX$ code, and therefore does not compile. – Asaf Karagila Dec 4 at 10:09
  • Ok, this makes sense. Thus having a long LaTeX code at the beginning of the post lead to cropped LaTeX and does not render. Thank you it is clear now. I you mind making it an answer I will be glad to accept it. – jlandercy Dec 4 at 10:12
up vote 3 down vote accepted

The thumbnail is generated by cropping part of your question. Since the $\rm\LaTeX$ is not fully within that cropped part, the code does not compile.

One could argue in favor of changing the code of the excerpt generator to always complete the $\rm\LaTeX$ code if the crop happens halfway through it, but this opens up a few different problems. For example people using align environment or other multiline environment that would end up taking far more display real estate than originally intended.

  • I will not argue about this, I am glad to understand how I could circonvolve the "issue". Thank you for making it an answer. – jlandercy Dec 4 at 10:24

You must log in to answer this question.

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