quarto-dev / quarto-dev/quarto-cli
Document Merged Table Cells in all formats (particularly DOCX)
@cwickham is already working on this.
Since Mar 11, 2025.
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
What would you like to do?
Give feedback or suggest an improvement
Description
1. Merged Table Cells in Word
According to the Quarto documentation on tables, it is not explicitly stated that merged cells are supported in Word output. However, Quarto natively supports grid_tables, which can render merged cells correctly across Word, HTML, and PDF formats. Here's an example:
---
title: "Quarto Playground"
format:
docx
---
## Grid Table with Column Span
+---------------------+----------+
| Property | Earth |
+=============+=======+==========+
| | min | -89.2 °C |
| Temperature +-------+----------+
| 1961-1990 | mean | 14 °C |
| +-------+----------+
| | max | 56.7 °C |
+-------------+-------+----------+
The above example works seamlessly in all output formats, including Word. However, this functionality is not explicitly mentioned in the Quarto documentation, and including it would make this capability more visible to users.
Suggested Improvements:
- Document Merged Table Cells:
- Update the table documentation to include the use of
grid_tablesfor merged cells in Word, HTML, and PDF outputs. - Provide clear examples for users to replicate this functionality.
- Update the table documentation to include the use of
Benefits:
- Makes Quarto’s capabilities more transparent to users.
- Enhances usability for academic and technical writing by providing official guidance on:
- Merged table cells in Word.
Related Discussions:
This request builds upon Discussion #11753 on Quarto’s GitHub platform.
Thank you for considering this enhancement to the documentation!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.