I am prince-ing a book with parts and chapters; trying to get the part titles as the headers on the
left hand pages and the chapter titles on the right hand pages.
The chapter heads work, but the part headers only show up through the first chapter of each part; then they disappear.
I am using the following code:
h1[title] {string-set: pheader attr(title) }
h2[title] {string-set: cheader attr(title) }
@page maintext :left {
@top-left {
content: counter(page);
}
@top-right {
content: string(pheader, first);
}
}
@page maintext :right {
@top-left {
content: string(cheader, first);
}
@top-right {
content: counter(page);
}
}
(Tried last and start instead of first; didn't make a difference.)
Any suggestions on how to make this work?
Thanks
left hand pages and the chapter titles on the right hand pages.
The chapter heads work, but the part headers only show up through the first chapter of each part; then they disappear.
I am using the following code:
h1[title] {string-set: pheader attr(title) }
h2[title] {string-set: cheader attr(title) }
@page maintext :left {
@top-left {
content: counter(page);
}
@top-right {
content: string(pheader, first);
}
}
@page maintext :right {
@top-left {
content: string(cheader, first);
}
@top-right {
content: counter(page);
}
}
(Tried last and start instead of first; didn't make a difference.)
Any suggestions on how to make this work?
Thanks