Horizontal tables keep several pages after in landscape mode

verostarry
Posts: 1
Joined: Wed Jul 21, 2021 9:39 pm

Horizontal tables keep several pages after in landscape mode

Post by verostarry » Wed Jul 21, 2021 9:55 pm

Hi,

I'm not sure this is a Chemistry-related issue, but it is the processor my team is using. I've noticed that when we set the orient@land attribute on tables, the pages the tables are on do indeed orient landscape, but this doesn't stop until the next chapter begins in the bookmap type ditamap. All the rest of the pages in the same chapter, although in different DITA files and not having tables themselves, remain landscape.

Is there a fix for this? We'd only like the pages with the tables we specify orient@land in landscape, or at most just the sub-chapter they're in. We use very little table-related CSS, which I'm c+ping here but it doesn't look like any would cause this behavior:

Numbering tables:
*[class ~= "topic/table"]{
counter-increment: tablecount;
}

*[class ~= "topic/table"] caption::before {
content: "Table " counter(tablecount) ": ";
}

table {
word-wrap:break-word;
white-space: normal;
table-layout: fixed;
word-break: break-all;
width:100%;
overflow-wrap: break-word;
position:relative;
}

*[class~="topic/table"] {
-oxy-borders-conditionality: retain;
}

Thanks!
Veronica

julien_lacour
Posts: 200
Joined: Wed Oct 16, 2019 3:47 pm

Re: Horizontal tables keep several pages after in landscape mode

Post by julien_lacour » Thu Jul 22, 2021 11:17 am

Hello Veronica,

You can add the following rule in your CSS customization:

Code: Select all

*[class ~= "topic/table"][orient="land"] {
  page-break-after: always;
}
To make sure that your tables are isolated on the landscape page.

If this does not work, could you send me back a small randomized sample at support@oxygenxml.com?

Regards,
Julien

Post Reply