XimeraProject / ximeraLatex

Author tools for creating Ximera activities
LaTeX Project Public License v1.3c
40 stars 36 forks source link

Clever Ref, a possible implementation #98

Open bartsnapp opened 2 years ago

bartsnapp commented 2 years ago

Clever Ref seems difficult, and there are two main issues:

1) How does the individual file display a correct name (eg Section, Theorem, etc), if label is in other files?

2) How does the individual file display a correct number (eg Section 2), if label is in other files?

3) How does the file know the URL to the reference?

Maybe...

One could compile the entire document, and during this compiling, filename.cref will contain out the necessary info. Then we can call this from each individual file.

If we knew the directory path, we could make a relative URL that should link to the relevant section