Reputation: 7679
I can not figure out how is it possible to start page numbering from 2 rather 1, i.e 2, 3, 4, ..., in Pandoc when converting to PDF?
Upvotes: 3
Views: 4180
Reputation: 19867
Pandoc produces pdf through latex. You need to add \setcounter{page}{2}
to your file. You could also create an option that allows you to set the starting page number in your yaml header.
~/.pandoc/templates/default.latex
(or create it : pandoc -D latex > ~/.pandoc/templates/default.latex
add the following lines in the header:
$if(start-page)$
\setcounter{page}{$start-page$}
$endif$
Add the following your document yaml header
---
start-page: 2
---
pandoc mydoc.md -o mydoc.pdf
Upvotes: 2
Reputation: 39313
Pandoc relies on LaTeX for PDF generation, and you can write inline/raw TeX. So try inserting the following at the beginning of your document:
\setcounter{page}{2}
Upvotes: 4