slatex / sTeX

A semantic Extension of TeX/LaTeX
49 stars 9 forks source link

\sref does not work for sfragment in stex-manual.tex (stex-notesslides.tex) #328

Closed kohlhase closed 2 years ago

kohlhase commented 2 years ago

In doc/packages/stex-notesslides.tex, we have

    mode and notes mode (see \sref{sec:user:notesslides}).

and later

\begin{sfragment}[id=sec:user:notesslides]{Notes and Slides}

and the former formats to (see ).

Jazzpirate commented 2 years ago

Ok, this definitely needs design. The reason why it doesn't work out-of-the-box is because the link-target is in a different file. The reimplementation of sref is already built on the idea of document URIs - in particular an id=foo ultimately generates an identifier <document-namespace>?foo. But little support currently exists to conveniently reference these URIs, and I suspect their implementation is questionable anyway.

kohlhase commented 2 years ago

actually, id= and \sref are in the same file and only about 20 lines apart.

Jazzpirate commented 2 years ago

...Ok, in that case I can't explain why it does work in the places that it works in :D

Jazzpirate commented 2 years ago

subsumed by a different issue