3

My question is similar to this, but for ConTeXt.

I have multiple documents, that are to be bundled as a set (e.g. textbook, workbook, teachers' guide). I frequently need to make a cross-reference to another item, e.g. the workbook might say "Refer to Article 3 on p. 1 of the textbook."

Is there a way to make such cross-references? s Hyperlinking is not needed.

0
5

You can do that with \useexternaldocument as described in the wiki:

% textbook.tex

\starttext

\startchapter[title=Knuth,reference=knuth]
  \input knuth
\stopchapter

\stoptext

enter image description here

% workbook.tex

\setupinteraction
  [state=start]

\useexternaldocument
  [tb][textbook][Textbook]

\setupinteraction
  [state=start,
   color=darkgreen]

\starttext

See Knuth on \at{page}[tb::knuth] of the \from[tb].

\stoptext

enter image description here

2
  • 2
    You can refer to the other document without \useexternaldocument when you put the name of the other document before :: in the reference (i.e. \at{page}[textbook::knuth]. Setting a different name for the document with \useexternaldocument is still recommended. Jun 3 at 7:12
  • Thanks! That’s good to know
    – DG'
    Jun 3 at 12:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.