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

Created on 29 Oct 2017  路  2Comments  路  Source: jupyter/notebook

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 <return>  for immediate help.
     ...                                              

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

Most helpful comment

@mpacer Does this sound like a bug? I can confirm that once I remove the space before the final $, I am able to download as PDF.

All 2 comments

@mpacer Does this sound like a bug? I can confirm that once I remove the space before the final $, I am able to download as PDF.

Okay, thanks for the hint with the space, I was about to file a bug report as well. I would certainly consider this a bug, because the code is valid, with or without space and it is by no means obvious to the user why this fails.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mikepqr picture mikepqr  路  3Comments

jonatanblue picture jonatanblue  路  3Comments

cmesro picture cmesro  路  3Comments

qnicole-zakka picture qnicole-zakka  路  3Comments

mowe96 picture mowe96  路  3Comments