pysheeet icon indicating copy to clipboard operation
pysheeet copied to clipboard

Building a PDF via Sphinx fails

Open dufferzafar opened this issue 7 years ago • 1 comments

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 avatar Dec 07 '17 09:12 dufferzafar

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 avatar Dec 07 '17 12:12 crazyguitar