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

pandoc does not recognise latex-engine argument #1832

Closed
inkrement opened this issue Dec 21, 2014 · 2 comments · Fixed by #1870
Closed

pandoc does not recognise latex-engine argument #1832

inkrement opened this issue Dec 21, 2014 · 2 comments · Fixed by #1870

Comments

@inkrement
Copy link

I am using pandoc 1.13.1 with xelatex, but it seems like pandoc does not recognise the argument:

Christians-iMac-3:dipl chris$ pandoc -r markdown+simple_tables+table_captions+yaml_metadata_block -s -S --latex-engine=xelatex --template=templates/xelatex.template --filter pandoc-citeproc --csl=./csl/ieee.csl --bibliography=/Users/chris/Documents/mendeley/library.bib -o build/diplomarbeit.pdf src/diplomarbeit.md
! Package inputenc Error: Keyboard character used is undefined
(inputenc)                in inputencoding `utf8'.

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

l.38 Arbeit verwendeten und fü

Try running pandoc with --latex-engine=xelatex.
pandoc: Error producing PDF from TeX source
@mb21
Copy link
Collaborator

mb21 commented Dec 21, 2014

I would guess that pandoc does recognize the latex-engine argument, but that the XeTeX engine has trouble with some unicode characters and/or some TeX package loaded, see for example here. Does it work without your custom template?

You could try converting to tex first (with pandoc [...] -o out.tex) and then debug the issue by running XeTeX on the produced file.

@jgm
Copy link
Owner

jgm commented Jan 2, 2015

We should at least fix pandoc so that the "Try running pandoc with --latex-engine=xelatex" message doesn't appear if they did use xelatex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants