jupyter / jupyter/notebook

Latex renders, but pdf generation(of all pages) fails

Open
#2,991 2 comments 3 reactions 0 assignees View on GitHub
question
Dominant language
Jupyter Notebook
Stars
13.3k
Forks
5.8k
Avg merge
6d 11h
Merged PRs (30d)
7

Description

Example:

$C = \{\mathbf{u}_1,\mathbf{u}_2,\mathbf{u}_3, \mathbf{u}_4 \} $

Renders fine, but pdf generation fails because of the extra space at the end.

```
! LaTeX Error: \mathbf allowed only in math mode.

See the LaTeX manual or LaTeX Companion for explanation.
Type H for immediate help.
...

l.575 \$C = \{\mathbf
{u}\_1,\mathbf{u}\_2,\mathbf{u}\_3, \mathbf{u}\_4 \} \$
?
! Emergency stop.
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure with the provided LaTeX expression: it renders in the notebook but fails during PDF generation because of the trailing space. Start by tracing the notebook PDF export entry point; done means the example renders successfully in the generated PDF without breaking other pages.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, latex
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.