From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id F15C3299D1 for ; Tue, 16 Jan 2024 15:43:14 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id E9A0E483F26 for ; Tue, 16 Jan 2024 15:41:31 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id z8yb9XPNTxJb for ; Tue, 16 Jan 2024 15:41:30 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id C0376483C1C for ; Tue, 16 Jan 2024 15:40:34 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id C3A49480F17 for ; Tue, 16 Jan 2024 15:39:52 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tbPUekdm7XMI for ; Tue, 16 Jan 2024 15:39:52 +0100 (CET) Received: from seout11.web-dns1.com (seout11.web-dns1.com [68.168.119.165]) (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) by cgl.ntg.nl (Postfix) with ESMTPS id 432BC480E7D for ; Tue, 16 Jan 2024 15:39:52 +0100 (CET) Received: from mailpro1.whc.ca ([51.79.16.13]) by se1.web-dns1.com with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rPkbU-00HRt0-Oe for ntg-context@ntg.nl; Tue, 16 Jan 2024 09:39:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=jdvb.ca; s=default; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:From:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=1IRSDu7y3jQ3jgmXR/On7p0cWmYkSBMBr8xAJ7M7Mwo=; b=gimh5YBopEH/3PjHVQ6/SLi8vO TDVklmh+UDgHX2a7fozRj4OQl7FC32qG5GQ7vNRatKDH2P9/297Q7ozjB2S8Z2j3VRHGLIDUgr1Ds d4GNhSdO234uKKHDd5DCX2Y7NHSdGaxVGiPfXGcDMKWkrdztZnjhkRApFwUexDjW104C0Uy2jMu6j 66rfEgD4xzyw0t/89mCfZbSOVE0IutXxaL8ARkCNxHCzWmA5VVmxVPpuOVnuSIssQO8cgHEDzg/oU zVY7Fca9iz3xvAlr3uzoOhiO/63EBUzJgiIFJJvrIrBmqh3l6v9i7ww9H07MRIGOYlgTJXG30bXep aZkM4VSg==; Received: from [47.55.144.2] (port=53454 helo=x360) by mailpro1.whc.ca with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rPkbO-005pNV-0f for ntg-context@ntg.nl; Tue, 16 Jan 2024 09:39:48 -0500 Received: by x360 (Postfix, from userid 1000) id BB3771E0B76; Tue, 16 Jan 2024 10:39:41 -0400 (AST) Date: Tue, 16 Jan 2024 10:39:41 -0400 From: Jim To: mailing list for ConTeXt users Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Microslop: Just say no X-Originating-IP: 51.79.16.13 X-SpamExperts-Domain: out.mailpro1.whc.ca X-SpamExperts-Username: 51.79.16.13 Authentication-Results: web-dns1.com; auth=pass smtp.auth=51.79.16.13@out.mailpro1.whc.ca X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.23) X-Recommended-Action: accept X-Filter-ID: Pt3MvcO5N4iKaDQ5O6lkdGlMVN6RH8bjRMzItlySaT+RJRg0I8Pe3AZX+PhymOBCPUtbdvnXkggZ 3YnVId/Y5jcf0yeVQAvfjHznO7+bT5x+OkQ6e4TPVgvpcS1fNw4ZIpdOJ9Sgfu6rKL8kf6cp2VCE tlu4TwGOAfMYdhZEcRvilbHtbFYVmmyNP/jzd7CCzPgfBgZM0FjuQW6Y55dUiQZmnW/XN+tohdLu D74c7RINHN5XpeP8YOx4s2ayITbOg8CBO1Snvm6qXHQp7O9kdfVx4GsWPrj5Abbqhk9i9oABGzKf EMfQP5IsMlZ0RJfOLDnQGgRgHjioU8fpt7xeC7AK0L/uTNt3WCw41GzGb1Zq+pu9ho29CVyp3Dt9 A9c5hLgYgFsBSgLe7UmHHVjYG9GnC3OL+6eaioOqJ1MVeBS8xyVOjEJvIAACfll1FjMqX1/meW3M G7kx6XXEd8YzfeZE7YJwhBWCb1PmFojBOyjXs2KsRjKrCowEavDwQuKo3bSrXfKp2XsEXUBafcEf xV8Coej5pI7/nMRAwrsF7/9g5p66If/IR1kfxLX5OBwkE6OHS8/FxA6Moo6tghBinBqZR3KVQgqF /fPYYAfEfsga52Z8JJXfjlinQlAXz8EMFSdfXmCpxBt2MeF3x6rGzu503zUexSvglgLGOZu+xp2K YxfWMD3hvX7x6ERBKx0ZUefp74u7wOZVbHJtJYlzOef4BOzgtGrtZu2lf9pWDU7nlEbz++OvPn/h BrVpEmS9K+VzIi1ULT1qXnF5VPHSv0yGxBWcv0SD5EsQJf8Qne7tmw8sphzpQmOEXpE4cy75VKFw Dpe+9rZABUSOmrMA1koJ6AwQyWBzwby8nMWavwYbRbqCeHUi+97VuZvKuam4nYkEGSzMN+VIFNVe FYSeTIdjF0AJTElrPumkT4cGbnHyI0CgGXyP43F+qNYPSuWcFJCaRyv/5ZYeeiHIC6yQfBXhzfc7 VH8oZoor1GNoqgMfjrevqpm/2sp3cgpxOLQb+Onf21Cxz6rC7Olhe4vH4Q== X-Report-Abuse-To: spam@se1.web-dns1.com Message-ID-Hash: KDKV3APKTO3Y66FVIPVTIPF7JM6MARLP X-Message-ID-Hash: KDKV3APKTO3Y66FVIPVTIPF7JM6MARLP X-MailFrom: zlists+context@jdvb.ca X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: Looking for itemize help List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Tue, Jan 16, 2024 at 01:15 (+0000), Bruce Horrocks wrote: > On 15 Jan 2024, at 16:15, Jim wrote: >> I would like >> something which automagically "does the right thing". > Not pretty, but... :-) > \setupwhitespace [big] > \setuppapersize [letter] > \define[1]\mystopitemize{\stopitemize\doifsamestringelse{#1}{\par}{\blank}{#1}} > \starttext > This is a short paragraph. > This is a line before an itemization. > \startitemize[nowhite] > \item First item. > \item Second item. > \mystopitemize > This is a short paragraph immediately following. > This is a line before a {\bf nowhite, after} itemization. > \startitemize[nowhite] > \item First item. > \item Second item. > \mystopitemize > This is the next short paragraph, not part of the above. > \stoptext Bruce, thanks very much for that code. Given that (apparently?) there is no option to itemize to do what I want, what you have is a good choice. I just tried this: \let\originalstopitemize=\stopitemize \define[1]\stopitemize{\originalstopitemize\doifsamestringelse{#1}{\par}{\blank}{#1}} and it works with the above test, after replacing \mystopitemize with the usual \stopitemize. I'm not sure what this might break going forward, but I guess time will tell. (Or perhaps someone with more ConTeXt knowledge than me will tell me first.) Cheers. Jim ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________