Wandmalfarbe / pandoc-latex-template

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

Error `Could not find executable pandoc-latex-environment` with awesomebox #311

Closed louis-vgn closed 1 year ago

louis-vgn commented 1 year ago

I’m not sure why, but when I run the following:

pandoc "boxes.md" -o "boxes.pdf" --from markdown --template "../../eisvogel.tex" --filter pandoc-latex-environment --listings

from the examples/boxes-with-pandoc-latex-environment-and-awesomebox (which is exactly the build.sh script on the repo with the corresponding document names) on my computer, I get the following error:

Error running filter pandoc-latex-environment:
Could not find executable pandoc-latex-environment

I’ve been trying to find an answer, but it seems I am the first to encounter the issue (or maybe I’m just not doing it right, but I don’t know

louis-vgn commented 1 year ago

Nevermind, I found the answer. Just in case someone else wonders as well, follow these steps.

  1. Needs the python executable pandoc-latex-environment, so install it:
    pip install pandoc-latex-environment
  2. Then, add to your PATH (change according to your system/where the executable is):
    export PATH="/home/USER/.local/bin:$PATH"