[NTG-context] cross references to chapters in a book

Henning Hraban Ramm texml at fiee.net
Fri Feb 22 21:08:43 CET 2019


Am 2019-02-22 um 20:47 schrieb Wolfgang Schuster <wolfgang.schuster.lists at gmail.com>:

> 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 \startchapter:
> 
> \starttext
> 
> \startchapter[title={Knuth},reference={sec:knuth}]
> 
> \samplefile{knuth}
> 
> See \in{chapter}[sec:zapf] at \at{page}[sec:zapf].
> 
> \stopchapter
> 
> \startchapter[title={Zapf},reference={sec:zapf}]
> 
> \samplefile{zapf}
> 
> See \in{chapter}[sec:knuth] at \at{page}[sec:knuth].
> 
> \stopchapter
> 
> \stoptext
> 

Use \about[sec:knuth], if you need the title.

https://wiki.contextgarden.net/Command/about
https://wiki.contextgarden.net/Command/in
https://wiki.contextgarden.net/Command/at


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD


More information about the ntg-context mailing list