Horizontal tables keep several pages after in landscape mode

Having trouble installing Oxygen PDF Chemistry? Got a bug to report? Post it all here.
verostarry
Posts: 17
Joined: Wed Jul 21, 2021 9:39 pm

Horizontal tables keep several pages after in landscape mode

Post by verostarry »

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: 481
Joined: Wed Oct 16, 2019 3:47 pm

Re: Horizontal tables keep several pages after in landscape mode

Post by julien_lacour »

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
julien_lacour
Posts: 481
Joined: Wed Oct 16, 2019 3:47 pm

Re: Horizontal tables keep several pages after in landscape mode

Post by julien_lacour »

Hello Veronica,

We just released the new version of Oxygen (25.0).
In this version the page remaining landscape problem should be resolved.

I hope you will enjoy this new version!

Regards,
Julien
Post Reply