Skip to content
\n

I'm still new to using rinohtype, any help is greatly appreciated.

","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

Sorry, this topic got lost in my chaotic inbox!

\n
\n

It would be ideal if there existed some way to specify that all / some tables are put on a landscape page. Is this possible at the moment with rinohtype?

\n
\n

This is exactly what the sideways figures/tables in 0.5.4 offer! If you want all tables to be placed on a landscape page, you can set float = sideways for the default table style definition. If you want only some tables to be sideways, your page-break-table definition should work. Of course, you then need to set the \"page break\" class on these tables in reStructuredText.

\n
\n

Alternatively, I was wondering how to utilise the new support for sideways figures and tables that was mentioned in the rinohtype 0.5.4 release notes. It mentions the Float style attribute, but when I attempt to incorporate float into my page-break-table styling as shown below, I get \"TypeError: float is not a supported attribute for TableStyle\". Is there a way to ensure the Table class incorperates the float option, is there something I'm missing perhaps?

\n
\n

Only tables with a caption support floating. While I think it's good practice to provide a caption for a table that is rendered out-of-line, it should probably be possible to float caption-less tables as well. For now, try adding a caption to your table.

\n

See the table_sideways.* files in https://github.com/brechtm/rinohtype/tree/master/tests_regression/rst for an example.

","upvoteCount":1,"url":"https://github.com/brechtm/rinohtype/discussions/391#discussioncomment-4799713"}}}

Is it possible to enable landscape table pages in rinohtype or rst? #391

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

You must be logged in to vote

Sorry, this topic got lost in my chaotic inbox!

It would be ideal if there existed some way to specify that all / some tables are put on a landscape page. Is this possible at the moment with rinohtype?

This is exactly what the sideways figures/tables in 0.5.4 offer! If you want all tables to be placed on a landscape page, you can set float = sideways for the default table style definition. If you want only some tables to be sideways, your page-break-table definition should work. Of course, you then need to set the "page break" class on these tables in reStructuredText.

Alternatively, I was wondering how to utilise the new support for sideways figures and tables that was mentioned in th…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
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