ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "talazem@fastmail.fm" <talazem@fastmail.fm>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: cross-references between documents in a project (using \useexternaldocument)
Date: Wed, 5 Aug 2015 13:15:20 +0100	[thread overview]
Message-ID: <2ABE61EB-256E-40A2-AF97-0FBC4281B164@fastmail.fm> (raw)

Dear all,

I am trying to create cross references between two documents in my project. Links between the two are successfully made, but the actual page numbers are not being printed (which, for my purposes, are what I actually need, not links). Am I doing something wrong, or is this a known bug (such that I should cease my attempts)? Is \useexternaldocument the wrong command for this purpose? Minimum example files below:

% project
\project project_xref
\startproduct prd_xref
\component xref1
\component xref2
\stopproduct

% product
\startproject project_xref
\environment env_xref
\product prd_xref
\stopproject

% environment
\startenvironment env_xref
\setupinteraction
  [state=start,
   style=,
   color=blue,
   contrastcolor=,
   menu=on,
   title=Cross referencing Test File,
   author=Gerard Verhaag]
\stopenvironment

% component1 [xref1]
\project project_xref
\startcomponent xref1
\starttext
\chapter[cross]{Cross referencing}
\chapter[lorem]{Lorem}
Lorem ipsum dolor sit amet, consectetur adipiscing elit \in{Chapter}[lorem].
\stoptext
\stopcomponent

% component2 [xref2]
\project project_xref
\startcomponent xref2
\useexternaldocument[xrf][xref1]
\starttext
Lorem ipsum dolor sit amet, consectetur adipiscing elit \in{Chapter}[xrf::lorem].
\stoptext
\stopcomponent

All the best,
Talal
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2015-08-05 12:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-05 12:15 talazem [this message]
2015-08-06 17:00 ` talazem
2015-08-10 20:33   ` Wolfgang Schuster
2015-08-11  9:00     ` talazem
2015-08-11  9:48       ` Hans Hagen
2015-08-11  9:59         ` talazem
2015-09-08 19:04         ` Wolfgang Schuster
2015-09-08 23:43           ` Hans Hagen
2015-09-09  9:50             ` Jens Bertram
2015-09-09 11:51             ` Wolfgang Schuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2ABE61EB-256E-40A2-AF97-0FBC4281B164@fastmail.fm \
    --to=talazem@fastmail.fm \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).