-
Notifications
You must be signed in to change notification settings - Fork 332
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
Landscape environment skip page numbers in docx output #11856
Comments
I believe this would be very tricky to do in a Lua filter.
From jgm/pandoc#9535:
Page numbering is done by section, which the filter here replaces, leading to the third sections only getting the page value. The OpenXML code for page numbering: |
I don't know anything about the docx format, but notice that that comment refers to the opposite problem, e.g. docx->md conversion (and jgm is pointing out that you lose page numbers in that conversion), while we are doing md->docx |
The problem is the same in the sense that it's not computed, so you need to read the reference document, get the information about "placeholder" for page numbering, insert that back in any new section you create.
To be clear, the issue here is that the filter overwrites the sections in the reference document thus removing page numbering. |
Bug description
Consider the following docx template (github doesn't allow me to upload a .docx file, so I had to compress it)
custom-reference-doc.zip
Consider the following Quarto document:
It will be rendered with page numbers:
Now consider the following Quarto document:
It will be rendered without page numbers:
@edvinsyk as the original author of this filter
Steps to reproduce
See above
Expected behavior
Page numbers should be rendered in both cases
Actual behavior
In the document with the landscape environment, page numbers are not rendered
Your environment
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) rstudio/2024.12.0+467 Chrome/126.0.6478.234 Electron/31.7.6 Safari/537.36, Quarto 1.7.6 (/opt/quarto/bin/quarto)
Quarto check output
The text was updated successfully, but these errors were encountered: