question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

LaTeX render wrong

See original GitHub issue

Environment data

  • VS Code version: 1.40
  • Extension version (available under the Extensions sidebar): 2019.11.50794
  • OS and version: win10 1803
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7.0 32-bit
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): N/A
  • Relevant/affected Python packages and their versions: jupyter 1.0.0
  • Jedi or Language Server? (i.e. what is "python.jediEnabled" set to; more info microsoft/vscode-python#3977): XXX

Expected behaviour

img

this is from chrome

Imgur

Actual behaviour

img

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

  1. open a new ipynb file

run

from sympy import init_printing
init_printing()
import sympy
x=sympy.symbols('x')
sympy.integrate(sympy.Si(x)/x,x)

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)

XXX

Besides , someone told me that python 3.6.7 can solve this problem(that ideal photo is from him). Which maybe helpful.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
onyukimcommented, Dec 29, 2019

I have been troubled by the same issue. As @wuyudi said, Python 3.6.7 can solve this problem. Workaround for the problem is passing the option latex_mode='equation' to init_printing:

init_printing(latex_mode='equation')
0reactions
wuyudicommented, Feb 23, 2020

@nielsgl Maybe One Dark Pro ?

I turn it off , and it looks like this:

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

compilation error - Overleaf cannot render any LaTex - TeX
I'm new to overleaf and I'm trying to render a basic document and I get: "PDF Rendering Error Something went wrong while rendering...
Read more >
LaTeX render wrong · Issue #2686 · microsoft/vscode-jupyter
LaTeX render wrong #2686 ... Workaround for the problem is passing the option latex_mode='equation' to init_printing :.
Read more >
PDF Rendering Error in Latex - YouTube
PDF Rendering Error Something went wrong while rendering this PDF || PDF Rendering Error in Latex. 8K views · 2 years ago ...more ......
Read more >
Latex rendering error - Resolved help - Obsidian Forum
When I type Latex formula like this $$ D_{n}=\left|\begin{array}{ccccc} a ... Latex rendering error ... I think there is something wrong.
Read more >
Math on GitHub: The Good, the Bad and the Ugly | techematics
The syntax. Getting only one of Markdown and LaTeX rendering right is a big challenge. Mixing them together gets you in all kinds...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found