Skip to content
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

docx: Colors and alignment not supported #335

Open
katossky opened this issue Aug 29, 2024 · 2 comments
Open

docx: Colors and alignment not supported #335

katossky opened this issue Aug 29, 2024 · 2 comments

Comments

@katossky
Copy link

I am trying to migrate from gt to your package, mainly because yours correctly exports numbered tables to docx in a quarto document.

However colors (font and background) do not seem to travel along to Word, which stops me for now.

@katossky
Copy link
Author

(nor horizontal alignment ; bold is correctly rendered ; I did not test all types of styles)

@vincentarelbundock
Copy link
Owner

Thanks for trying out the package.

This is a known limitation, documented in ?style_tt()

The problem is that Word tables are built by creating a markdown table and using Pandoc to convert to Word. Unfortunately, there is no syntax in markdown for colors or many other style elements.

@vincentarelbundock vincentarelbundock changed the title New feature : colors in docx docx: Colors and alignment not supported Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants