-
Notifications
You must be signed in to change notification settings - Fork 213
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
gt customisation options not persevered in .docx output #1098
Comments
similar to #1089 |
Personal note: in talking with @thebioengineer , there might be an easier way to do this; basically just fold these options into the styles table (i.e., like using |
Hi all, I ran into this same issue and tried to switch to using tab_style() but the formatting options are not being preserved when outputting to .docx in an Rmarkdown notebook. I know you're planning on including this in v0.10.0, but was wondering if there was any interim solution/workaround for this. |
If you could make a reprex of what you are running, that would be great. I believe most tab_style options should be applied, it's the tab_options I haven't been able to put in yet. So knowing what I missed would be great. |
Sure thing! An example is below using iris and gt v0.9.0 and R v4.2.3 Let me know if there's anything else that I can provide.
It renders the table below within the markdown: But when I knit to a .docx it produces: This is the table when I bump all of the fonts up to 12pt So I'm having trouble with:
|
Hi!
I started using the .docx output format and love the way it works with multipage tables for a thesis/report. However, lots of the customisation options specified in my gt 'theme' are not preserved in the output. I'm trying to export gt tables with uniform formatting for inclusion in my PhD thesis
I tried digging around in the
gt_save()
script and also word export script but too complicated for me to deal with xml outputformatting looks like this in R:
but in MS Word now looks like this:
So it's losing
Many thanks!
The text was updated successfully, but these errors were encountered: