latexjupyter-labpdflatex

Bad display of LaTeX formula in a markown cell in Jupyter-lab


I have a markdown cell holding some latex code with a math formula.

I get a somewhat disappointing resulting display, in particular the summation and infinity symbols looking rather small. enter image description here

OTOH, if I use pdflatex (outside jupyter) on this formula, I get the following decent result enter image description here

I suspect that something is missing in my jupyter-lab configuration but I don't know how to find the information to correct this bad rendering.


Update

I understand that there is no actual MRE here since the issue is likely related to my jupyter configuration but I'm a little bit lost here (I don't know jupyter that much).

What could help me there is for instance how to activate a verbose level of traces in jupyter console in order to get some error/warning messages related to cell rendering and in particular when one has a LaTeX input.

As suggested by @Wayne, I tried a snippet here which produced the following enter image description here

which is still not equivalent to pdflatex output but a little bit better than what I got from my jupyter-lab.


Solution

  • I eventually found out what was missing. Actually I found some information here where it is said to install the following:

    pip3 install jupyter_latex_envs
    

    Now the display of equations is ok on my system.