title: Adding a title page, page headers and footers using Pandoc
body: <p>How do you specify that Pandoc should use a specific header and footer when generating a PDF from Markdown?</p>
  
  <p>Currently I use the following to create my doc from the command line:</p>
  
  <pre><code>pandoc -s -V geometry:margin=1in --number-sections -o doc.pdf doc.mkd
  </code></pre>
  
  <p>This gives a lovely result with numbered sections.</p>
  
  <p>What I would like to do, is to include a header and footer on each page. How do I go about it?</p>
  
  <p>The <a href="http://johnmacfarlane.net/pandoc/demo/example9/pandocs-markdown.html">extensions mechanism</a>, e.g. <code>pandoc_title_block</code> may hold the key, but how do you use it?</p>
  
  <p>Lastly (as a bonus), is there some way to create a title page for a document using pandoc?</p>