From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/110006 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christoph Reller Newsgroups: gmane.comp.tex.context Subject: Re: Alternative for selector in LMTX for different heading and reference texts for descriptions Date: Tue, 22 Dec 2020 05:25:42 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0571910126205155965==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40608"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 22 05:26:23 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1krZFf-000ATw-LH for gctc-ntg-context-518@m.gmane-mx.org; Tue, 22 Dec 2020 05:26:23 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 249C21C1558; Tue, 22 Dec 2020 05:26:02 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zGtBYBnCi8qF; Tue, 22 Dec 2020 05:26:01 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 427E31C1574; Tue, 22 Dec 2020 05:26:01 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 060BD1C1574 for ; Tue, 22 Dec 2020 05:26:00 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VTWQy7GPbRRm for ; Tue, 22 Dec 2020 05:25:59 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.167.51; helo=mail-lf1-f51.google.com; envelope-from=christoph.reller@gmail.com; receiver= Original-Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 5A6421C1558 for ; Tue, 22 Dec 2020 05:25:59 +0100 (CET) Original-Received: by mail-lf1-f51.google.com with SMTP id h22so19359726lfu.2 for ; Mon, 21 Dec 2020 20:25:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=H5fknyvo1R0I72py7uSmYHOf+eJEFbgiBPFu4rWKB40=; b=JPHjJEChx6JrT6LAonR8Eq+2xtQAglzOJ6fXJyjqqGdreW0mrxNKtKhWN3OcpyywaH fWTwAZFLYgseLHiDs6dw7bPeMdJuLfUB+p9kQba/iAhckT5f24AYqeer29PepzjJjtVV CYLrgR6a3xAMShfD2460w/V5Y4Xd15YDIooRxiWz2NFOCZePo6RdV61jGgO4OMSWCePx FYxy86ItpmeqfDagq6IjSPJAGYv5tT+H3YenGJLHjS09BgD9nIQlf7nyEI4+fEzH1mP6 XP0QMUpMLqVZKV5AD9c/ryXERDt7jRgSIkwOHWs+WDToNySFD+Ovp1d2vRdd35Vyvvi4 MBMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=H5fknyvo1R0I72py7uSmYHOf+eJEFbgiBPFu4rWKB40=; b=d7gOXUhrho4DQxFY+o570h87+7620DbcQnDl9KjiGYL8dI/gjEOvh2odiNmmA5e+HP eR7blB5Ba8WK5RPNB1e3X7E9HQoapJiZZfXTdagUklIS9HLKB+QkUr+S2xtfQxus2G94 i4/YVIrW+2hUcG1nyDnhH98Xmpen8UryZVaFLIcGimlggMQx9dQTgpXBpkUhhBOTrnFW YWbGTD9n2tDd9YFFW4ZvSPeTkgsOT269PLeGGPvuxBjPMp+yPDjs9OCfY3+woB/uySVR ZO5t3v461lJpSsLhHmN1O5VTbKy9oAjn+/Pj/aZg5nmQnt51f8p7iePISiPQYvaWtCLN Tf9Q== X-Gm-Message-State: AOAM533lkP+Cp0w0Q2DEBdq5LV9XHH9FRZRtIb3O4KsGy/5e/wge+fNN WV2SxHf65WYe3/mvoGbLa0jRNT4p9UWe8dNeVOg= X-Google-Smtp-Source: ABdhPJyMfwmx0Fr0Y/JaVhk70BUbkOrWSO7aB/1Z6fKbbFhcptko/Bg+xh9CVSh0kUDlxQspT+hVK5Do7ckjpV89C7o= X-Received: by 2002:a19:f203:: with SMTP id q3mr7806895lfh.166.1608611158537; Mon, 21 Dec 2020 20:25:58 -0800 (PST) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:110006 Archived-At: --===============0571910126205155965== Content-Type: multipart/alternative; boundary="000000000000afb80605b705f86b" --000000000000afb80605b705f86b Content-Type: text/plain; charset="UTF-8" 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 --000000000000afb80605b705f86b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sat, Dec 19, 2020 at 10:43 PM Christop= h Reller <christoph.reller= @gmail.com> wrote:
Hans Hagen <j.hagen@xs4all.nl> schr= ieb am Sa., 19. Dez. 2020, 19:16:
Actually, what you want is:

\definedescription[desc]
\starttext
=C2=A0 =C2=A0 =C2=A0\startdesc[ti= tle=3D{Long title},reference=3Dfoo,referencetext=3D{Short Title}]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\input jojomayer
=C2=A0 =C2=A0 =C2=A0\stopdesc
=C2=A0 =C2=A0 =C2=A0\about[foo]
\stopte= xt

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 soluti= on for me.
Thanks,
Christoph<= /div>

Thank you for the implementatio= n, Hans!

=C2=A0A small issue: When omitting the re= ferencetext, then the shown text is now something like "248>desc:re= ferencetext".

MWE:
\definedescripti= on[desc]
\starttext
\startdesc[title=3DLong title, reference=3Dfoo]%,= referencetext=3DShort title]
=C2=A0 \input jojomayer
\stopdesc
\a= bout[foo]
\stoptext

For backward compatibil= ity, it might be better to use the title as a default for the reference tes= t.

Cheers,
Christoph
--000000000000afb80605b705f86b-- --===============0571910126205155965== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============0571910126205155965==--