After kniting a Bookdown project into a .docx file, the - excellent - flextable package
made tables in my .docx document with MS-Word 'Normal Style', which has very large interline and is supposed to define the text, nor the tables' cells.
Please, how can I made a flextable table with 1.0 interline or how can I made the flextable tables in the same style than the knitr::kable()
?
The knitr::kable()
behavior is to define the MS-Word 'Compact Style' for the entire table, after knitting to .docx. This behavior of knitr::kable
produce tables with simple interlines, in my case (vs. the 'Normal Style' for flextable tables with 1.5 interlines). The following image is an example of these differences, in my .docx output.
- It seems that it's not possible to apply a MSWord style on a flextable object, and we have to set the police size and font by adding
font()
, etc. Butflextable::padding(padding = 0)
doesn't define interline. Maybe I'm wrong on this point ? There is a way to define interlines for a table, or set the same MSWord style for all the tables produced with flextable ?
Thanks a lot, un très grand merci.