From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/114147 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Aditya Mahajan via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Spacing issue in itemize Date: Thu, 13 Jan 2022 12:15:18 -0500 (EST) Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-1349497977-1642094119=:86722" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19309"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Alpine 2.23 (LNX 453 2020-06-18) Cc: Aditya Mahajan To: Gavin via ntg-context Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 13 18:15:55 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 1n83hb-0004ob-9D for gctc-ntg-context-518@m.gmane-mx.org; Thu, 13 Jan 2022 18:15:55 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 315D5286924; Thu, 13 Jan 2022 18: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 xoxpx_qj0peh; Thu, 13 Jan 2022 18:15:23 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D8340282E1B; Thu, 13 Jan 2022 18:15:23 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3B1FC282E1B for ; Thu, 13 Jan 2022 18:15:22 +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 RoOQcGY0BURd for ; Thu, 13 Jan 2022 18:15:21 +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 (smtp.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 75383282ACC for ; Thu, 13 Jan 2022 18:15:20 +0100 (CET) Original-Received: from adi-thinkpad.local (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 67CED22F1B4 for ; Thu, 13 Jan 2022 12:15:19 -0500 (EST) 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:114147 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-1349497977-1642094119=:86722 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE On Thu, 13 Jan 2022, Gavin via ntg-context wrote: > Hi list, >=20 > When I define an items group, it seems to mess up the spacing for a neste= d item group. See example below. Any ideas? >=20 > I=E2=80=99m typesetting with >=20 > =09> ConTeXt ver: 2022.01.06 19:51 LMTX fmt: 2022.1.9 int: english/eng= lish >=20 > on an M1 Mac. >=20 > Thanks! > Gavin >=20 >=20 > \usemodule[visual] >=20 > \defineitemgroup[questions] > \setupquestions [each] [n] >=20 > \starttext > This numbered list uses my item group \quotation{questions.} The itemize = inside is missing space above item (a). > \startquestions > \item \fakewords{15}{20} > \startitemize[a][left=3D(,stopper=3D,right=3D)] > \item \fakewords{10}{15} > \item \fakewords{10}{15} > \stopitemize > \item \fakewords{10}{15} > \stopquestions >=20 > This numbered list uses itemize. The itemize inside has the expected spac= e above item (a). > \startitemize[n] > \item \fakewords{15}{20} > \startitemize[a][left=3D(,stopper=3D,right=3D)] > \item \fakewords{10}{15} > \item \fakewords{10}{15} > \stopitemize > \item \fakewords{10}{15} > \stopitemize >=20 > \stoptext This is by design. This is what is happening: \usemodule[visual] \defineitemgroup[questions] \starttext This numbered list uses my item group \quotation{questions.} The itemize in= side is missing space above item (a). \startquestions[n][inbetween=3D{AAA}] \item \fakewords{15}{20} \startitemize[a][left=3D(,stopper=3D,right=3D),before=3D{BBB}] \item \fakewords{10}{15} \item \fakewords{10}{15} \stopitemize \item \fakewords{10}{15} \stopquestions This numbered list uses itemize. The itemize inside has the expected space = above item (a). \startitemize[n][inbetween=3D{AAA}] \item \fakewords{15}{20} \startitemize[a][left=3D(,stopper=3D,right=3D),before=3D{BBB}] \item \fakewords{10}{15} \item \fakewords{10}{15} \stopitemize \item \fakewords{10}{15} \stopitemize \stoptext Note that in the first case, the inbetween does not get inserted at the sta= rt of the nested itemization (because, ConTeXt doesn't think that they are = nested as the names are different). But the before key of the nested itemiz= ation doesn't get inserted in both cases because ConTeXt thinks that the it= emization is nested! You can change this behavior by using: \unprotect \c_strc_itemgroups_spacing_mode\plusone \protect in which case both outputs are similar.=20 @Hans: Does it make sense to add a setups key to \setupitemize to keep such= changes local? Aditya --8323329-1349497977-1642094119=:86722 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-1349497977-1642094119=:86722--