ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Christoph Reller <christoph.reller@gmail.com>
To: ntg-context <ntg-context@ntg.nl>
Subject: Automatic reference prefixing in heads with prefix=+
Date: Sat, 27 Sep 2014 12:00:29 +0200	[thread overview]
Message-ID: <CAO8LnPH2rhe0hR3g8fgQ3ho5yGEn5iTJtGRcqtMxE=jeQKmK8A@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 836 bytes --]

Hi,

Various documents mention a namespace feature for references by setting
prefix=+. This is a really cool feature but I cannot get it to work. Why
does the following example not work:

\setupinteraction[state=start]
\setuphead[chapter][prefix=+]

\starttext

\startchapter[reference=chap1,title={First Chapter}]
  \startsection[reference=sec1,title={First Section in First Chapter}]
    Reference \type{sec1} is \about[sec1].\par
    Reference \type{chap2:sec1} is \about[chap2:sec1].\par
  \stopsection
\stopchapter

\startchapter[reference=chap2,title={Second Chapter}]
  \startsection[reference=sec1,title={First Section in Second Chapter}]
    Reference \type{sec1} is \about[sec1].\par
    Reference \type{chap1:sec1} is \about[chap1:sec1].\par
  \stopsection
\stopchapter

\stoptext

Any help is appreciated.

Christoph Reller

[-- Attachment #1.2: Type: text/html, Size: 1183 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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:[~2014-09-27 10:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-27 10:00 Christoph Reller [this message]
2014-09-30  6:08 Christoph Reller

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='CAO8LnPH2rhe0hR3g8fgQ3ho5yGEn5iTJtGRcqtMxE=jeQKmK8A@mail.gmail.com' \
    --to=christoph.reller@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).