Open Yuri05 opened 2 years ago
I have done some testing of the word conversion for the table format.
Currently, the reference word document managing the styles of the report (provided as wordConversionTemplate
argument of the workflow) updates the Table properties as follows:
More details available on that Pandoc issue
The font defined by the previous workflow was not used by Pandoc in my tests, however, the following workflow was working to change the font of the table
Alignment did not work in my tests:
kable
from the {knitr}
package which outputs |:----|
left-aligning the tables)|:----|
was left aligned|----:|
was right aligned|:---:|
was still left aligned even when the reference doc Table style used centered cells by default|----|
was still left aligned even when the reference doc Table style used centered cells by default@Yuri05 While creating an article for documenting how to work with word reports I may have found a solution for alignment.
It is possible to defined inline openxml raw code for alignment
|header 1|long header 2|very long header 3|
|----|-----|-----|
|a |b |`<w:pPr><w:jc w:val="right"/></w:pPr>`{=openxml} c|
would render the following in word.
header 1 | long header 2 | very long header 3 |
---|---|---|
a | b | c |
@sfrechen @annikarps please attach word document (1 page) which contains a table with dummy data in required format