Pandoc Error 97: Could not find data file /usr/share/pandoc/data/templates/template.tex
Peder2911 opened this issue · comments
Hey guys! I am trying to render my thesis using thesisdown, but for some reason, pandoc cannot locate the template file?
This is the error i am getting:
/usr/bin/pandoc +RTS -K512m -RTS thesis.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output thesis.tex --table-of-contents --toc-depth 3 --template template.tex --number-sections --highlight-style tango --latex-engine pdflatex --top-level-division=chapter --variable tables=yes --standalone --filter /usr/bin/pandoc-citeproc
pandoc: Could not find data file /usr/share/pandoc/data/templates/template.tex
Error: pandoc document conversion failed with error 97
Execution halted
This is my header:
---
author: 'Peder G. Landsverk'
date: 'May 2019'
title: 'My thesis'
csl: refstyle.csl
bibliography: lib.bib
output:
thesisdown::thesis_pdf:
header-includes:
- \setlength{\parindent}{0em}
- \setlength{\parskip}{1em}
acknowledgements: "..."
dedication: "..."
---
Downloading template.tex and trying to render again results in:
/usr/bin/pandoc +RTS -K512m -RTS thesis.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output thesis.tex --table-of-contents --toc-depth 3 --template template.tex --number-sections --highlight-style tango --latex-engine pdflatex --top-level-division=chapter --variable tables=yes --standalone --filter /usr/bin/pandoc-citeproc
! LaTeX Error: Command \VerbBar already defined.
Or name \end... illegal, see p.192 of the manual.
Error: Failed to compile thesis.tex. See https://yihui.name/tinytex/r/#debugging for debugging tips. See thesis.log for more info.
Execution halted
Hey, i am just being a noob. Nevermind! Figured it out.
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org whenever possible) and link to this issue. If a reprex is not applicable, recording a short Loom video showing what you are seeing can go a long way in helping to diagnose problems.