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
I use weasyprint to generate my pdf file, I have had a problem at:
counter-reset: page; sets the 0 value to the page counter, used to get page numbers. So, if you use it in a selector that appears on a page, this page will be page number 0, and 0 will appear in the table of contents.
Moreover, the automatic page counter is created in the page context (not the page content context), and resetting it in the content will create a new counter called page, independent from the page counter automatically created in page context. If you want to override the value of the page counter instead of creating another one, you really should do this in the page context, ie. in an @page rule. Otherwise, the page counter you created in content will always be 0 on all pages, as it’s not automatically incremented, contrary to the page counter in the page context.
Short answer: the "bug" is in the stylesheet as far as I can tell. 😄
so, how can I solve it?
If you don’t want to / can’t change the original stylesheet, you can set counter-reset: none; with the same selector after importing the original stylesheet.
I use weasyprint to generate my pdf file, I have had a problem at:
docbook/xslTNG#433
so, how can I solve it?
The text was updated successfully, but these errors were encountered: