I have a document that contains both portrait-oriented and landscape-oriented pages. The portrait-oriented pages are styled as spreads: that is, I use “Right Page” and “Left Page” styles for them.
“Right Page” and “Left Page” pages are applied by Writer one after another automatically, there are no problems. Then I manually insert few pages with “Landscape” style. And then I need to resume the sequence of portrait-oriented pages. And this is where I have a problem. I need to manually specify whether the sequence of portrait-oriented pages should be restored from the left page or from the right page. And this is boring and error-prone to count; instead, I would Writer to do this job for me. That is, to count the number of landscape pages and then restore the sequence of portrait-oriented pages from the correct page style (that is, from the left or from the right style, depending of the number of landscape pages).
Is there a macro for it? Or another workaround?
Actually, I think, there is no need to count the number of landscape pages at all. It is only required to check whether the page number is odd or even.