-
Notifications
You must be signed in to change notification settings - Fork 323
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
Have multiple columns (layout-ncol) work in DOCX, not just HTML and Typst #7624
Comments
Thank you for the report. Note that many of the limitations with Word documents comes from Pandoc. Also, you are using the 1.4 pre-release but not a recent version. |
Ah, interesting to know regarding Pandoc. |
@sda030 Not sure if this meets your requirements, but I built a Quarto extension to add columns to Word outputs. They're flowing ones, though: content flows from one to the next at the line level, rather than being split up and manually assigned to a column at the block level like the Quarto columns. It's very much a proof-of-concept and needs more polish (I found that struggled with images and other nested content), but if you're able to improve it, I'd be happy to take a PR! Word's internal format is... difficult to work with 🤢 |
@cscheid the errors comes from quarto-cli/src/resources/filters/customnodes/floatreftarget.lua Lines 113 to 119 in 50e7e15
Which "should never happen" but seems to happen here 😅 So this is caused by new cross ref system - but here we are just using Layout... 🤔 For reference linking to #4944 Not sure our Panel Layout for docx is currently adapted for non float element quarto-cli/src/resources/filters/layout/docx.lua Lines 33 to 59 in 50e7e15
|
Bug description
The following fails when rendering to docx, but works well in HTML and Typst. Could either be solved with A) section breaks where columns are specified, B) text box (might get messy), or C) a table. A and B would allow Word to reflow by itself. C would require Quarto to split the contents beforehand. But would probably be the most flexible approach for specifying nrow and ncol together. Also the easiest to post-render edit manually if needed.
P. S. I would like to also argue why docx, despite many rejecting it, should be taken somewhat seriously - even though many of us open-source enthusiasts dislike it: Because qmd (naturally) lacks the tracked changes and commenting-chain flow that Word offers, docx is still often needed for generating drafts that others review (unfortunately). Also, some newbie colleagues might prefer the comfort of drafting a Word document and then move it into Quarto later... (I'm not in favour of this workflow, but hard to persuade).
Steps to reproduce
Expected behavior
No response
Actual behavior
Your environment
Quarto check output
The text was updated successfully, but these errors were encountered: