Hi everyone,
I have recently migrated my PhD dissertation from LaTeX to ConTeXt. In LaTeX I was using kaobook, a template with lots of margin notes, but I was frustrated with the automatic placement of the notes.
I implemented a system using overlays that automatically places the notes using lua. To know where the ideal placement should be (if they do not interact with each other), I use lua to insert a latelua whatsit that uses lpdf.getpos() to get the coordinate on the rendered page. However, I haven't found a way to get the page number using lua, and the tex macro \pagenumber is unreliable near pagebreaks.
Furthermore, it would be helpful to know if there is a way to access the position and sizes of figures at the end. you have to provide some mwe so that we can see what is intended; in
On 5/21/2024 10:26 AM, Luc Chabassier wrote: principle much info is available one way or the other concerning notes in the margin ... did you try the built in magin text mechanisms? Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------