mrzool / invoice-boilerplate

Simple automated LaTeX invoicing system
http://mrzool.cc/tex-boilerplates/
GNU General Public License v2.0
702 stars 101 forks source link

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

Open sitarane opened 6 years ago

sitarane commented 6 years ago

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 commented 5 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? :)

WelliSolutions commented 7 months ago

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 commented 4 months ago

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