Hello Hans, Le 2 mars 2012 à 20:59, Hans Hagen a écrit :
On 25-2-2012 17:47, Jean-Philippe Rey wrote:
Hello everybody,
I'm trying to use external cross-references between two files but I can't make it work with MkIV. I am using ConTeXt current
ConTeXt ver: 2011.05.18 18:04 MKIV fmt: 2011.7.31 int: english/english
With MkII, the following minimal example works perfectly well :
% file test_crossref1 \starttext \chapter[lorem]{Lorem} Lorem ipsum dolor sit amet, consectetur adipiscing elit \in{Chapter}[lorem]. \stoptext
% file test_crossref2 \usereferences[test_crossref1] \starttext Lorem ipsum dolor sit amet, consectetur adipiscing elit \in{Chapter}[lorem]. \stoptext
\useexternaldocument[xref][test_crossref1]
\starttext Lorem ipsum dolor sit amet, consectetur adipiscing elit \in{Chapter}[xref::lorem]. \stoptext
Thank you for your answer, but it doesn't work. I still get an undefined reference and the following lines in the log file references > references from document 'test_crossref1' are not exported references > unknown reference [][xref::lorem] -- Jean-Philippe Rey Professeur - École Centrale Paris jean-philippe.rey@ecp.fr 92295 Châtenay-Malabry Cedex - France