The latest build supports multipass layout through JavaScript. This is very powerful: you can write a script to analyze the layout generated in a first pass, make changes, and rerun the layout process.
In a small two-column demo document, sidenotes that naturally appear in the first column are shown on the left side. And sidenotes in the second column are shown on the right side. This is done by adding a class name to elements based on which column they naturally appear in ("col1", "col2").
Also, the script adds class names based on which page an element appears on ("odd", "even", "page3").
https://css4.pub/2020/sidenotes/index.pdf
https://css4.pub/2020/sidenotes/index.html
The script uses the new multipass feature which has recently been added. Therefore, you will need the latest Prince build to test:
https://www.princexml.com/latest/
To make sure you run the correct version, run:
To format the the test document yourself, run:
In a small two-column demo document, sidenotes that naturally appear in the first column are shown on the left side. And sidenotes in the second column are shown on the right side. This is done by adding a class name to elements based on which column they naturally appear in ("col1", "col2").
Also, the script adds class names based on which page an element appears on ("odd", "even", "page3").
https://css4.pub/2020/sidenotes/index.pdf
https://css4.pub/2020/sidenotes/index.html
The script uses the new multipass feature which has recently been added. Therefore, you will need the latest Prince build to test:
https://www.princexml.com/latest/
To make sure you run the correct version, run:
prince --version
To format the the test document yourself, run:
prince --javascript https://css4.pub/2020/sidenotes/index.html -o sidenotes.pdf
Edited by howcome