-
Notifications
You must be signed in to change notification settings - Fork 106
-
Notifications
You must be signed in to change notification settings - Fork 106
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
FR: Both width and style of table #142
Comments
Hello Rasmus Thanks, your email is very clear. I will take time later to answer your question (probably this we). |
This is what I would do to reproduce your table:
I am not sure how to help on the width aspect of you columns. You can use
No, there are already some |
Thanks for the example. I have been given a table template by my organization which I am supposed to use for their documents. It would be better to use the official style rather than reproducing it, but perhaps that is the only way to gain the added flexibility of flextables. Kind regards, |
OK, I will give a try later, it should be possible :) |
Need to be able to specify widths with function |
This issue is opened since too much time. Sorry. I will re open when I will find time for it KR |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary. |
Hi,
Thank you for providing and working on
officer
. It is a very neat tool! I hope this is the right place to ask this (as opposed to theflextable
issues page or stackoverflow).In a
docx
file, I hope to make a table with a certain width and a certain Word style, defined by the initial document.As far as I can tell, I can get my desired width via
flextable
and my desired style viaofficer
(body_add_table
), but I am struggling to get both.Example:
Output:
Additional notes:
a long string
to get the desired proportions of thebody_add_table
table and replacinga long string
with""
later, but it did not work.officer
table is determined by<w:tblStyle w:val=\"Table Professional\"/>
. However, I don't know if that would "overrule" all the inlined style offt_str
(probably not). Would it be possible to have a "blank"flextable
theme that simply adds aw:tblStyle
? E.g.ft %>% theme_word_style(style=desired_word_document_style)
Thank you for reading this,
Rasmus
PS:
sessionInfo
The text was updated successfully, but these errors were encountered: