TransWikia.com

How to create a page reference to another separate document in ConTeXt?

TeX - LaTeX Asked on June 23, 2021

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.

One Answer

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

Answered by DG' on June 23, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP