Skip to content
New issue

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

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

Already on GitHub? # to your account

Support landscape pages in Word outputs #132

Open
chrisfenner opened this issue Feb 29, 2024 · 0 comments
Open

Support landscape pages in Word outputs #132

chrisfenner opened this issue Feb 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@chrisfenner
Copy link
Member

We should try to make the Word output more similar to the PDF output by supporting landscape orientation pages.

I made a little progress on this, but had to set it aside.

These Pandoc lua elements will manipulate section breaks and page orientations.

local wordStartLandscape = pandoc.RawBlock(
    'openxml',
    '<w:pPr><w:sectPr><w:pgSz w:w="12240" w:h="15840"/></w:sectPr></w:pPr><w:lastRenderedPageBreak/>'
)

local wordEndLandscape = pandoc.RawBlock(
    'openxml',
    '<w:br w:type="page"/><w:pPr><w:sectPr><w:pgSz w:w="15840" w:h="12240" w:orient="landscape"/></w:sectPr></w:pPr><w:p>TEST</w:p><w:lastRenderedPageBreak/>'
)
@chrisfenner chrisfenner added the enhancement New feature or request label Mar 3, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant