6
votes
2answers
1k views

Adding page breaks to pandoc latex template when converting markdown

Perhaps I'm missing something, but is there a way to either (a) ensure that pandoc places pagebreaks before level 1 and level 2 headers in markdown (#,##), or (b) hide \newpage from other markdown ...
5
votes
1answer
310 views

Stop listings going over page breaks

I am using Pandoc to generate Tex from Markdown. It automatically generates listings when it comes across the appropriate Markdown (code indented four spaces). It then uses the listings package to ...