From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/114273 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Aditya Mahajan via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: What is the proper way to define many different list types in a document? Date: Tue, 25 Jan 2022 02:15:22 -0500 (EST) Message-ID: References: <253499394.1008080.1643071983973.ref@mail.yahoo.com> <253499394.1008080.1643071983973@mail.yahoo.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-1371702219-1643094922=:1879" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20515"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Alpine 2.23 (LNX 453 2020-06-18) Cc: Aditya Mahajan To: Joel via ntg-context Original-X-From: ntg-context-bounces@ntg.nl Tue Jan 25 08:16:10 2022 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 1nCG3l-00059F-HD for gctc-ntg-context-518@m.gmane-mx.org; Tue, 25 Jan 2022 08:16:09 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2E33F2859D8; Tue, 25 Jan 2022 08:15:30 +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 3wGnYQW-oJ4p; Tue, 25 Jan 2022 08:15:28 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5F71D28933A; Tue, 25 Jan 2022 08:15:28 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A47BE28933A for ; Tue, 25 Jan 2022 08:15:26 +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 A9-tdx9X2PR4 for ; Tue, 25 Jan 2022 08:15:25 +0100 (CET) Received-SPF: Softfail (mailfrom) identity=mailfrom; client-ip=132.206.73.2; helo=orford.cim.mcgill.ca; envelope-from=adityam@umich.edu; receiver= Original-Received: from orford.cim.mcgill.ca (orford.cim.mcgill.ca [132.206.73.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id A6E732859D8 for ; Tue, 25 Jan 2022 08:15:24 +0100 (CET) Original-Received: from adi-thinkpad (135-23-198-80.cpe.pppoe.ca [135.23.198.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: adityam) by orford.cim.mcgill.ca (Postfix) with ESMTPSA id 752F8189458 for ; Tue, 25 Jan 2022 02:15:23 -0500 (EST) In-Reply-To: <253499394.1008080.1643071983973@mail.yahoo.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:114273 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1371702219-1643094922=:1879 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE On Tue, 25 Jan 2022, Joel via ntg-context wrote: > I have about several different types of list that reoccur multiple times = in my documents. Though I tried to keep things simple, by just defining the= type when it appears, strange glitches appear. For instance, I have one th= at uses the =E2=98=9E (pointing hand) logo, and sometimes that randomly app= ears in the wrong lists, for reasons I cannot understand. >=20 > Below is how I'm defining my lists. I have about a dozen more, this is a = sample. Is there some more robust and consistent manner in which I should b= e defining them, so the settings from one type don't spill over into the ot= her types? > --Joel >=20 > %prompt >=20 > \definesymbol[bighand][{{=E2=98=9E}}] >=20 > \define[1]\prompt{% > =C2=A0=C2=A0 =C2=A0\setupitemize[symbol=3Dbighand] > =C2=A0=C2=A0 =C2=A0\startitemize > =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0{\it #1} > =C2=A0=C2=A0 =C2=A0\stopitemize > }% This is a global definition. So, once this macro is used, symbol=3Dbighand = for all itemize. What you can use instead is: \define[1]\prompt{% =C2=A0=C2=A0 =C2=A0\startitemize[symbol=3Dbighand] =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0{\it #1} =C2=A0=C2=A0 =C2=A0\stopitemize }% or even better: \defineitemgroup[prompt][symbol=3Dbighand,style=3Ditalic] =2E.. \startprompt \item \stopprompt > %written answer (produces some lines after the question for writing an an= swer) >=20 > \define[1]\writingbox{% > =C2=A0=C2=A0 =C2=A0\dorecurse{#1}{% > =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0\hairline% > =C2=A0=C2=A0 =C2=A0} > } There is also: https://wiki.contextgarden.net/Command/fillinrules Aditya --8323329-1371702219-1643094922=:1879 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== --8323329-1371702219-1643094922=:1879--