Am 30.12.2025 um 11:36 schrieb Jan Ulrich Hasecke via ntg-context:
Dear all,

between the days, as we say in Germany, I setup a proof of concept for a repository with documents that reference each other.

I followed the Wiki:
https://wiki.contextgarden.net/References_notes_and_floats/References

I had no problems when all master files were in the same toplevel folder:

master-1.tex
master-2.tex
components-for-1/
components-for-2/

I also tried to include files from other folders outside the hierarchy of the main folder with \useexternaldocument, but that does not work.

While \from gave the intended result, \at, \about, \in and \page does not.

While I did not expect this to work at all, as relative paths and absolute paths may break when you deliver the final pdfs via a web service or put them in an other folder somewhere else I wonder why \from works and the others not.

Is it correct that the best and robust way to make a group of documents that reference each other is to put them in the same folder?


To access references from another document context only needs the tuc-file to get the labels, sections numbers etc.

You can also have the document and tuc files in different folders and put the path to the tuc file in the second argument of \useexternaldocument.

Assume two document are in the subfolders 1 and 2 of a main folder you can use the following settings to refer to the other document:

./1/master-1.tex
./2/master-2.tex

master-1.tex:
\useexternaldocument [...] [../2/master-2]

master-2.tex:
\useexternaldocument [...] [../1/master-1]

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to