-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I can see merit in supporting this, but I'm not convinced rinohtype should provide extra style properties for such a specific case... You can however achieve this with some more manual intervention by defining a wide table style definition for which you set a left margin of -2cm. This wide table style should match tables for which e.g. the wide class is set. I haven't tested this, but it should be a good start: [wide table : Table(has_class='wide')]
base = table
margin_left = -2cm
# optionally: width = 100% .. table:: Wide table
:class: wide
+------------------------+------------+----------+----------+
| Header row, column 1 | Header 2 | Header 3 | Header 4 |
| (header rows optional) | | | |
+========================+============+==========+==========+
| body row 1, column 1 | column 2 | column 3 | column 4 |
+------------------------+------------+----------+----------+
| body row 2 | Cells may span columns. |
+------------------------+------------+---------------------+
| body row 3 | Cells may | - Table cells |
+------------------------+ span rows. | - contain |
| body row 4 | | - body elements. |
+------------------------+------------+----------+----------+
| body row 5 | Cells may also be | |
| | empty: ``-->`` | |
+------------------------+-----------------------+----------+ Of course, this isn't yet documented properly. In the meantime, you can have a look at the table* examples in https://github.com/brechtm/rinohtype/tree/master/tests_regression/rst. |
Beta Was this translation helpful? Give feedback.
I can see merit in supporting this, but I'm not convinced rinohtype should provide extra style properties for such a specific case...
You can however achieve this with some more manual intervention by defining a wide table style definition for which you set a left margin of -2cm. This wide table style should match tables for which e.g. the wide class is set.
I haven't tested this, but it should be a good start: