How to choose the right footnotes in CSS and HTML (for printing)

Is there a way to make the footnotes work correctly, that is, with the dynamic size of the note area and each page that has only footnotes for that page, when using @media print mode for CSS3 with (X) HTML? Or can you point me to a Javascript recipe to achieve something similar?

+4
source share
2 answers

There are several JavaScript libraries that do pagination (using CSS, of course):

I have not had time to look into them, but they can turn you on.

0
source

I found a solution to this problem, working in a completely different direction. Fortunately, I already created XHTML from XML with XSLT transformation. I wrote another conversion file that went (believe it or not) XeLaTeX; I wrote a Python script to apply the conversion, and then called it from a Bash build script (which had to use the tail to crack the first line, which is an XML declaration illegal in XeLaTeX), and then does two compilation passes to create the final PDF document with the correct broken to page footnotes

+1
source

All Articles