ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: Robert Zydenbos <context@zydenbos.net>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: cross references to chapters in a book
Date: Sat, 23 Feb 2019 11:05:14 +0100	[thread overview]
Message-ID: <41a84ed7-01df-f3ea-4bcb-56b12c6680e6@gmail.com> (raw)
In-Reply-To: <1F5AD2C2-7868-4BE0-B9C8-3B9999C2E661@zydenbos.net>

Robert Zydenbos schrieb am 22.02.19 um 22:13:
> Still nicer would be the following, but I do not know whether this is technically possible –
>
> I have the following text:
>
> % start of example: in chapter 4, pp. 38, I have
> \subject [wild-stuff]{Wild stuff}
> Now comes a lot of weird stuff which I want to refer to later.
> …
> % end of stuff in one chapter
>
> % in another chapter:
> As we already saw in \in{chapter}[wild-stuff], on p.~\at[wild-stuff]
> % that was in the other chapter
> % end of example
>
> and the result would be: “As we already saw in chapter 4, on p.~38”…
>
> Can such a thing be done?

Can’t you just add a reference to the chapter title and refer to it 
instead of the the subject.

When you goal is to show the value of the chapter for the current 
subject you should switch to MkIV where this can be done (although we 
have to cheat to because we have to create numbered subject’s and hide 
the counter).

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2019-02-23 10:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-22 16:14 Robert Zydenbos
2019-02-22 19:47 ` Wolfgang Schuster
2019-02-22 20:08   ` Henning Hraban Ramm
2019-02-22 21:04   ` Robert Zydenbos
2019-02-22 21:13     ` Robert Zydenbos
2019-02-23 10:05       ` Wolfgang Schuster [this message]
2019-02-23  9:51     ` Wolfgang Schuster
2019-02-26  6:21       ` Pablo Rodriguez

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=41a84ed7-01df-f3ea-4bcb-56b12c6680e6@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=context@zydenbos.net \
    --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).