Skip to content

How to use custom aligning relative to margins #402

Answered by brechtm
th0mr asked this question in Q&A
Discussion options

You must be logged in to vote

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 ro…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@th0mr
Comment options

Answer selected by th0mr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants