Code: Select all
*[outputclass = 'wide'] {
page: wide-page;
}
*[orient = 'land'] {
page: wide-page;
}
@page wide-page{
size: A4 landscape;
margin-left: 1.5cm;
margin-right: 1.5cm;
page-break-after: avoid;
page-break-before: avoid;
}
Is there a way in these situations to keep the section header with the figure or table on the landscape page? At present there is a lot of blank space showing in the document.
The second issue is with figures showing on landscape pages. For some reason the caption for the figure is showing on the next page, thus the figure is the only content on the landscape page. I have tried a few different approaches including:
Code: Select all
*[class ~= "topic/fig"] {
page-break-inside:avoid;
page-break-before:avoid;}
As a side note on the above: when a table has an attribute orient = land, the landscape page headers behave differently to pages where outputclass = 'wide' is used, even though it has the same rule:
Code: Select all
*[orient = 'land'] {
page: wide-page;
Thanks