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 A9DE72B3A1 for ; Fri, 14 Jun 2024 12:13:07 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id F04B3484866 for ; Fri, 14 Jun 2024 12:00:25 +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 sBFLh2hgr40b for ; Fri, 14 Jun 2024 12:00:25 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id ACC20484B94 for ; Fri, 14 Jun 2024 11:57:19 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id EE3A448064F for ; Fri, 14 Jun 2024 11:56:46 +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 GsKFQcGUDSK6 for ; Fri, 14 Jun 2024 11:56:46 +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 64DE6483D68 for ; Fri, 14 Jun 2024 11:01:18 +0200 (CEST) Received: from falbala.localnet (ip4d1692dd.dynamic.kabel-deutschland.de [77.22.146.221]) by flump.de (Postfix) with ESMTPSA id F38DF10B8F81; Fri, 14 Jun 2024 11:01:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=flump.de; s=mail; t=1718355678; bh=3XaAzSA2TBXRoM/SlLA8rHIb2rFZWdFPO3T+UQMTUSc=; h=From:To:Subject:Date:In-Reply-To:References; b=pSBxkcyfOGTXCk/L/g7mDgP8d1f3n4jyHlZh4WorRlcAMX+q6k+ZrjTPu2UmuwUjR ylLlzCTaOBi08rBMBMKDofUQIh3YNKQ3rJ/Tyd9u+XkBXE/jzvszaCqmJeaN519Nnc uIbRrpL0QoSZKNQBpecYtIvbx2+vF6L8lqrATPWI= From: Gerion Entrup To: mailing list for ConTeXt users , Wolfgang Schuster Date: Fri, 14 Jun 2024 11:01:12 +0200 Message-ID: <3010192.9Mp67QZiUf@falbala> In-Reply-To: <43f73bb9-95fe-c44a-2b0d-228ece13c612@gmail.com> References: <2294793.g5d078U9FE@falbala> <43f73bb9-95fe-c44a-2b0d-228ece13c612@gmail.com> MIME-Version: 1.0 Message-ID-Hash: DKI6TUZZVBYQ4WAYL5VFQC4YLFHR3PXC X-Message-ID-Hash: DKI6TUZZVBYQ4WAYL5VFQC4YLFHR3PXC 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] Re: 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="===============8749803984433722493==" --===============8749803984433722493== Content-Type: multipart/signed; boundary="nextPart11177897.aFP6jjVeTY"; micalg="pgp-sha256"; protocol="application/pgp-signature" --nextPart11177897.aFP6jjVeTY Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8"; protected-headers="v1" From: Gerion Entrup Subject: Re: [NTG-context] Prefix the text in an enumeration. Date: Fri, 14 Jun 2024 11:01:12 +0200 Message-ID: <3010192.9Mp67QZiUf@falbala> In-Reply-To: <43f73bb9-95fe-c44a-2b0d-228ece13c612@gmail.com> MIME-Version: 1.0 Am Donnerstag, 13. Juni 2024, 16:31:58 MESZ schrieb Wolfgang Schuster: > \startsetups[question:intro] > \setupparagraphintro[first][\bold{Answer:} ] > \blank > \stopsetups > > \defineenumeration[question][ > alternative=top, > text=Question, > title=yes, > titleleft=, > titleright=, > right={:}, > headstyle=bold, > inbetween=\setup{question:intro}, > ] > > \starttext > > Some text: > > \startquestion[title={How long does a loop last?}] > For a while. > \stopquestion > > \stoptext Thank you. That works well for this case. I have a follow up question. I tried to additionally set a titledistance and reproduce that for the "Answer:"-part. ConTeXt then introduces a mysterious newline. See this example: ``` \definehspace[dist][1em] \startsetups[question:intro] \setupparagraphintro[first][\bold{Answer:}\hspace[1em]] \blank \stopsetups \defineenumeration[question][ alternative=top, text=Question, title=yes, titleleft=, titledistance=1em, titleright=, right={:}, headstyle=bold, inbetween=\setup{question:intro}, ] \starttext Some text: \startquestion[title={How long does a loop last?}] For a while. \stopquestion \stoptext ``` Gerion --nextPart11177897.aFP6jjVeTY 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/tVN9WpYYHnPZHxloeAdSYJHeoFAmZsBtkACgkQloeAdSYJ HeqOOAwAgMqH84OqXcg7Ptd7Jy/+nu+8TOfqcJGVVixi6TZAc1dMud9GT+jRz3ep isNqRsNoqHzwQczekEdChPhLc4nNTb4SswF6Wxc0kOLUVTLSfKE6gcaOcD7bHx7H 3cIhGFusR6Ymgw5I8ukWEd5GAiKZDxRiFw85ENtfkQU7B0G6Mi83WSW0g5EBSL0x n0WP0+/tRoF9x7/b+U1OpYM6YKDfkP0CXktKVeqfIUhdohf81uoKpoJYrnmxrih5 TGn65h3CFkE+J5t80jM/j67BiGB4xu4o/JAIsKQozxphWB9ZY5c1NDbzVVMaMLGe iVTSnLI2iXUHW7uO8k0wxiRXXUkN4j66Jfc+NXAKTP8+odGQNgtVkb+m5YTe2oHA XO+4U8m4A6i9QVJqR/uYfL+ch0eaKXqKmkMv1jBXiUYiFu5USdzFBOFSpgGIIexT 8g9wSPVuU8RTEJ5Mx0H7hE8n7WNwLj7MFCspKr4OQy1cTG/dVWumVpohnsTWKqqo fKnye3R7 =n0/O -----END PGP SIGNATURE----- --nextPart11177897.aFP6jjVeTY-- --===============8749803984433722493== 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 ___________________________________________________________________________________ --===============8749803984433722493==--