I am writing a text in markdown
to pipe into pandoc
to produce html
and tex
files.
This works great for single files and linked html files.
Now I want to build a single pdf of the multiple tex files using a main file which calls the tex files with \include{foo}
.
Which fails with each .tex
file having a full preamble.
How would I tell pandoc to produce a includable tex-file? Or am I on the wrong track? If so, how can I stich together a pdf from several markdown files?
PS I am here because of this
I just realized I still had the -s
option in my pandoc
command.
With out it, pandoc produce just the text body and everything works.
Bonus: In fact, want to use \input{foo}
to be able to carry label over several latex files.