invoice-boilerplate icon indicating copy to clipboard operation
invoice-boilerplate copied to clipboard

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

Open sitarane opened this issue 7 years ago • 3 comments

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.

sitarane avatar Jul 11 '18 09:07 sitarane

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

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

pedro-nonfree avatar Nov 18 '18 21:11 pedro-nonfree

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.

WelliSolutions avatar Dec 07 '23 19:12 WelliSolutions

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 https://github.com/mrzool/invoice-boilerplate/pull/27#issue-2174143860

sbwiecko avatar Mar 07 '24 15:03 sbwiecko