You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When formatting books for printing, we need to be able to use different margin box content on the first page of each chapter. (In my case, specifically, empty margin boxes to suppress the page numbers and titles which are shown on other pages.)
Prince supports this via the :first pseudo-class on named pages (eg @page chapter:first), however WeasyPrint does not support this and I believe in this respect Prince is in fact not compliant with the spec, since :first is (sadly) only intended to match on the first page of a document, not on the first page of a group of named pages.
The spec-compliant way to achieve this seems to be with CSS-GCPM’s ‘page groups’, eg @page:nth(1 of chapter).
It would be great to see support for this in WeasyPrint!
The text was updated successfully, but these errors were encountered:
Unfortunately I can't dedicate any time to working on this myself at the moment (and #844 and #640 are also blockers for my use-case at the moment and seem much harder to fix). But I thought it would be good to have it in the issue tracker.
By the way WeasyPrint has come a long way since I last looked at it a couple of years ago, awesome work!
When formatting books for printing, we need to be able to use different margin box content on the first page of each chapter. (In my case, specifically, empty margin boxes to suppress the page numbers and titles which are shown on other pages.)
Prince supports this via the
:first
pseudo-class on named pages (eg@page chapter:first
), however WeasyPrint does not support this and I believe in this respect Prince is in fact not compliant with the spec, since:first
is (sadly) only intended to match on the first page of a document, not on the first page of a group of named pages.The spec-compliant way to achieve this seems to be with CSS-GCPM’s ‘page groups’, eg
@page:nth(1 of chapter)
.It would be great to see support for this in WeasyPrint!
The text was updated successfully, but these errors were encountered: