Open exislow opened 1 year ago
something like pandoc -t pdf --template=https://github.com/Wandmalfarbe/pandoc-latex-template/blob/master/eisvogel.tex main.md chap1.md chap2.md chap3.md -o paper.pdf
should work out of the box ... if you really want "includes", check out this Lua filter for Pandoc: https://github.com/pandoc/lua-filters/tree/master/include-files
This is great, but can be a little excessive in some cases. I found, that the easiest way of merging multiple markdown files together is just by grabbing them with glob like this:
pandoc src/*.md -o paper.pdf
Glob sorts files lexigraphically, so your src
directory should look something like this:
src
├── 0-prologue.md
├── 1-chapter.md
├── 2-chapter.md
└── 3-chapter.md
If you write a book your
*.md
document gets pretty long. It makes sense, e.g. to create amain.md
, which include several other markdown files, wheres each included file contains a chapter of the book.Is this template capable of this?