![](https://secure.gravatar.com/avatar/756ba0421967549d70feb9b3ca323070.jpg?s=120&d=mm&r=g)
4 Dec
2019
4 Dec
'19
12:08 p.m.
\setupreferenceformat [chapter] [default] [prefixsegments=...] \setupreferenceformat [section] [default] [prefixsegments=...]
That seems to define the segmets when refering to a chapter or section, but I need a dynamic way: I want to go back to the last common ancestor,for example to refer to A.IV.3: * from inside A.IV.4 it should just print 3, * from inside A.V.1 it should print IV.3, and * from inside B.I.1 it should print the full A.IV.3.