From: Robert Zydenbos <context@zydenbos.net>
To: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: cross references to chapters in a book
Date: Fri, 22 Feb 2019 22:04:23 +0100 [thread overview]
Message-ID: <E80233A7-A6F8-4257-8A32-62AC383B3C88@zydenbos.net> (raw)
In-Reply-To: <22ff978e-6710-c8c1-fab3-363c4f162c1b@gmail.com>
Hmm… although I got your example to work after some tweaking (changing \samplefile to {input and placing knuth.tex and zapf.tex in the same folder as the test file), I could not reproduce this with my book. I want to get "chapter 4" but keep getting "chapter 4.0".
Is this because I am using MkII with XeTeX?
Robert
> On 22. Feb 2019, at 20:47, Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> wrote:
>
> Robert Zydenbos schrieb am 22.02.19 um 17:14:
>> Dear wizards of ConTeXt,
>> In the final stage of completing a book project, I was wondering how to automatize cross references to chapters. I’ve already figured out how to refer to pages (using “\at[REFERENCE]”), but how is this done with chapters? I’m apparently too simple-minded to understand the manual (and I don’t understand the differences between \reference, \textreference, \in, \about).
>
> When you use \chapter:
>
> \starttext
>
> \chapter[sec:knuth]{Knuth}
>
> \samplefile{knuth}
>
> See \in{chapter}[sec:zapf] at \at{page}[sec:zapf].
>
> \chapter[sec:zapf]{Zapf}
>
> \samplefile{zapf}
>
> See \in{chapter}[sec:knuth] at \at{page}[sec:knuth].
>
> \stoptext
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2019-02-22 21:04 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 [this message]
2019-02-22 21:13 ` Robert Zydenbos
2019-02-23 10:05 ` Wolfgang Schuster
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=E80233A7-A6F8-4257-8A32-62AC383B3C88@zydenbos.net \
--to=context@zydenbos.net \
--cc=ntg-context@ntg.nl \
--cc=wolfgang.schuster.lists@gmail.com \
/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).