pyx-project / pyx

Repository of PyX, a Python package for the creation of PostScript, PDF, and SVG files.
https://pyx-project.org/
GNU General Public License v2.0
109 stars 18 forks source link

Can PyX implement marks? #54

Closed user202729 closed 4 months ago

user202729 commented 4 months ago

In LaTeX, there is a feature savepos in zref that allows saving the absolute location of something on a page (needs another compilation pass).

Which allows implementing something like How can I make arrow from parts of a formula in Asymptote? (or: measure the width of a label, get anchor around a label) - TeX - LaTeX Stack Exchange .

Would the same thing be possible in PyX? (I think it should be possible by using the engine primitives and write to file etc. or just write to stdout and make PyX parse the output somehow)

wobsta commented 4 months ago

Are you aware of https://pyx-project.org/examples/text/marker.html

user202729 commented 4 months ago

Ah, cool.