Open sitarane opened 6 years ago
I have the same bug / problem in Debian 9 stable. I like @sitarane solution
@mrzool are you still active for this amazing project? :)
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.
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
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
inmakefile
, it works as intended.