laboon / ebook

Software Testing ebook
158 stars 62 forks source link

pandoc: unrecognized option `--pdf-engine' #158

Closed fuhrmanator closed 4 years ago

fuhrmanator commented 4 years ago

I'm building on

NAME="Ubuntu" VERSION="18.04.3 LTS (Bionic Beaver)"

and I get the following error:

pandoc: unrecognized option `--pdf-engine' Try pandoc --help for more information. Makefile:15: recipe for target 'pdf' failed

The fix seems to be --latex-engine xelatex instead of --pdf-engine xelatex. It worked for me, anyway.

fuhrmanator commented 4 years ago

This seems to depend on the version of Pandoc. 2.0 seems to be where this changed.

fuhrmanator commented 4 years ago

More details: Ubuntu 18.04 won't install pandoc 2.x with apt-get because its current install was

bionic (18.04LTS) (text): general markup converter [universe]
1.19.2.4~dfsg-1build4: amd64 arm64 armhf i386 ppc64el s390x

I went to https://github.com/jgm/pandoc/releases/latest and downloaded the pandoc-2.*-amd64.deb file and executed

sudo dpkg -i $DEB

where $DEB is the downloaded .deb file above, to install it by hand.