From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/114272 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joel via ntg-context Newsgroups: gmane.comp.tex.context Subject: What is the proper way to define many different list types in a document? Date: Tue, 25 Jan 2022 00:53:03 +0000 (UTC) Message-ID: <253499394.1008080.1643071983973@mail.yahoo.com> References: <253499394.1008080.1643071983973.ref@mail.yahoo.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1618032958371188381==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35174"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Joel To: "ntg-context@ntg.nl" Original-X-From: ntg-context-bounces@ntg.nl Tue Jan 25 01:53:51 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 1nCA5m-0008zq-TU for gctc-ntg-context-518@m.gmane-mx.org; Tue, 25 Jan 2022 01:53:50 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0D29D2892BC; Tue, 25 Jan 2022 01:53: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 5B3O6UOOmnmi; Tue, 25 Jan 2022 01:53:14 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 13CF9287C6C; Tue, 25 Jan 2022 01:53:14 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 63D47287C6C for ; Tue, 25 Jan 2022 01:53:12 +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 z0tHVzkxYD3b for ; Tue, 25 Jan 2022 01:53:10 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=74.6.131.42; helo=sonic303-3.consmr.mail.bf2.yahoo.com; envelope-from=uaru99@yahoo.com; receiver= Original-Received: from sonic303-3.consmr.mail.bf2.yahoo.com (sonic303-3.consmr.mail.bf2.yahoo.com [74.6.131.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 4BF3A285EB9 for ; Tue, 25 Jan 2022 01:53:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1643071987; bh=GckHdYX2oPxPYMdW3lviICPFZxmH8LxFWNVSB0QctV4=; h=Date:From:To:Subject:References:From:Subject:Reply-To; b=QrepTZxF6xzZPq74+WGID/2o8cKJlqVVT7uK9kDeVj0XSQizgbWm85LglbHnD3WZZHFVwfFC+RGj16+i117II/CqcHYrc7xeni/cNNWYOt2izW20OeQncMnODZ+ZSZLXftrp8g8QJuXm47JzqNaG+USBPT+xuKM4ByEJbRFSbvHNuBWr88ta7UH6UTBwO5fd3tLs899v+PfjPuoNQpfPjEYmAXffGX23lq9SR2iHnLUPWvQ64O/4qnKDysGgaItXgaR60NanMawtBLg+QyLIvY7Y9vLyc6H56eI/TERnmhH3OQJtQdEZL07AmTe/oSJBHJcxAT5OhWJqlRPki1e8vw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1643071987; bh=WGngA9rBec26g/4c7+9+r/+PWJAruwBKME76hdQ1AwD=; h=X-Sonic-MF:Date:From:To:Sub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TNR_Yb_bDyDX.THeWmXzZtScoBx3sOqwVgX urA6CVfj18V2_4t0JoYqd7pT.zDg5I3mXElYnYVQItGbRe1Ba9BLIoaDIOL5DAsJ3LkRIJPritpY 47v5z9sn.LOhtT1zwAWzsI_vNMKkY1BFSlbCKWL_o0 X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.bf2.yahoo.com with HTTP; Tue, 25 Jan 2022 00:53:07 +0000 X-Mailer: WebService/1.1.19615 YMailNorrin 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:114272 Archived-At: --===============1618032958371188381== Content-Type: multipart/alternative; boundary="----=_Part_1008079_348350456.1643071983971" ------=_Part_1008079_348350456.1643071983971 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 t= ype when it appears, strange glitches appear. For instance, I have one that= uses the =E2=98=9E (pointing hand) logo, and sometimes that randomly appea= rs in the wrong lists, for reasons I cannot understand. Below is how I'm defining my lists. I have about a dozen more, this is a sa= mple. Is there some more robust and consistent manner in which I should be = defining them, so the settings from one type don't spill over into the othe= r types? --Joel %prompt \definesymbol[bighand][{{=E2=98=9E}}] \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 }% \prompt{What did you learn about today?} %vocabulary \startcolumns[n=3D3]\startitemize[n] \item word1 \item word2 \item word3 \stopitemize\stopcolumns %nested outline \startitemize[1] =C2=A0=C2=A0=C2=A0 \item some text =C2=A0=C2=A0=C2=A0 \startitemize[2] =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \item some text =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \startitemize[3] =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 \item some text =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \stopitemize =C2=A0=C2=A0=C2=A0 \stopitemize \stopitemize %written answer (produces some lines after the question for writing an answ= er) \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} } \startitemize[n] \item Which planet is closest to Earth? \writingbox{4} \item What is the moon made of? \writingbox{4} \stopitemize %materials list \startcolumns[n=3D3]\startitemize \item crayons \item scissors \item glue \stopitemize\stopcolumns %word search clues (should be simple, but strangely this keeps getting the = =E2=98=9E logo added instead of showing numbers) \startitemize[n] \item a type of hat worn \item a cold season \stopitemize ------=_Part_1008079_348350456.1643071983971 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
= 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 t= ype when it appears, strange glitches appear. For instance, I have one that= uses the =E2=98=9E (pointing hand) logo, and sometimes that randomly appea= rs in the wrong lists, for reasons I cannot understand.

B= elow is how I'm defining my lists. I have about a dozen more, this is a sam= ple. Is there some more robust and consistent manner in which I should be d= efining them, so the settings from one type don't spill over into the other= types?

--Joel

%prompt

\definesymbol[bighand][{{=E2= =98=9E}}]

\define[1]\prompt{%
    \setupitemize[sy= mbol=3Dbighand]
    \startitemize
    &= nbsp;   {\it #1}
    \stopitemize
}%

= \prompt{What did you learn about today?}

%vocabulary

\startco= lumns[n=3D3]\startitemize[n]
\item word1
\item word2
\item word3\stopitemize\stopcolumns

%nested outline

\startitemize[1]    \item some text
    \startitemize[2]=
        \item some text
 &nb= sp;      \startitemize[3]
   &nb= sp;          \item some text        \stopitemize
  &n= bsp; \stopitemize
\stopitemize

%written answer (produces some lin= es after the question for writing an answer)

\define[1]\writingbox{%=
    \dorecurse{#1}{%
       =  \hairline%
    }
}

\startitemize[n]
\i= tem Which planet is closest to Earth? \writingbox{4}
\item What is the m= oon made of? \writingbox{4}
\stopitemize

%materials list

\= startcolumns[n=3D3]\startitemize
\item crayons
\item scissors
\ite= m glue
\stopitemize\stopcolumns

%word search clues (should be sim= ple, but strangely this keeps getting the =E2=98=9E logo added instead of s= howing numbers)
\startitemize[n]
\item a type of hat worn
\item a = cold season
\stopitemize

------=_Part_1008079_348350456.1643071983971-- --===============1618032958371188381== 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== --===============1618032958371188381==--