I've only startd looking into pandoc a few hours ago so there's still lots I don't know. I know that if I modify a generated docx and add footer and page numbers, then I can use that as a template, but I'm wondering if it's possible to use pandox without a template and generate a footer and page numbers?
I was thinking this would be possible
pandoc <args> --page_numbers --footer="Created by John Smith"
Or is that only doable with a template?
Your description suggests you're typing them. The problem with footnotes & page #s clashing suggests you haven't allowed any header/footer space from the edge of the page (see Page Setup>Layout). Was this reply helpful?
There is currently no default template for the docx format (see 1, 2, 3) so you cannot pass a footer file by command line.
You can use the reference-docx
option to provide a footer but cannot override the footer
variable:
pandoc -f markdown --reference-docx=template.docx -t docx input.md -o output.docx
Edit: Adding (from Word) page numbers on the template does work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With