Wandmalfarbe / pandoc-latex-template

A pandoc LaTeX template to convert markdown files to PDF or LaTeX.
BSD 3-Clause "New" or "Revised" License
6.21k stars 968 forks source link

Error building examples: requirements not found #217

Open philipptempel opened 3 years ago

philipptempel commented 3 years ago

Fresh clone on Darwin MacBookPro.local 19.6.0 Darwin Kernel Version 19.6.0: Tue Nov 10 00:10:30 PST 2020; root:xnu-6153.141.10~1/RELEASE_X86_64 x86_64, receiving the error when running

$ ./build-examples.sh
##
# Building examples
##

- header-and-footer
./build-examples.sh: line 16: pdftoppm: command not found

Would be great if you could add pdftoppm as necessary requirement (or dev-requirement). In fact, it is poppler that packages pdftoppm for macOS. How to satisfy the requirements should be then easy to figure out by everyone e.g., sudo port install poppler or brew install poppler

Then later, after installing poppler, there's a new unmet requirement:

Could not find executable pandoc-latex-environment

So, to the rescue comes

$ pip install pandoc-latex-environment

and then everything works. Luckily

Wandmalfarbe commented 3 years ago

The documentation definitely needs some improvement regarding on how to build everything yourself.