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

Building a PDF via Sphinx fails #39

Open
dufferzafar opened this issue Dec 7, 2017 · 1 comment
Open

Building a PDF via Sphinx fails #39

dufferzafar opened this issue Dec 7, 2017 · 1 comment
Labels

Comments

@dufferzafar
Copy link

dufferzafar commented Dec 7, 2017

There seem to be a lot of unicode issues. I have no clue how to fix them, but having a PDF would be neat.

git clone https://github.com/crazyguitar/pysheeet
cd pysheeet/docs
make latexpdf
! Package inputenc Error: Unicode char 中 (U+4E2D)
(inputenc)                not set up for use with LaTeX.

See the inputenc package documentation for explanation.
Type  H <return>  for immediate help.
 ...

l.1677 ...G{l+s+s1}{中文}\PYG{l+s+s1}{\PYGZsq{}}
@dufferzafar dufferzafar changed the title Sphinx Latexpdf fails Building a PDF via Sphinx fails Dec 7, 2017
@crazyguitar
Copy link
Owner

crazyguitar commented Dec 7, 2017

HA! you can download the PDF here, but it still has some Unicode problems.

Maybe you can try the following commands (which I found on readthedocs):

$ sphinx-build -b latex -D language=en -d _build/doctrees . _build/latex
$ pdflatex -interaction=nonstopmode _build/latex/python-cheatsheet.tex

@crazyguitar crazyguitar added the bug label Dec 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants