ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* global cross file refs
@ 2000-10-10 16:36 Hans Hagen
       [not found] ` <39E37B3A.1AFF9E2F@pobox.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2000-10-10 16:36 UTC (permalink / raw)


Hi, 

As you may know, cross file refs can be resolved in two ways: 

\usereferences[somefile]

\useexternaldocument[somefile]

where in the first case no cross file refs are possible but only the labels
etc show up, while in the second case (the official one) the refs are
accessible as \in {...} [somefile::ref] and result on cross file hyperlinks. 

the next release will have an option \setupreferencing[global=yes] which
permits you to omit the somefile:: prefix, but of course at the cost of
conflicting refs in multiple loaded files. Nevertheless, sometimes this
feature canbe handy.  

Hans
-------------------------------------------------------------------------
                                                  Hans Hagen | PRAGMA ADE
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: global cross file refs
       [not found] ` <39E37B3A.1AFF9E2F@pobox.com>
@ 2000-10-11  8:38   ` Hans Hagen
  2000-10-12 12:49     ` Berend de Boer
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2000-10-11  8:38 UTC (permalink / raw)
  Cc: ntg-context

At 10:25 PM 10/10/00 +0200, Berend de Boer wrote:
>Hans Hagen wrote:
>
>> the next release will have an option \setupreferencing[global=yes] which
>> permits you to omit the somefile:: prefix, but of course at the cost of
>> conflicting refs in multiple loaded files. Nevertheless, sometimes this
>> feature canbe handy.
>
>I've used \useexternaldocument heavily, so this is handy.
>
>Is it possible to limit what is global? I.e. I seldom need figures or
>chapters, but often I refer to class definitions, or data models. So a
>kind of selective global, perhaps based on prefix or something like
>that.

Local and prefixed things have a higher priority anyway. I will implement a
more advanced prefix mechanism [nested] some day soon, since in etex the
penalty is not that high as in normal tex. Btw, if you say
\setuphead[chapter][prefix=+] you get auto prefixing, and when you say
\chapter[someref]{...} the someref becomes the prefix, which can safe you
some troubles. 

Hans 
-------------------------------------------------------------------------
                                                  Hans Hagen | PRAGMA ADE
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: global cross file refs
  2000-10-11  8:38   ` Hans Hagen
@ 2000-10-12 12:49     ` Berend de Boer
  0 siblings, 0 replies; 3+ messages in thread
From: Berend de Boer @ 2000-10-12 12:49 UTC (permalink / raw)
  Cc: ntg-context

Hans Hagen wrote:

> >Is it possible to limit what is global? I.e. I seldom need figures or
> >chapters, but often I refer to class definitions, or data models. So a
> >kind of selective global, perhaps based on prefix or something like
> >that.
> 
> Local and prefixed things have a higher priority anyway. 

That's good enough.

Groetjes,

Berend. (-:


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-10-12 12:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-10 16:36 global cross file refs Hans Hagen
     [not found] ` <39E37B3A.1AFF9E2F@pobox.com>
2000-10-11  8:38   ` Hans Hagen
2000-10-12 12:49     ` Berend de Boer

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).