[NTG-context] Alternative for selector in LMTX for different heading and reference texts for descriptions

Christoph Reller christoph.reller at gmail.com
Tue Dec 22 05:25:42 CET 2020

On Sat, Dec 19, 2020 at 10:43 PM Christoph Reller <
christoph.reller at gmail.com> wrote:

> Hans Hagen <j.hagen at xs4all.nl> schrieb am Sa., 19. Dez. 2020, 19:16:
>> Actually, what you want is:
>> \definedescription[desc]
>> \starttext
>>      \startdesc[title={Long title},reference=foo,referencetext={Short
>> Title}]
>>          \input jojomayer
>>      \stopdesc
>>      \about[foo]
>> \stoptext
>> So I'll add that (after all, occasionally we need to add some
>> functionality in order to indicate progress.)
> Great! That would be a good solution for me.
> Thanks,
> Christoph

Thank you for the implementation, Hans!

 A small issue: When omitting the referencetext, then the shown text is now
something like "248>desc:referencetext".

\startdesc[title=Long title, reference=foo]%, referencetext=Short title]
  \input jojomayer

For backward compatibility, it might be better to use the title as a
default for the reference test.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20201222/e7f80c09/attachment.htm>

More information about the ntg-context mailing list