Hi,
I want a generic rule for left and right pages, example:
This works fine. Titles appear as desired.
Now I need to exclude the the title on any page that matches the following selection criteria:
With the above snippet "title" and "section-title" correcty get removed from the selected pages.
But, the first <p> directly after <h2> (or <h1>) gets pushed to the next page; this is undesired.
Any ideas?
I want a generic rule for left and right pages, example:
@page :left {
@top-left {
content: string(title);
vertical-align: left;
font-size: 9pt;
}
}
@page :right {
@top-right {
content: string(section-title, last);
vertical-align: right;
margin: 0.8em 0;
font-size: 9pt;
}
}
This works fine. Titles appear as desired.
Now I need to exclude the the title on any page that matches the following selection criteria:
@page exception {
@top-left {
content: none;
}
@top-right {
content: none;
}
}
div.front-matter > h2:first-child, div.part > h1:first-child, div.chapter > h2:first-child, div.back-matter > h2:first-child {
page: exception;
}
With the above snippet "title" and "section-title" correcty get removed from the selected pages.
But, the first <p> directly after <h2> (or <h1>) gets pushed to the next page; this is undesired.
Any ideas?