== Context ==
I am currently working on pdf and odt (or rtf) export of tables. It works fine for pdf and I am able to nicely format my tables with given column widths.
== Problem==
I could not find a way to have the proper column width in office document exports
== Already tried ==
- search in the current forum or the old one for table width export
- format the table using xwiki 2.1 syntax
- format the table using html
== Question ==
Does anybody knows a way to force a specific width for the columns of a table in an office export ?
Here is my test document:
= Title =
== Content ==
This is just a simple test.
== A table ==
(% style="width:14cm" summary="Example" %)
|a|111
|bb|22
|ccc|3
{{html}}
<h2>Another table</h2>
<table>
<colgroup>
<col style='width: 6cm'/>
<col style='width: 6cm'/>
</colgroup>
<theader><tr><th>col1</th><th>col2</th></tr></theader>
<tbody>
<tr><td>a</td><td>1</td></tr>
<tr><td>b</td><td>2</td></tr>
</tbody>
</table>
{{/html}}
I get the expected widths in the pdf export, but only minimal widths in the office exports. For references, I am using version 10.11.9 of XWiki and 5.2.6.2 of LibreOffice.