In a standard textbook, there is several chapters and each chapter has several exercises, if you are writing in LaTeX or texinfo, how are these exercises referenced in body text?
What I see always depends on giving a unique name to each exercise:
like this texinfo format of SICP: https://raw.githubusercontent.com/sarabander/sicp/master/sicp-pocket.texi
Each exercise has a numbered name, like
1.1.1 but it will be a lot of trouble if you want to for example add a new chapter between chapter 2 and 3...
or like this for the Stacks project:
each exercise is given a globally unique name.
Consider how binding is done in programming languages, we can image a document format that handles bindings more elegantly. This will enable more "refactoring" of the document
chapter(title = "Basic things you need to know", body = " Body text, body text @exercises(0) ", exercises = [ ])
So my question is, due to my limited knowledge of LaTeX and other tools, is relative referencing possible in any tool you knows? Like LaTeX? MS Word?