When using the -s
(--standalone
) argument for the generation of PDFs, Pandoc uses a specific LateX template.
You can look at the template with pandoc -D latex
and notice that there are many variables that you can set (the same way you did you with -V geometry:margin=1in
in your command).
In order to add a specific header/footer, you can modify this template and use the --template
argument in the command line.
You can get more information here Pandoc demo templates