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 EACD02A63C for ; Thu, 6 Jun 2024 22:09:35 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id D7D5C485065 for ; Thu, 6 Jun 2024 22:08:47 +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 ST0eBGL7m8PA for ; Thu, 6 Jun 2024 22:08:47 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 031E0485006 for ; Thu, 6 Jun 2024 22:07:55 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 83CD4484F9B for ; Thu, 6 Jun 2024 22:07:26 +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 ag3JfByXz6lp for ; Thu, 6 Jun 2024 22:07:26 +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 2B35B484F9A for ; Thu, 6 Jun 2024 22:07:25 +0200 (CEST) Received: from falbala.localnet (ip4d1692dd.dynamic.kabel-deutschland.de [77.22.146.221]) by flump.de (Postfix) with ESMTPSA id C6DF2106E5FA; Thu, 6 Jun 2024 22:07:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=flump.de; s=mail; t=1717704443; bh=6ZKyoec2gczXymrkkMr3Y9I/Y2P5FQ3xwVx36a64akQ=; h=From:To:Subject:Date:In-Reply-To:References; b=6SXcwZbrXUqYXrw4hvsXJPZmjpMyx3C9NuB0uvDrqaQddOGuc6WOsrH65w3CARgrq 9ekVYyWKTBNGxEUYlQbsAqDHgHYb2SLIWfGWqXWifXaqrXPuo0lPERB/lFMtUEu0Vm eUwT0Mo5Kx3oo+F8F5Lr8+fdIbmbXX1MC0zs1vB4= From: Gerion Entrup To: mailing list for ConTeXt users , Wolfgang Schuster Date: Thu, 06 Jun 2024 22:07:18 +0200 Message-ID: <4890903.Wku2Vz74k6@falbala> In-Reply-To: <30fe1ee2-5afc-6335-5d67-2f4a2c93d265@gmail.com> References: <3021354.tIAgqjz4sF@falbala> <30fe1ee2-5afc-6335-5d67-2f4a2c93d265@gmail.com> MIME-Version: 1.0 Message-ID-Hash: JPTOP3N7REHDKU5WBMU7QOJZYLRSFBG6 X-Message-ID-Hash: JPTOP3N7REHDKU5WBMU7QOJZYLRSFBG6 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="===============5818332897970759946==" --===============5818332897970759946== Content-Type: multipart/signed; boundary="nextPart5655873.6fTUFtlzNn"; micalg="pgp-sha256"; protocol="application/pgp-signature" --nextPart5655873.6fTUFtlzNn Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8"; protected-headers="v1" From: Gerion Entrup Date: Thu, 06 Jun 2024 22:07:18 +0200 Message-ID: <4890903.Wku2Vz74k6@falbala> In-Reply-To: <30fe1ee2-5afc-6335-5d67-2f4a2c93d265@gmail.com> MIME-Version: 1.0 Am Donnerstag, 6. Juni 2024, 16:34:03 MESZ schrieb Wolfgang Schuster: > Gerion Entrup schrieb am 06.06.2024 um 12:30: > > 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 > \startsetups [userdata:extract] > \startnarrower > \setupindenting[next] > \getuserdata > \hairline > \dontleavehmode\wordright{\itx\userdataparameter{author}} > \stopnarrower > \stopsetups >=20 > \defineuserdataalternative > [extract] > [renderingsetup=3Duserdata:extract] >=20 > \defineuserdata > [extract] > [style=3Ditalic, > alternative=3Dextract] >=20 > \starttext >=20 > \startextract[author=3DRen=C3=A9 Descartes] > Cogito ergo sum. > \stopextract >=20 > \stoptext Really cool! Thank you. If I see it right, this is completely generic, so with this it is possible to define any start stop with completely variable arguments. Gerion --nextPart5655873.6fTUFtlzNn 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/tVN9WpYYHnPZHxloeAdSYJHeoFAmZiFvYACgkQloeAdSYJ Hep9zQv/WZy1WMammzHsiNiBQwDNhmjoOs4cEECCsH489LwqUtmbFQd0+gykxZ4J bjVgVLzUJM+LHsLGO/2kYZRLnwoE9/XfPeyFLEfHn9lH0URFClWUXqJvoHNER8QI HdlK4FQSXqShBOygoHHwUGHUy8weyDhfumE4kK7bhB02tMSLFb8Iay44t8EAKrgR 9tHqfCNX2aA2joouDJeCV57Wdek0nrIVZ6v40pQJt7Zm44SRL66cIEgMBdLjigjJ O1ED4DdE5Ot4VC8iHbJ5ELa6JKW8CXOMXMwXkE1emsXWiq1i1kLb2StZnwkD/v6W bzHrAU6ceTcfVz9T1SarWggcUeIfa07Za9mvOtBnqVYo26O2rFkZ700qSy7h02or kKyYcOGH1Vo+xFAZDJEPVWxlt76VTYntduKfWucuPMCG6GO4/CYW71Roxx3E0wls z5t/0782mUn77Gs2KWkd/a/GfZd8mKce1q52szx/n51RLi4xex8duwYD/V/sZgEe UPRdE6y6 =0zBs -----END PGP SIGNATURE----- --nextPart5655873.6fTUFtlzNn-- --===============5818332897970759946== 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 ___________________________________________________________________________________ --===============5818332897970759946==--