ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Daniel Haid <d.haid@gogi.tv>
To: ntg-context@ntg.nl
Subject: Re: Indenting number in TOC, particular numbering scheme, and other questions
Date: Wed, 4 Dec 2019 20:08:46 +0100	[thread overview]
Message-ID: <1e86c20a-6f24-382b-0367-22bf5e09d365@gogi.tv> (raw)
In-Reply-To: <1987020b-e03f-8a40-99aa-c3560a9e5333@gmail.com>

> \setupreferenceformat [chapter] [default] [prefixsegments=...]
> \setupreferenceformat [section] [default] [prefixsegments=...]

That seems to define the segmets when refering to a chapter or section,
but I need a dynamic way:

I want to go back to the last common ancestor,for example to refer to 
A.IV.3:

* from inside A.IV.4 it should just print 3,
* from inside A.V.1 it should print IV.3, and
* from inside B.I.1 it should print the full A.IV.3.
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2019-12-04 19:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-02  8:43 Daniel Haid
2019-12-03 15:24 ` Hans Hagen
2019-12-04 17:55   ` Daniel Haid
2019-12-04 18:02     ` Wolfgang Schuster
2019-12-04 19:08       ` Daniel Haid [this message]

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=1e86c20a-6f24-382b-0367-22bf5e09d365@gogi.tv \
    --to=d.haid@gogi.tv \
    --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).