On Tue, Nov 25, 2014 at 5:33 PM, Wolfgang Schuster wrote:

> > Am 24.11.2014 um 14:00 schrieb Christoph Reller <
> christoph.rel...@gmail.com>:
> >
> > Is it possible to change the text shown in \about[...] to be something
> else than the text given to the title key of \startsection?
> >
> > \starttext
> > \startsection[
> >   title={Very Long},
> > %  referencetext={Short}, % <- is there something like this?
> >   reference=mysec]
> >   We are now in \about[mysec]. % <- should render as "Short"
> > \stopsection
> > \stoptext
> >
> > Thank you for any help,
>
> You can use the selector mechanism to set multiple texts for the title.
>
> \defineselector[chaptertitle][max=2,n=2]
>
> \setuplist[chapter][textcommand={\setupselector[chaptertitle][n=1]}]
> \setuphead[chapter][textcommand={\setupselector[chaptertitle][n=1]}]
>
> \starttext
>
> \completecontent
>
> \startchapter[reference=sec:short,title=\select{chaptertitle}{Long title
> for the chapter}{Short title}]
>
> \input knuth
>
> \about[sec:short]
>
> \stopchapter
>
> \stoptext
>
> Wolfgang
>

Thank you Wolfgang! This is a perfect solution.
Christoph
___________________________________________________________________________________
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 via email to