[Pkg-haskell-maintainers] Bug#749891: pandoc: doesn't support some Unicode characters with PDF output

John MacFarlane jgm at berkeley.edu
Fri May 30 14:47:08 UTC 2014


+++ Vincent Lefevre [May 30 14 14:37 ]:
>Package: pandoc
>Version: 1.12.3.3~dfsg-1+b11
>Severity: normal
>
>$ cat file
>a ≤ b
>$ pandoc file -o out.pdf
>pandoc: Error producing PDF from TeX source.
>! Package inputenc Error: Unicode char \u8:≤ not set up for use with LaTeX.
>
>See the inputenc package documentation for explanation.
>Type  H <return>  for immediate help.
> ...
>
>l.50 a ≤
>
>Try running pandoc with --latex-engine=xelatex.
>
>--------
>
>If I try with --latex-engine=xelatex, I no longer get an error, but
>the "≤" character doesn't appear. There are similar problems with
>other characters. See e.g. Markus Kuhn's UTF-8-demo.txt from:
>
>  http://www.cl.cam.ac.uk/~mgk25/ucs/examples/

Most likely this is because you're using a font that doesn't have
these glyphs.  Try with

    -V mainfont="FONT NAME"

where FONT NAME is a (ttf) font you have installed that has the
character in question.

As far as I can see, this is not a pandoc bug.



More information about the Pkg-haskell-maintainers mailing list