Skip to main content
4-Participant
January 14, 2026
Solved

How to manually move between landscape and portrait pages?

Hi all!

I need to (as an author) set orientation of page manually depending on element. 
It is required so that I can have large images/tables on Landscape pages,
I have created two page sets. One for Portrait and other for Landscape.

I am currently using outputclass=landscape or Portrait to start new pages on elements like concept and Task.

NP_13632232_1-1768393560992.png

 


Now this works but in order to add these conditions to these elements, I have converted the elements from Unstyled (default) to Division 2-4. This causes an issue in my header which is supposed to display only header level 1 or division 2 using Division Reference.

NP_13632232_0-1768393465144.png

 

However, it displays the first task/concept element irrespective of the division level. Note that this issue only occurs for the unstyled elements that are now Division style. 
Either Concept/Task is not being converted/recognized correctly, 
or I converted them incorrectly or the system is broken.
Any suggestions?
How do you achieve this?



18-Opal
January 14, 2026

In DITA, unstyled elements inherit the style of the element they are specialized from, i.e. unstyled <concept> gets styled by the style for <topic>.

 

In this case, you should be able to apply your styling to <topic> and have it format the things that inherit from topic (task, reference, concept). Try reverting the styles you've applied to <concept> and <task> back to unstyled, and add your pageset conditions to <topic> and see if that gives better results.

4 replies

18-Opal
January 14, 2026

In DITA, unstyled elements inherit the style of the element they are specialized from, i.e. unstyled <concept> gets styled by the style for <topic>.

 

In this case, you should be able to apply your styling to <topic> and have it format the things that inherit from topic (task, reference, concept). Try reverting the styles you've applied to <concept> and <task> back to unstyled, and add your pageset conditions to <topic> and see if that gives better results.

Translate
4-Participant
January 16, 2026

Amazing!
It was working like you said, However I couldn't understand why. 
Your clarification helps a lot 🙂
Big Thanks!

 

Translate