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

It's --latex-engine, not --pdf-engine #11

Open
sitarane opened this issue Jul 11, 2018 · 3 comments
Open

It's --latex-engine, not --pdf-engine #11

sitarane opened this issue Jul 11, 2018 · 3 comments

Comments

@sitarane
Copy link

As is, I get the following error:

pandoc details.yml -o output.pdf --template=template.tex --pdf-engine=xelatex pandoc: unrecognized option --pdf-engine=xelatex'
Try pandoc --help for more information.
makefile:6: recipe for target 'output.pdf' failed
make: *** [output.pdf] Error 2
`

If replace "pdf" with "latex" in FLAGS = --pdf-engine=xelatex in makefile, it works as intended.

@pedro-nonfree
Copy link

pedro-nonfree commented Nov 18, 2018

I have the same bug / problem in Debian 9 stable. I like @sitarane solution

@mrzool are you still active for this amazing project? :)

@WelliSolutions
Copy link

If I replace pdf-engine by latex-engine, I get the following error:

pandoc details.yml -o output.pdf --template=template.tex --latex-engine=xelatex
--latex-engine has been removed.  Use --pdf-engine instead.
Try pandoc --help for more information.

So pdf-engine seems to be correct for newer versions of pandoc.

@sbwiecko
Copy link

sbwiecko commented Mar 7, 2024

The xelatex engine works fine on Windows using the command pandoc details.yml -o output.pdf --template=template.tex --pdf-engine=xelatex, but we need to enclose the polyglossia-lang.name variable in curly braces in the template.tex file as follows:

% LANGUAGE
%--------------------------------
$if(lang)$
\usepackage{polyglossia}
\setmainlanguage{{$polyglossia-lang.name$}}
$endif$

Proposed in #27 (comment)

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

No branches or pull requests

4 participants