2
Is there a way I can convert large html file (produced with sphinx by the way) to pdf with color, table of contents (toc) and unicode support?
There's htmldoc
-- but it neither support color, nor unicode.
There's rst2pdf
sphinx plugin -- but currently it breaks math rendering, and also can't word-warp code lines.
There's a way to export to xetex
in sphinx
-- but it can't word-wrap code-blocks, and also don't support svg
images.
Edit:
I tried to use pandoc
:
pandoc index.html --mathjax --toc -o index.pdf
it gives:
pandoc: Error producing PDF from TeX source.
! LaTeX Error: Command \guillemotright unavailable in encoding OT1.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.55 2012-Sep-11} »
I'm stucked...
Edit your LaTeX code, and add this line at the beginning:
\usepackage[utf8]{inputenc}
– terdon – 2012-09-11T14:08:27.683But it won't wrap code. In latex you can only wrap code it you're using
listings
. But I have code colored by pygments -- and in listings I can't get it parse that coloring... So You see -- I worked in this way -- latex doesn't work really. – Adobe – 2012-09-11T14:10:31.023