jupyter / notebook

Jupyter Interactive Notebook
https://jupyter-notebook.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
11.41k stars 4.76k forks source link

LaTeX new line with \\ #7071

Open haltersweb opened 10 months ago

haltersweb commented 10 months ago

Description

Notebook v7 does not recognize LaTeX double backslash to create new line. I had to roll back to 6.5.6 for it to work.

Reproduce

  1. Open terminal

  2. Install notebook v7 by typing pip install notebook or pip install notebook==7.0.4

  3. Open a new notebook by typing jupyter notebook and then selecting New (Python page)

  4. Change the cell to markdown

  5. type the following:

    $$
    123\\
    456
    $$
  6. Render the cell

Expected result:

123 456

Actual result:

123456

Context

Failure: Unsuccessful using notebook 7.0.4 on the following computers -- all LaTeX text ran together. Success: Successful using notebook 6.5.6 on the following computers -- the LaTeX text showed on separate lines as expected.

MacBook Air M2, 2023 macOS Ventura 13.5.2 Browsers: Chrome, Safari Python 3.10.13

MacBook Pro 2018 macOS Monterey v12.4 Browsers: Chrome, Safari (on notebook 7.0.4 the entire Jupyter Notebook interface didn't show up at all on Safari) Python 3.10.8, 3.10.11

RRosio commented 9 months ago

Hi @haltersweb thank you for opening this issue. This has been previously reported in https://github.com/jupyterlab/jupyterlab/issues/14570, and it is blocked by https://github.com/mathjax/MathJax/issues/2312. As a workaround, you can try pip install jupyterlab-mathjax2.