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 838542A773 for ; Fri, 7 Jun 2024 00:38:41 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 03EFC485102 for ; Fri, 7 Jun 2024 00:37:35 +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 jMr-NWTSxQat for ; Fri, 7 Jun 2024 00:37:34 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 509E3485045 for ; Fri, 7 Jun 2024 00:36:39 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 38C0F484E84 for ; Fri, 7 Jun 2024 00:36:11 +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 7nU6MBGhRTqL for ; Fri, 7 Jun 2024 00:36:09 +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 C994A484E83 for ; Fri, 7 Jun 2024 00:36:09 +0200 (CEST) Received: from falbala.localnet (ip4d1692dd.dynamic.kabel-deutschland.de [77.22.146.221]) by flump.de (Postfix) with ESMTPSA id EE13710769AE; Fri, 7 Jun 2024 00:36:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=flump.de; s=mail; t=1717713369; bh=o0QK8+Cu66Vt3J42qP/v7PszZIrUSIlaXvFU+XS11JY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=TtD1xXKZFwsrv4SjXehom5I7Mf1gqOeNKRgZmFhreAoYvu2munrQNNl2AiiEgglqW x/bNsvFMGUNriEzSxahnp45ru+IKZEytSSI1NdjVMxRJ5uBPijDH+GvauQoYzfYM6L mZIC5UOBx7RETu4UKSpIWM0yT7vMb4B99D+M6LHI= From: Gerion Entrup To: ntg-context@ntg.nl Date: Fri, 07 Jun 2024 00:36:02 +0200 Message-ID: <3557481.fEcJ0Lxnt5@falbala> In-Reply-To: <4a0c2c0c-da25-4468-ab47-e0a4420a84a8@freedom.nl> References: <3021354.tIAgqjz4sF@falbala> <4a0c2c0c-da25-4468-ab47-e0a4420a84a8@freedom.nl> MIME-Version: 1.0 Message-ID-Hash: 2R5DBSSM3ORDN6EP5R2N6VHEJLGYUS4V X-Message-ID-Hash: 2R5DBSSM3ORDN6EP5R2N6VHEJLGYUS4V 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: Combine \setupdelimitedtext with an author (define custom variable?) 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="===============2477426840678479786==" --===============2477426840678479786== Content-Type: multipart/signed; boundary="nextPart13189385.VsHLxoZxqI"; micalg="pgp-sha256"; protocol="application/pgp-signature" --nextPart13189385.VsHLxoZxqI Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8"; protected-headers="v1" From: Gerion Entrup To: ntg-context@ntg.nl Cc: Hans Hagen Date: Fri, 07 Jun 2024 00:36:02 +0200 Message-ID: <3557481.fEcJ0Lxnt5@falbala> In-Reply-To: <4a0c2c0c-da25-4468-ab47-e0a4420a84a8@freedom.nl> MIME-Version: 1.0 Am Donnerstag, 6. Juni 2024, 13:51:53 MESZ schrieb Hans Hagen via ntg-conte= xt: > On 6/6/2024 12:30 PM, Gerion Entrup wrote: > > Hi, > >=20 > > I like to achieve something that looks like this: > > ``` > > \definedelimitedtext[extract][blockquote] > > \setupdelimitedtext > > [extract] > > [leftmargin=3D1.5pc, > > style=3D{\italic}, > > before=3D{\setupindenting[next]}, > > after=3D{\blank[1ex] \hrule \blank[1ex] \startalignment[flushright]= \tfx\italic{Ren=C3=A9 Descartes} \stopalignment}] > >=20 > > \starttext > > \startextract > > Cogito ergo sum. > > \stopextract > > \stoptext > > ``` > >=20 > > So it should setup a quotation and mentions the author. > > However, here the author is hardcoded within the blockquote. I would li= ke it to use like this: > > ``` > > \definedelimitedtext[extract][blockquote] > > \setupdelimitedtext > > [extract] > > [leftmargin=3D1.5pc, > > style=3D{\italic}, > > before=3D{\setupindenting[next]}, > > after=3D{\blank[1ex] \hrule \blank[1ex] \startalignment[flushright]= \tfx\italic{\getcustomvariable{author}} \stopalignment}] > >=20 > > \starttext > > \startextract[author=3DRen=C3=A9 Descartes] > > Cogito ergo sum. > > \stopextract > > \stoptext > > ``` > >=20 > > Is there an easy way to achieve that? > > I tried with \structureuservariable (like possible in \startchapter) bu= t it does not work. >=20 > not all constructs hav ethese user variables (yet) >=20 > i'll add an option for arguments tostart/stop so that you can do >=20 > \starttext >=20 > \definedelimitedtext > [dextract] > [blockquote] > [leftmargin=3D1.5pc, > style=3Ditalic, > before=3D\setupindenting[next], > after=3D\setups{extract:whatever}] >=20 > \definestartstop > [extract] > [arguments=3Dyes, > before=3D\setups{extract:start}, > after=3D\setups{extract:stop}] >=20 > \startsetups extract:start > \startdextract > \stopsetups >=20 > \startsetups extract:stop > \startstopparameter{author} > \stopdextract > \blank[1ex,samepage] > \hrule > \blank[1ex,samepage] > \dontleavehmode > \wordright{\itx\startstopparameter{author}} > \stopsetups >=20 > \starttext >=20 > \startextract[author=3DRen=C3=A9 Descartes] > Cogito ergo sum. > \stopextract >=20 > \stoptext >=20 > but first i want Wolfgang to check the patch, =46or me, Wolfgang's answer fulfills all my needs. So, from my point of view, this is not needed anymore. Thank you for your effort anyway! Gerion --nextPart13189385.VsHLxoZxqI 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/tVN9WpYYHnPZHxloeAdSYJHeoFAmZiOdIACgkQloeAdSYJ HerS1AwAi99mJrm6C/uBNxy6V+NbLV6Cam6UTLf2fzH949EgR8OpUmtHUwiRJnKP dvQGkQNqY42gojkFcVPuC5sgJeGSl8JoWZljXHdmYNViJRwZcOylut1Ek21XPWOi VmhLwKtDqU3pPotFp9RtXNhk9n8ktDYhJU2OMDYUqHdSmpVpCW+xyQSLMYe6R5Gk HNhAUaBhClo6smN0WuLdN67KQ7gKrKjunu6s4ixBGLwd9AmX2SAkboYu7xBEC4Ze TAb54TGG1WSwlD8/PecUXrKRA/ih5cK+lDU+nT9+M0868a/ZW3mZ68sq+P+a3bH0 ZRX1Z2/R6vEjBDh2y6gKd3M+xcINDgSoHhWScpCTK8qqwDSy+c5wC5/5F8IS2Rpj UYp2HjYrkLZDgCmsmts5JnYHKzFJlr5ZGqPiwvCmT34DK7gPz/YEFi0Ky5Wz5QYZ FIYWOB+Mv3AHgwEKHfg3cOiJEZHvrTSKEmss1nE4fDuA3gmO9C8ur4QRdBdULyzZ DYKZcg+X =s/u9 -----END PGP SIGNATURE----- --nextPart13189385.VsHLxoZxqI-- --===============2477426840678479786== 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 ___________________________________________________________________________________ --===============2477426840678479786==--