Forum How do I...?

Page selector combination

mooman
Hi everyone.

I am having a little issue. Here's what im trying to do:

I have 2 types of printouts that require different margins. So i am using named page selectors. something like this:

@page normal { ... }
div.normal { page: normal }

@page with_header { ... }
div.with_header { page: with_header }


But my div.normal or div.with_header could itself expand multiple pages, which also requires different margin from the first page. Normally, i would use @page:first to differentiate the first page from the rest. However, i need to combine this with my named page selector. Something like:

@page:first normal { ... }
@page normal { ... }


This doesn't seem to work for me. Please help! Am I doing something wrong? is there a better way to do it?

Thank you very much everyone!

OH.. im working with PrinceXML 5.1
jim_albright
You should consider upgrading. Version 7 is close to release now.

Jim Albright
Wycliffe Bible Translators

mikeday
The syntax for this would be:
@page normal:first { ... }

However, the interaction of :first and named pages has changed in recent versions of Prince. I would strongly recommend upgrading to Prince 6.0 first, before continuing to solve this issue.
mooman
Thank you guys for the replies. I may have to convince my organization to upgrade then.