Alternative for selector in LMTX for different heading and reference texts for descriptions
![](https://secure.gravatar.com/avatar/13bc5842f0b785acdb8f02c38b78439d.jpg?s=120&d=mm&r=g)
Hi, In ConTeXt MKIV, there are selectors (\defineselector, \select). In ConTeXt LMTX, they are gone. In LMTX, how can I achieve the following without using selectors: (Different heading and reference texts for descriptions) \defineselector[sel][max=2, n=2] \definedescription[desc][headcommand={\setupselector[sel][n=1]}] \starttext \startdesc[title={\select{sel}{Long title}{Short}}, reference=desc] \input jojomayer \stopdesc \about[desc] \stoptext Any help is welcome! Cheers, Christoph
![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
On 12/19/2020 6:05 PM, Christoph Reller wrote:
Hi,
In ConTeXt MKIV, there are selectors (\defineselector, \select). In ConTeXt LMTX, they are gone.
In LMTX, how can I achieve the following without using selectors: (Different heading and reference texts for descriptions)
\defineselector[sel][max=2, n=2] \definedescription[desc][headcommand={\setupselector[sel][n=1]}] \starttext \startdesc[title={\select{sel}{Long title}{Short}}, reference=desc] \input jojomayer \stopdesc \about[desc] \stoptext
Hm, I'll check it.
Any help is welcome!
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.) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/13bc5842f0b785acdb8f02c38b78439d.jpg?s=120&d=mm&r=g)
Hans Hagen
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
![](https://secure.gravatar.com/avatar/13bc5842f0b785acdb8f02c38b78439d.jpg?s=120&d=mm&r=g)
On Sat, Dec 19, 2020 at 10:43 PM Christoph Reller < christoph.reller@gmail.com> wrote:
Hans Hagen
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". MWE: \definedescription[desc] \starttext \startdesc[title=Long title, reference=foo]%, referencetext=Short title] \input jojomayer \stopdesc \about[foo] \stoptext For backward compatibility, it might be better to use the title as a default for the reference test. Cheers, Christoph
![](https://secure.gravatar.com/avatar/13bc5842f0b785acdb8f02c38b78439d.jpg?s=120&d=mm&r=g)
On Tue, Dec 22, 2020 at 5:25 AM Christoph Reller
On Sat, Dec 19, 2020 at 10:43 PM Christoph Reller < christoph.reller@gmail.com> wrote:
Hans Hagen
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".
Thank you for the fast fix of this issue! Cheers, Christoph
participants (2)
-
Christoph Reller
-
Hans Hagen