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?

==========
MWE
==========

The following files are in the same directory:

proj_Test.tex
prod_A.tex
prod_B.tex
comp_A1.tex
comp_B1.tex

The files have the folling content

% === proj_Test.tex ===
\startproject[project Test]

  \product[prod_A.tex]
  \product[prod_B.tex]

\stopproject
% ====================

% === prod_A.tex =====
\startproduct[product A]

  \useexternaldocument[refB][prod_B]  
    % \at[refB::] % <-- UNCOMMENT
    
  \project[proj_Test.tex]

    \component[comp_A1.tex]   

\stopproduct
% ====================

% === prod_B.tex =====
\startproduct[product B]
  \project[proj_Test.tex]
  
  \useexternaldocument[refA][prod_A]  
  % \at[refA::] % <-- UNCOMMENT

    \component[comp_B1.tex]   

\stopproduct
% ====================

% === 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_B1: \at[comp_B1] 

\stopsection

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

% === comp_B1.tex ====
\startcomponent[comp B1]
  \project[proj_Test.tex]
  \product[prod_B.tex]

\startsection[title=comp_B1, reference=comp_B1]  

Reference to page comp_A1: \at[comp_A1] 

\stopsection

\stopcomponent
% ====================
___________________________________________________________________________________
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