Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOCX page options applied to last section only with --top-level-division=chapter #10577

Closed
adunning opened this issue Jan 30, 2025 · 0 comments
Closed
Labels

Comments

@adunning
Copy link
Contributor

adunning commented Jan 30, 2025

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
@adunning adunning added the bug label Jan 30, 2025
@jgm jgm closed this as completed in 6fbb50f Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant