Wolfgang, thank you for your advice. Unfortunalty it does not work. 

I changed the COMPONENT file to:

% === comp_A1.tex ====
\startcomponent[comp A1]
  \project[proj_Test.tex]
  \product[prod_A.tex]

\startsection[title=comp_A1, reference=comp_A1]  

Reference to page comp_A1: \at[comp_A1] 

Reference to page comp_B1: \at[comp_B1] 

Reference to page refB::comp_B1: \at[refB::comp_B1] 

\stopsection

\stopcomponent
% ====================

I run Context with the PRODUCT file prod_A.tex .
The second reference is marked with ?? .
The third reference is invisible, nothing is shown.

After writing "\at[refB::]" in the PRODUCT file "prod_A.tex" the
second reference works as expected (even without the prefix), 
the third reference (with the prefix) is still invisible. 

The log file of the PRODUCT file prod_A.tex states:
job             > passes > integrating list 'prod_B.tuc' into 'prod_A'
 


Wolfgang Schuster wrote:
> Am 18.08.2025 um 13:49 schrieb M U via ntg-context:
> > I have some problems in cross-referencing in products of a project.
> > To say it quite frankly: I have no clue. I hope someone of you out there
> > has the solution.
> > The files beneath do not work. But uncommenting
> > \at[refB::] and
> > \at[refA::]
> > in the 2 product files ... and the references appear. But I guess
> > that is not the right way.
> > What is the proper way to achieve cross-referencing?
> > Use the prefix you set for the other document with \useexternaldocument 
> to access references from the other document, to get a reference from 
> the same document you don't need the prefix, i.e.
> 
> product a:
> 
> \at [comp_A1] % internal reference
> \at [refB::comp_B1] % external reference
> 
> Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
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