-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Closed
Copy link
Labels
Description
Using pandoc 3.6.2, the page formatting options from a custom reference.docx are applied to the last section of the document only.
For example, reference-a4.docx is set to use A4 paper, restart footnote numbering with each section, and include page numbers.
If one runs the following, these three settings are applied to the last section only:
pandoc -o chapter.docx --top-level-division=chapter --reference-doc=reference-a4.docx << EOT
# Chapter 1
Sit tenetur aspernatur numquam et aliquam. Quia dolorum velit dolor inventore consequatur enim.^[Fuga deleniti doloremque dolorem quaerat.]
# Chapter 2
Provident consequatur in adipisci autem nulla dignissimos vero alias. Ratione eum officia est et.^[Voluptatibus quos et quia dolor alias ratione suscipit explicabo.]
# Chapter 3
Qui et voluptatem blanditiis. Necessitatibus libero incidunt dolorem ut corporis accusamus. Modi tempora numquam natus cumque quibusdam rerum officia. Consectetur quia odio enim deserunt eos expedita unde molestias. Delectus cum et enim voluptatem ut.^[Rem quo aut velit deserunt est mollitia.]
EOT