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 5A9BE2044E for ; Fri, 14 Jun 2024 16:02:29 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id C4064483BC3 for ; Fri, 14 Jun 2024 16:01:26 +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 sDB3XGXCac36 for ; Fri, 14 Jun 2024 16:01:26 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 06D604844DE for ; Fri, 14 Jun 2024 16:00:14 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id AA74F483391 for ; Fri, 14 Jun 2024 15:59:40 +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 4JuWW-J4RRDp for ; Fri, 14 Jun 2024 15:59:40 +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 2EC2B48308D for ; Fri, 14 Jun 2024 15:59:40 +0200 (CEST) Received: from falbala.localnet (unknown [130.75.33.21]) by flump.de (Postfix) with ESMTPSA id 5284910B95AC; Fri, 14 Jun 2024 15:59:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=flump.de; s=mail; t=1718373578; bh=j9HyIyTVOCmMFOY9JJo62NMZslJ3CN1W4csGbF7KmME=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=NgAIZM+WhFPmkkUAXG9aLMRfrwpZYJdlajmbE9KvDw07z78D43OOc28fNL4QCmiNb Uo/uYSdVEyrtGBtcTc/r4RuHR7FzXAe4pbxMYNCOk2/tef3lHsSgcbO4h9Ug3rg2jT 17D+ZUA48OjTA8bsiVafxlemAcCcvw3QOwFZF7nQ= From: Gerion Entrup To: Wolfgang Schuster Date: Fri, 14 Jun 2024 15:59:29 +0200 Message-ID: <3220336.AiC22s8V5E@falbala> In-Reply-To: <8fb10c26-cf4b-e660-eff5-6c6e4a858a16@gmail.com> References: <2294793.g5d078U9FE@falbala> <3010192.9Mp67QZiUf@falbala> <8fb10c26-cf4b-e660-eff5-6c6e4a858a16@gmail.com> MIME-Version: 1.0 Message-ID-Hash: ASP5T4YPYQNLQBKEPQZNFJQX3JTUJS33 X-Message-ID-Hash: ASP5T4YPYQNLQBKEPQZNFJQX3JTUJS33 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 CC: mailing list for ConTeXt users 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="===============7717207619802220239==" --===============7717207619802220239== Content-Type: multipart/signed; boundary="nextPart2222324.QZUTf85G27"; micalg="pgp-sha256"; protocol="application/pgp-signature" --nextPart2222324.QZUTf85G27 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8"; protected-headers="v1" From: Gerion Entrup To: Wolfgang Schuster Cc: mailing list for ConTeXt users Subject: Re: [NTG-context] Prefix the text in an enumeration. Date: Fri, 14 Jun 2024 15:59:29 +0200 Message-ID: <3220336.AiC22s8V5E@falbala> In-Reply-To: <8fb10c26-cf4b-e660-eff5-6c6e4a858a16@gmail.com> MIME-Version: 1.0 Am Freitag, 14. Juni 2024, 11:51:28 MESZ schrieb Wolfgang Schuster: > Gerion Entrup schrieb am 14.06.2024 um 11:01: > > 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 > > You need 2 changes for \setupparagraphintro: > > 1. Change the argument of \hspace to "dist" because the commands accepts > only keywords and everything else (even a valid length) is ignored and > results in a horizontal skip of 0pt. Hrmm, this was a typo. > > 2. You have to add curly braces around the content when the content > includes square brackets because nesting of optional arguments isn't > supported yet. Thanks for the help, that was the missing part. > > The correct version of the one above is: > > \startsetups[question:intro] > \setupparagraphintro[first][{\bold{Answer:}\hspace[dist]}] > \blank > \stopsetups > > Wolfgang > Gerion --nextPart2222324.QZUTf85G27 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/tVN9WpYYHnPZHxloeAdSYJHeoFAmZsTMEACgkQloeAdSYJ Heoj5Qv/WEjbfrFfXE10jFAhnNB4Sq9m0vXmqEs+479p0NCgqefiZlBTPa21pyWw y0kyWFbpf5ZQakMdLdK4ORKmmExlelL69JGpI3VENqk8Aj0d01T+/ZMsF/xQwO77 BUMHQ0np/JDsP9+tYPt66/rMqVKUSZI/qUZTFdAlUWevoPC/lpvRuF6ka5qxtJUF d6NqFyhWoZdgujbyBANX/G407qiA3V0X79xUTPB5RnexdiKoTDOVD0TGYKxAR99l /bxvm/JIMY2vrUx0x9FvbE2ToVTk7XfTiU7gfh/+dWN6eO0vLY4ViHT04522sgUm CX15wvNKaFzwcbF8fNcRlsalkcFIbB0HAE4Ywcg99CO5n+HugfxpMuHw0S+wAN1X Ovt9oGKdrmGoHMq7FyPE29F9FGAbZHdQl7jxTPG/Ow79EUphvIxAnUbRynQVQvBI eOy+C3SuR2UEjcqklDx7zyLqNMAUzc7L7ZpsLr9MqfuSqF1YgCnBWdjz6Q1fvdR/ 2mkfzLOF =SEop -----END PGP SIGNATURE----- --nextPart2222324.QZUTf85G27-- --===============7717207619802220239== 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 ___________________________________________________________________________________ --===============7717207619802220239==--