Nbconvert: Export to PDF with foreign language failed

Created on 12 Feb 2016  路  2Comments  路  Source: jupyter/nbconvert

Hey there. I've experienced some issues with PDF export on Jupiter Notebook (v 4.1.0) recently. jupiter nbconvert fails to convert

nbconvert failed: PDF creating failed

Being interested what's the matter, I've converted notebook to latex and compiled it using pdflatex. The error was that initiate packages imported in the preamble do not support russian language at all. Don't know anything about other languages.

Problem solved by adding

    \usepackage[T1,T2A]{fontenc}
    \usepackage[russian,english]{babel}

after

    \usepackage[utf8x]{inputenc}

and it finally worked in this case. Will it be native support for other languages for this type of export?

LaTeX

Most helpful comment

@eignatenkov, I wrote a script to convert notebook to pdf via terminal. Maybe you find it useful :)

ipynb2pdf

It's easy to change the output language by simple editing the code.

All 2 comments

same here. Thanks for this temp solution, btw.

@eignatenkov, I wrote a script to convert notebook to pdf via terminal. Maybe you find it useful :)

ipynb2pdf

It's easy to change the output language by simple editing the code.

Was this page helpful?
0 / 5 - 0 ratings