From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/110346 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Jairo A. del Rio" Newsgroups: gmane.comp.tex.context Subject: Re: [startstop] Date: Fri, 22 Jan 2021 17:43:55 -0500 Message-ID: References: <07317c3b-edad-6a51-facc-ce6e292d6b52@klankschap.nl> <4454192c-9443-e3cf-a529-4ddf5c1b2060@klankschap.nl> <71a661e1-cfef-fdee-97c6-fdc757d9f932@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5822303197189167998==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4024"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mailing list for ConTeXt users To: Wolfgang Schuster Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 22 23:44:28 2021 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 1l35AK-0000vl-3u for gctc-ntg-context-518@m.gmane-mx.org; Fri, 22 Jan 2021 23:44:28 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 630B81C17A6; Fri, 22 Jan 2021 23:44:10 +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 A9YfqciRFxxu; Fri, 22 Jan 2021 23:44:08 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D81921C18E4; Fri, 22 Jan 2021 23:44:08 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 83D231C17BE for ; Fri, 22 Jan 2021 23:44:08 +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 r8Ij7k3fpY2O for ; Fri, 22 Jan 2021 23:44:07 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.50; helo=mail-wr1-f50.google.com; envelope-from=jairoadelrio6@gmail.com; receiver= Original-Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (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 B743E1C17A6 for ; Fri, 22 Jan 2021 23:44:07 +0100 (CET) Original-Received: by mail-wr1-f50.google.com with SMTP id v15so6531416wrx.4 for ; Fri, 22 Jan 2021 14:44:07 -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=B/EwvuMfCKRdl6zdEulIhTHaJ1r2pvTUQee/3oBalxI=; b=rlHxTvqPTKF0XU8w2aOGQDIEDboeuDynncTl10cW/uGZ77K+aO/FZfhYGLl0xxstHG O65A4U9CQusrELMdp593+yK8jmeSl37VRwO3TuThCXkszC52Q6CIoV47SaizjvaxnyCT ZGMlK/dAOL1N3a5Jb71gMZwU9dPNzinzztz0S9JuYyGb2pz7OAH0+NfvlE5DIo8BeVz9 GYpC7ujNVGfGMtpqJBpin4sAprRqJuZ5wZPUwxzYymNtq7HThISDYpS7nFoX4Rs0/9id nThupS9N1Ha4pUSYYjp4WiopRkPk0h7nzdOQBjPX7zHegg987VaZVGvkKZwdPK8Bx9zx 4Uqg== 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=B/EwvuMfCKRdl6zdEulIhTHaJ1r2pvTUQee/3oBalxI=; b=JpMI8mRCI4CQ+kbREk2Y3pZfFywnG5NHuJQIjnWNpiFo8m2V21DzuW1/UJBtZYodK+ adphy1aRmRg4Y+zvBS83YpXenp5Ug4DI+qdaGxJM1tYgAr700uTL+MA0mbtQArZ/XJaN eNfHERzKScLq0DBH9FyXUsVwndJWWaA81e86HUvtT0Z30Pzvp2rC3Zn8+fp1FleyvSNB +wnD2z91nBHEQjrZZoIqNwXLMoMTTh7GKsjr7Zi8JerwpI7undkCS4zELtc7q0kaDgRO ifmnLsasPPWEWezCDHhqJtZ/uHR++qb6YQYQNg6oqv1DTxNCUGstuVYpT/fhg5VWpuFX glPA== X-Gm-Message-State: AOAM5302+4rPkgsL2VC9HS8vo3VuAeVoGCEpSooHOMLBqn6g6fHEoyYp f/YtRbWyuO1XEHh+75QjISxqT0z/WRdAgRCcIVsRRRcWmpc= X-Google-Smtp-Source: ABdhPJwL+j34AnaCdMpd+LvSuet6412ZOxtAUlofwepEoXy/ol4/pjhSMaIfnsjPsbfqbloIXeUOhDDAz9h4Tbdqoo4= X-Received: by 2002:adf:ba47:: with SMTP id t7mr6436353wrg.285.1611355447464; Fri, 22 Jan 2021 14:44:07 -0800 (PST) In-Reply-To: <71a661e1-cfef-fdee-97c6-fdc757d9f932@gmail.com> 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:110346 Archived-At: --===============5822303197189167998== Content-Type: multipart/alternative; boundary="0000000000000d966605b984edf2" --0000000000000d966605b984edf2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable El vie, 22 de ene. de 2021 a la(s) 17:39, Wolfgang Schuster ( wolfgang.schuster.lists@gmail.com) escribi=C3=B3: > Jairo A. del Rio schrieb am 22.01.2021 um 23:14: > > How strange. I guess you don't have your modules installed. In such a > > case, you could install them from modules.contextgarden.net > > and put content under texmf-modules > > so after mtxrun --generate and context --make examples work. > > The core function of the annotation module (custom environment > with key-val-arguments) is part of ConTeXt but it doesn't create > new environment commands. > > \defineuserdata > [zzz] > [alternative=3Dzzz, > after=3D{\blank[10mm]}] > > \defineuserdataalternative[zzz][renderingsetup=3Duserdata:zzz] > > \startsetups[userdata:zzz] > \hrule > \doifsomething{\userdataparameter{title}} > {\bold{\strut\userdataparameter{title}} > \blank} > \strut\getuserdata > \stopsetups > > \starttext > > \startuserdata[zzz] > \input weisman > \stopuserdata > > \startuserdata[zzz][title=3DWard] > \input ward > \stopuserdata > > \stoptext > > > > Another possibility is to use \do...empty and such, but it feels odd > > when a module for that is already available. > > No \do...empty (LMTX only): > > \tolerant\protected\def\startzzz#=3D% > {\hrule > \doifsomething{#1}{\bold{\strut#1}\blank}} > > \protected\def\stopzzz > {\blank[10mm]} > > \starttext > > \startzzz > \input weisman > \stopzzz > > \startzzz{Ward} > \input ward > \stopzzz > A nicer way to go, indeed. > \stoptext > > > Wolfgang > Jairo --0000000000000d966605b984edf2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
El vie, 22 de ene. de 2021 a la(s) 17= :39, Wolfgang Schuster (wolfgang.schuster.lists@gmail.com) escribi=C3=B3:
Jairo A. del Rio schrieb am 22.01.2= 021 um 23:14:
> How strange. I guess you don't have your modules installed. In suc= h a
> case, you could install them from modules.contextgarden.net=
> <http://modules.contextgarden.net> and put content un= der texmf-modules
> so after mtxrun --generate and context --make examples work.

The core function of the annotation module (custom environment
with key-val-arguments) is part of ConTeXt but it doesn't create
new environment commands.

\defineuserdata
=C2=A0 =C2=A0[zzz]
=C2=A0 =C2=A0[alternative=3Dzzz,
=C2=A0 =C2=A0 after=3D{\blank[10mm]}]

\defineuserdataalternative[zzz][renderingsetup=3Duserdata:zzz]

\startsetups[userdata:zzz]
=C2=A0 =C2=A0 =C2=A0\hrule
=C2=A0 =C2=A0 =C2=A0\doifsomething{\userdataparameter{title}}
=C2=A0 =C2=A0 =C2=A0 =C2=A0{\bold{\strut\userdataparameter{title}}
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \blank}
=C2=A0 =C2=A0 =C2=A0\strut\getuserdata
\stopsetups

\starttext

\startuserdata[zzz]
\input weisman
\stopuserdata

\startuserdata[zzz][title=3DWard]
\input ward
\stopuserdata

\stoptext


=C2=A0> Another possibility is to use \do...empty and such, but it feels= odd
=C2=A0> when a module for that is already available.

No \do...empty (LMTX only):

\tolerant\protected\def\startzzz#=3D%
=C2=A0 =C2=A0{\hrule
=C2=A0 =C2=A0 \doifsomething{#1}{\bold{\strut#1}\blank}}

\protected\def\stopzzz
=C2=A0 =C2=A0{\blank[10mm]}

\starttext

\startzzz
\input weisman
\stopzzz

\startzzz{Ward}
\input ward
\stopzzz

A nicer way to go, indeed.
= =C2=A0
\stoptext


Wolfgang


Jairo
--0000000000000d966605b984edf2-- --===============5822303197189167998== 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== --===============5822303197189167998==--