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 64CD12B63C for ; Thu, 13 Jun 2024 13:42:37 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 5A3C44843AB for ; Thu, 13 Jun 2024 13:42:29 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=flump.de 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 u_idJ-0QZwIq for ; Thu, 13 Jun 2024 13:42:28 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 4B604484256 for ; Thu, 13 Jun 2024 13:42:16 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 6AE74483E7C for ; Thu, 13 Jun 2024 13:42:04 +0200 (CEST) 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 LBd8vzm6jKW9 for ; Thu, 13 Jun 2024 13:41:59 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=185.163.118.210; helo=flump.de; envelope-from=gerion.entrup@flump.de; receiver= Received: from flump.de (flump.de [185.163.118.210]) (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 7BA4A483E70 for ; Thu, 13 Jun 2024 13:41:59 +0200 (CEST) Received: from falbala.localnet (unknown [130.75.33.21]) by flump.de (Postfix) with ESMTPSA id 2457D10AF3EB for ; Thu, 13 Jun 2024 13:41:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=flump.de; s=mail; t=1718278919; bh=uDRFQCf+k8RuYzwric1CUTbuyRuKAHFZKPBTD1ZwL5Q=; h=From:To:Subject:Date; b=TH57YUbOihpyiZdldGX5lBPMsCu+izsy1MEsUl3rFTrlCZ41uOm2NSErkux7z35UZ IZXZ7gk4Nxd4XHcKvQCJ6K2PBKEhQvVgkeDY/ymE1eFWQt6pia0kEzBPpxe4Zz0r2h xitlqwuvJujtEISrRAhqbUe5vxOhN+rl4PPCcW5c= From: Gerion Entrup To: ntg-context@ntg.nl Date: Thu, 13 Jun 2024 13:41:53 +0200 Message-ID: <2294793.g5d078U9FE@falbala> MIME-Version: 1.0 Message-ID-Hash: YFFPHYSLVYKBPJMMATI2SVOHOTN5XHVZ X-Message-ID-Hash: YFFPHYSLVYKBPJMMATI2SVOHOTN5XHVZ X-MailFrom: gerion.entrup@flump.de 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] Prefix the text in an enumeration. List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============1470714493401252904==" --===============1470714493401252904== Content-Type: multipart/signed; boundary="nextPart4385299.ZaRXLXkqSa"; micalg="pgp-sha256"; protocol="application/pgp-signature" --nextPart4385299.ZaRXLXkqSa Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8"; protected-headers="v1" From: Gerion Entrup To: ntg-context@ntg.nl Subject: Prefix the text in an enumeration. Date: Thu, 13 Jun 2024 13:41:53 +0200 Message-ID: <2294793.g5d078U9FE@falbala> MIME-Version: 1.0 Hi, is there a way to automatically prefix the text body in an enumeration? Consider this example: ``` \defineenumeration[question][ alternative=top, text=Question, title=yes, titleleft=, titleright=, right={:}, headstyle=bold, ] \starttext Some text: \startquestion[title={How long does a loop last?}] \bold{Answer:} For a while. \stopquestion \stoptext ``` I'd like to have the `\bold{Answer:}` automatically. So for example something like this: ``` \defineenumeration[question][ alternative=top, text=Question, title=yes, titleleft=, titleright=, right={:}, headstyle=bold, prefix={\bold{Answer:}}, ] \starttext Some text: \startquestion[title={How long does a loop last?}] For a while. \stopquestion \stoptext ``` I tried to misuse `inbetween` for that but `alternative=top` seems to make a (not modifiable space) between the heading and the text body. Best Gerion --nextPart4385299.ZaRXLXkqSa Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQGzBAABCAAdFiEEM/tVN9WpYYHnPZHxloeAdSYJHeoFAmZq2wEACgkQloeAdSYJ Hep7XwwAoyHYIDPhkfdp1INZgBNsx26RBwhd4CzUBgMDItU1fSwzUJ4JFNyd4eUu XV/PXVQ88iGwvztlXCJxsOm4tShEnyKGSepwmVWvhC9XUXeUP0ZxTzP6x6Ns0w5x t7Vmf7k5JyTwwNxPS9MnA1RnLqKAx0SCwQl9wDmoU7q+MiD41JyIwpqAZ1P2VoW5 UY921In0K13Q56lEBhvAkFs8T5EyrTYt5XlucX4Q978qv6RkWdn1gPW8VVudFhTM acUwIrlW5QvofMvv/a4l4EEdaql4GYiqM2t7GFxY4w+/tABqNxB1acXxAEhT4ikm Jm3fi86fyklTkSzRoSH7qfn/G/ttwiXQhsKk1GjKDPf3qVPWClCERdlmMzmXOA15 UBGqpfLN8j9ao50lHy2KFC0AgkQcuuuRiNSGZSbyqJbLXTkSTVNP2vIUmhl5jCdN c5KgO9V0Okf2vzLOGJK2SKKF2KNIuj5l0/90MmZHD0gvxH/KrfDpiGKoKM07wgCu aW6pcGPx =66o1 -----END PGP SIGNATURE----- --nextPart4385299.ZaRXLXkqSa-- --===============1470714493401252904== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1470714493401252904==--