wikiti / pandoc-book-template

A simple Pandoc template to build documents and ebooks.
MIT License
392 stars 89 forks source link

make html got error 5 in "template" (line 18, column 17) #18

Closed TheListCamp closed 3 years ago

TheListCamp commented 3 years ago

I downloaded the code of this repository and installed packages on ubuntu (Windows Sub System), when I run make html, I got the error message below:

mkdir -p build/html awk 'FNR==1 && NR!=1 {print "\n\n"}{print}' chapters/*.md | tee | pandoc --toc --toc-depth 2 --webtex --metadata-file metadata.yml --template templates/html.html --standalone --to html5 -o build/html/book.html "template" (line 18, column 17): unexpected "(" expecting "." or "$" make: *** [Makefile:83: build/html/book.html] Error 5

wikiti commented 3 years ago

Hello @TheListCamp ,

Could you please provide more information? i.e. versions of make, pandoc, etc

Could you also please try to run the given commands on a linux cmd? Try running the piped commands on a sequential order and see which one failes, like so:

awk 'FNR==1 && NR!=1 {print "\n\n"}{print}' chapters/*.md

awk 'FNR==1 && NR!=1 {print "\n\n"}{print}' chapters/*.md | tee

awk 'FNR==1 && NR!=1 {print "\n\n"}{print}' chapters/*.md | tee | pandoc --toc --toc-depth 2 --webtex --metadata-file metadata.yml --template templates/html.html --standalone --to html5 -o build/html/book.html
wikiti commented 3 years ago

Hello @TheListCamp ,

Without a response, I'm assuming that the issue is solved. Please feel free to comment or open a new issue in case it is not yet solved.