-
Notifications
You must be signed in to change notification settings - Fork 331
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
Both figure and table captions are being converted to actual table structures within Word. This results in the captions being displayed as tables, not text, completely breaking the document layout and structure. #11756
Comments
Could you properly format your post using code blocks for code and terminal outputs? Thanks. Where did you see |
Thanks so much! Because I'm using reference.docx to set the table style, specifically the required outer border, the table style is also being applied to the table captions。 I'm using a Python filter with Pandoc to temporarily get the results I need。 Why are the captions formatted with the table style?
|
I'm having the same problem. Ideally, the table caption should be a separate line of text, rather than presented as a ‘nested table’. Especially, when we need to write academic papers and have to use cross-references and three-line tables, extra time must be spent reformatting. Also, I think there is a more detailed description in #10587. |
Important We appreciate your interest in the Quarto project, but the content above violates our Code of Conduct. As a member of the Quarto community, you are expected to follow our Code of Conduct, which outlines the standards of behavior and communication that we value. The Code of Conduct applies to all online interactions within the Quarto project, and it is enforced by the Quarto team. By participating in the Quarto community, you agree to abide by the Code of Conduct and respect the rights and dignity of others. You can find the Code of Conduct at https://github.com/quarto-dev/quarto-cli?tab=coc-ov-file#readme. Thank you for your cooperation and contribution. 🙏 |
#10587 is indeed related but is not exactly the same thing. |
Sorry, I used a machine translation directly and didn't double-check the rude expression, I've just revised the above comment. |
Bug description
"I'm encountering a significant issue when converting Quarto documents to Word (.docx) format. Instead of correctly rendering figure and table captions as either "Image Caption" or "Table Caption" styles, Quarto is erroneously converting them into actual Word "Table" elements. This means that the captions are not displayed as text paragraphs but are instead rendered as full-fledged tables within the Word document. This is a very peculiar and serious error, as the captions should clearly be text content associated with figures and tables, not actual tables themselves.
To be more specific:
Expected behavior: Figure captions should be rendered using the "Image Caption" style in Word, and table captions should be rendered using the "Table Caption" style (or at least as normal paragraph text associated with table/figures ).
Actual behavior: Both figure and table captions are being converted to actual table structures within Word. This results in the captions being displayed as tables, not text, completely breaking the document layout and structure.
This is happening in all cases, regardless of whether the caption is for a figure or a table. I've checked for any potential configuration issues and verified that my Pandoc setup is correct, which leads me to believe that this might be a bug within Quarto itself.
I would be grateful if you could investigate this issue and provide a potential workaround or solution."
Steps to reproduce
Expected behavior
Figure captions should be rendered using the "Image Caption" style in Word, and table captions should be rendered using the "Table Caption" style (or at least as normal paragraph text associated with table/figures
Actual behavior
Both figure and table captions are being converted to actual table structures within Word. This results in the captions being displayed as tables, not text, completely breaking the document layout and structure.
Your environment
windows11 ,Rstudio ,quarto latest 1.6*
Quarto check output
$ quarto check
Quarto 1.6.39
[>] Checking environment information...
Quarto cache location: C:\Users\fanxf\AppData\Local\quarto
[>] Checking versions of quarto binary dependencies...
Pandoc version 3.4.0: OK
Dart Sass version 1.70.0: OK
Deno version 1.46.3: OK
Typst version 0.11.0: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
Version: 1.6.39
Path: C:\ProgramData\chocolatey\lib\quarto\tools\bin
CodePage: 65001
[>] Checking tools....................OK
TinyTeX: (external install)
Chromium: (not installed)
[>] Checking LaTeX....................OK
Using: TinyTex
Path: C:\Users\fanxf\AppData\Roaming\TinyTeX\bin\windows
Version: 2024
[>] Checking basic markdown render....OK
[>] Checking Python 3 installation....OK
Version: 3.12.4
Path: C:/Python312/python.exe
Jupyter: (None)
[>] Checking R installation...........OK
Version: 4.4.1
Path: C:/PROGRA
1/R/R-441.1LibPaths:
- C:/Users/fanxf/AppData/Local/R/win-library/4.4
- C:/Program Files/R/R-4.4.1/library
knitr: 1.48
rmarkdown: 2.28
[>] Checking Knitr engine render......OK
The text was updated successfully, but these errors were encountered: