From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/110340 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 14:04:02 -0500 Message-ID: References: <07317c3b-edad-6a51-facc-ce6e292d6b52@klankschap.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3409527071599122986==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14689"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 22 20:04:37 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 1l31jY-0003go-P8 for gctc-ntg-context-518@m.gmane-mx.org; Fri, 22 Jan 2021 20:04:36 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B89911C1C67; Fri, 22 Jan 2021 20:04:16 +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 Uu1yZBG77X8p; Fri, 22 Jan 2021 20:04:15 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D1B281C1C6E; Fri, 22 Jan 2021 20:04:15 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 813001C1C6B for ; Fri, 22 Jan 2021 20:04:15 +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 nKkML4mIwjiT for ; Fri, 22 Jan 2021 20:04:14 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.49; helo=mail-wr1-f49.google.com; envelope-from=jairoadelrio6@gmail.com; receiver= Original-Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (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 9721D1C1C67 for ; Fri, 22 Jan 2021 20:04:14 +0100 (CET) Original-Received: by mail-wr1-f49.google.com with SMTP id b5so6064703wrr.10 for ; Fri, 22 Jan 2021 11:04:14 -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; bh=R9dh1qXyHv2oKxju+wW9J+hhzXIvTjniYyK9/kRym1w=; b=ZNIiGfWef+pgfFEZyKmF4Xxphvna14MO1V+YcMFUqJmquS/+U7eoX6+OvMamanpcoy obD0zpeXSwUJEkfEuPHJT1okjAiCP2c3falK/UOm1JhH+VSt5P7VM0ILvtwsU7ynnyrd CpNJTOlX3vfxSWFI8hiyuLH+wI/uVBjQr2M63KjVRM8VZkCV050QpoLZpe4iko5hjzwM 6YsLJSO3F/7lrOvtXD3mDYAauftsj35nFvjEUuGnQK5RJndT+8Td9yogSkmlVuZ/+NSf k1CLHjVo0hZGPOHLDOCZiNJsQtjG1w4MfaWlfgqV6zrYv0R3lQCKYruLo0rkBEBWSTrY GbhQ== 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; bh=R9dh1qXyHv2oKxju+wW9J+hhzXIvTjniYyK9/kRym1w=; b=gGdKM1lz+alibHu7G2w1KqcGv2yItpzF+zP7Q+ZAB9mLa4EuKGDyji/FGBvmmpmY4k YD8cEGZuens7n7gTJYB/u0T1CDRe1CYeDfW9rBByLNTG1dee4NKKZMhT7Ef3+LnoCepv eUlmVe0KTSw9Pnz1Wx99d2p9lx2Xak4CL6Q8JXH3HPxudFML1oc9N4nXGvv2qLksE/Tg dm9UrPMnOujuOAdhUhqSKvE9pCWpLydAn11PiRUA/s+MM0A2FgjQvk32IGX75Tk0uaJe bLEe2H86f+CFSeE8chCnclTOHnKpZgM80AyBl4v36/HFDC1APFeIbEPNjMQ+fWE0L7+Z RjHg== X-Gm-Message-State: AOAM531vjFyZuC0IMv7yNPneZuNk22+CgSHfsnEMVe0BsxB3vk+1O8Zt D3LbdPLRu/zZ/N6cNY2DcqPwDpBRk8Po8oMzxbYJIuCXCgTu8A== X-Google-Smtp-Source: ABdhPJwsTINnB1SKe5nwIZVnc4Z8Y1NxmxOpNM8f+DSGjVr+Vw0z81OnEIDHdB+H/5fvXWWkgeZpfRFM3x8/pkfjY0g= X-Received: by 2002:adf:ba47:: with SMTP id t7mr5827916wrg.285.1611342253924; Fri, 22 Jan 2021 11:04:13 -0800 (PST) In-Reply-To: <07317c3b-edad-6a51-facc-ce6e292d6b52@klankschap.nl> 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:110340 Archived-At: --===============3409527071599122986== Content-Type: multipart/alternative; boundary="000000000000a8238e05b981da98" --000000000000a8238e05b981da98 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Like this? \usemodule[annotation] %Thanks for this module, Wolfgang \defineannotation[zzz] \define[2]\AnnotationCommand {\doifelse{\placeannotationtitle}{}{}{\hrule\bf\placeannotationtitle\par}#2= \blank[10mm]} \setupannotation[zzz] [alternative=3Dcommand, command=3D\AnnotationCommand, text=3D] \starttext \startzzz{a} Hola \stopzzz \startzzz{b} Chao \stopzzz \startzzz Hola de nuevo \stopzzz \stoptext Jairo El vie, 22 de ene. de 2021 a la(s) 12:51, Floris van Manen (vm@klankschap.n= l) escribi=C3=B3: > I'd like to create a start/stop command with a parameter > > > > \startzzz[a] > one two three > \stopzzz > > \startzzz[b] > one two three > \stopzzz > > > How do i define/pass the tag parameter in the definition? > This does not work (obviously) > > \definestartstop[zzz][ > before=3D{\hrule\bf tag\blank}, > after=3D{\blank[10mm]} > ] > > > I cannot find it in the documentation > > .F > > _________________________________________________________________________= __________ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > _________________________________________________________________________= __________ > --000000000000a8238e05b981da98 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Like this?
=


\usemo= dule[annotation] %Thanks for this module, Wolfgang

\defineannotat= ion[zzz]

\define[2]\Ann= otationCommand

{\doifelse{\pl= aceannotationtitle}{}{}{\hrule\bf\placeannotationtitle\par}#2\blank[10mm]}<= /p>

\setupannotati= on[zzz]

[alternative= =3Dcommand,

command=3D\Ann= otationCommand,

text=3D]

\starttext

\startzzz{a}

Hola

\stopzzz

\startzzz{b}

Chao

\stopzzz

\startzzz

Hola de nuevo<= /p>

\stopzzz

\stoptext
<= br>

Jairo


El vie, 22 de ene. de 2021 a la(s) 12:51, Floris van Manen (vm@klankschap.nl) escribi=C3=B3:
=
I'd like to create a = start/stop command with a parameter



\startzzz[a]
one two three
\stopzzz

\startzzz[b]
one two three
\stopzzz


How do i define/pass the tag parameter in the definition?
This does not work (obviously)

\definestartstop[zzz][
before=3D{\hrule\bf tag\blank},
after=3D{\blank[10mm]}
]


I cannot find it in the documentation

.F
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--000000000000a8238e05b981da98-- --===============3409527071599122986== 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== --===============3409527071599122986==--