From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: relative references?
Date: Thu, 4 Jul 2013 12:07:04 +0200 [thread overview]
Message-ID: <3751C849-4DD4-4060-BC3E-FDE7CE22BF5A@gmail.com> (raw)
In-Reply-To: <9DDE18A1-FD0B-4D9D-A8A0-2504F5DE1A2C@kram.io>
Am 02.07.2013 um 17:30 schrieb Steffen Kram <sk@kram.io>:
> Hello,
>
> is it possible to reference parts of a document in a "relative" style?
>
> My structure is as follows:
>
> \startproduct
> …
> \startbodymatter
> \component chapterFoo/main
> \component chapterBar/main
> \stopbodymatter
> …
> \stopproduct
>
> Each of my chapters uses \chapter, \section … \subsubsubsection markers. I would like to use references for each of them.
>
>
> Is it possible to reference for example the subsection "Foo AA" from the chapter start with an relative reference such as
>
> \chapter[sec:foo]{Foo}
>
> \in[fooA:fooAA]
>
> \section[fooA]{Foo A}
>
> \subsection[fooAA]{Foo AA}
>
>
> but when referencing it from the second chapter use a absolute reference:
>
> \chapter[sec:bar]{Bar}
>
> \in[sec:foo:fooA:fooAA] …
>
> Is this possible? Or must I use absolute references and identifiers everywhere?
Take a look at page 149ff at the context manual [1] where this is described.
[1] http://www.pragma-ade.nl/show-man-9.htm
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2013-07-04 10:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-02 15:30 Steffen Kram
2013-07-04 10:07 ` Wolfgang Schuster [this message]
2013-07-07 14:13 ` Steffen Kram
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=3751C849-4DD4-4060-BC3E-FDE7CE22BF5A@gmail.com \
--to=schuster.wolfgang@gmail.com \
--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).