Open raffaem opened 3 days ago
I think there is a misunderstanding about this option. Our documentation for page-width
says (https://quarto.org/docs/reference/formats/docx.html#layout)
Target page width for output (used to compute columns widths for layout divs).
So setting page-width
won't change the layout inside your document. It is the other way around - if you produce a different document with non default page width, you need to adapt this option so that column width in % for layout are computed correctly.
Regarding changing page size for ODT or DOCX, I don't think Pandoc does offer that and so we can't do it either. Possibly using Reference document this can be done though https://quarto.org/docs/output-formats/ms-word-templates.html
Hope it helps understand.
So the correct way to change page size would be:
reference-doc
YAML optionpage-width
equal to page width - left margin - right margin
(in inches)Is that right?
Can we document that process?
I fell the page-width
YAML option must be specified if and only if we use a reference document which is not the default one? That is, page-width
is useless unless reference-doc
is also specified?
Can we also document how to generate a ODT template?
I think this could work, but I did not try. You should try - it could work if Pandoc accepts a reference doc with non-default page size.
I fell the page-width YAML option must be specified if and only if we use a reference document which is not the default one? That is, page-width is useless unless reference-doc is also specified?
It seems right yet 🤔 We could maybe update the documentation on this.
Can we also document how to generate a ODT template?
We document it for word because we have a dedicated section in our guide. https://quarto.org/docs/output-formats/ms-word-templates.html#sec-docx-create-template
We don't do it for ODT because we don't have specific Guide. For all other Pandoc format, Pandoc's manual is the one to follow: https://pandoc.org/MANUAL.html#option--reference-doc
For Docx, we only copied this part. So you'll find the command in the guide
Yes, I tried with a reference doc with a A4 paper size and it worked
(I didn't try columns layout expressed in percentages tough)
Bug description
Consider the following MWE:
Where 8.27 is the page width in inch of the A4 paper format.
The resulting document still has a letter paper format:
Same considerations hold for docx output format.
Steps to reproduce
See above
Expected behavior
Paper format should be A4
Actual behavior
Paper format is letter.
Your environment
Quarto check output