Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nbconvert --to latex: error when converting greek letter #4247

Closed
untom opened this issue Sep 21, 2013 · 4 comments · Fixed by #4269
Closed

nbconvert --to latex: error when converting greek letter #4247

untom opened this issue Sep 21, 2013 · 4 comments · Fixed by #4269
Milestone

Comments

@untom
Copy link

untom commented Sep 21, 2013

Hi there!

I have a notebook that contains the letter "α" in a "Heading 1" cell:

ipython_alpha

When running nbconvert ( ipython nbconvert myfile.ipynb --to latex --post PDF ), I get the following error:

! Undefined control sequence.
\u-default-945 #1->\textalpha 

l.355 \part{Full Method, α = 0.05}

? 
! Emergency stop.
\u-default-945 #1->\textalpha 

l.355 \part{Full Method, α = 0.05}

!  ==> Fatal error occurred, no output PDF file produced!

(I'm using IPython 1.1.0)

@jakobgager
Copy link
Contributor

This looks like the same issue as #4244.
For now, you can manually include

    \usepackage[mathletters]{ucs}

to the latex preamble. This will take care of the unicode α.
@jdfreder: maybe we should add this to the new templates?

@jakobgager
Copy link
Contributor

Oh, I just discovered, that the ucs package is already included! 😜
So it is enough to add the mathletters option.

@jdfreder
Copy link
Member

maybe we should add this to the new templates?

Sorry, I didn't see this until today. The new tex stuff is merged, do you want to open a PR or do you want me to?

@jakobgager
Copy link
Contributor

PR is #4269. It is fine to practice git and github usage 😏

@minrk minrk added this to the 2.0 milestone Mar 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants