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 530BB22B0B for ; Mon, 17 Jun 2024 17:57:48 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id C2A07484632 for ; Mon, 17 Jun 2024 17:57:41 +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 E6RxbCoTbt4Y for ; Mon, 17 Jun 2024 17:57:41 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 5F9DB48466A for ; Mon, 17 Jun 2024 17:57:28 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id E06E34845E6 for ; Mon, 17 Jun 2024 17:57:18 +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 zY7rv9udge-s for ; Mon, 17 Jun 2024 17:57:18 +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)) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 74A0C4845E0 for ; Mon, 17 Jun 2024 17:57:18 +0200 (CEST) Received: from falbala.localnet (ip4d1692dd.dynamic.kabel-deutschland.de [77.22.146.221]) by flump.de (Postfix) with ESMTPSA id C4FE610D7A6D for ; Mon, 17 Jun 2024 13:04:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=flump.de; s=mail; t=1718622248; bh=1/pTBt5MqjXKR+4FtZbAuNJQq9xy+gwSOfb5EaXdk00=; h=From:To:Subject:Date:In-Reply-To:References; b=GD4unOeL3jseKIvJM1ZbJDKHzS+4rpn2ZeJjEBYaTUeVVOUIMHd87uc0jHjQSHJt+ i9tyJT16CGyUMs4chPj0nyvTPgT6GBqsWoC5HYCZBiI7F5YxmZJTcOlcaiOlHeIYuq VNa9NHMWDWLnsLwZw7RF3hjZiA/LHwfU37xNoaDA= From: Gerion Entrup To: mailing list for ConTeXt users Date: Mon, 17 Jun 2024 13:04:03 +0200 Message-ID: <2924302.TLnPLrj5Ze@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: NUKBXPTAVNJWHPGSPYIRLGX2ENALZQFJ X-Message-ID-Hash: NUKBXPTAVNJWHPGSPYIRLGX2ENALZQFJ 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="===============7404795555146901340==" --===============7404795555146901340== Content-Type: multipart/signed; boundary="nextPart11179573.zapYfy813O"; micalg="pgp-sha256"; protocol="application/pgp-signature" --nextPart11179573.zapYfy813O Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8"; protected-headers="v1" From: Gerion Entrup To: mailing list for ConTeXt users Date: Mon, 17 Jun 2024 13:04:03 +0200 Message-ID: <2924302.TLnPLrj5Ze@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: > \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 >=20 > Wolfgang >=20 I tried to combine this with the code of the mail thread: "setuphead in con= nection with the command argument" but had not luck. ConTeXt always stops with: ``` close source > level 1, order 2, name './mwe.tex' tex error > runaway error: end of file encountered mtx-context | fatal error: return code: 1 ``` Here is the MWE: ``` \startsetups [userdata:extract] \getuserdata \hairline \itx\userdataparameter{author} \stopsetups % original definition (also does not work) % \startsetups [userdata:extract] % \startnarrower % \setupindenting[next] % \getuserdata % \hairline % \dontleavehmode\wordright{\itx\userdataparameter{author}} % \stopnarrower % \stopsetups \defineuserdataalternative [extract] [renderingsetup=3Duserdata:extract] \defineuserdata [extract] [style=3Ditalic, alternative=3Dextract] \defineframed[chapter_frame][ width=3D\textwidth, align=3Dflushright, offset=3D0pt, rulethickness=3D0pt ] \startsetups[my_chapter] \startlocalheadsetup \startframed[chapter_frame] \blank[2cm] \startfont[Serif sa 8] \color[darkgray]{\headnumbercontent} \stopfont \blank[5mm] \startfont[SerifBold sa 2] \color[m-indigo-800]{\headtextcontent} \stopfont \blank[1cm] \startfont[SerifBold sa 1.5] \color[m-indigo-800]{\structureuservariable{subtitle}} \stopfont \blank[3cm] \startextract[author=3D{\structureuservariable{quoteauthor}}] \structureuservariable{quote} \stopextract \stopframed \stoplocalheadsetup \stopsetups \defineheadalternative[chap][renderingsetup=3Dmy_chapter] \setuphead[title, chapter][ alternative=3Dchap, after=3D{\page[yes]}, sectionsegments=3D2:2, header=3Dhigh, footer=3Dhigh, style=3D ] \starttext % embedded startextract into startchapter does not work \startchapter[title=3DFoo][subtitle=3Dbla, quoteauthor=3D{Ren=C3=A9 Descart= es}, quote=3D{% Cogito ergo sum. }] \stopchapter \startextract[author=3DRen=C3=A9 Descartes] Cogito ergo sum. \stopextract \stoptext ``` I also tried to combine it less interleaved, but it fails with the same err= or: ``` \startsetups [userdata:extract] \getuserdata \hairline \itx\userdataparameter{author} \stopsetups % original definition (also does not work) % \startsetups [userdata:extract] % \startnarrower % \setupindenting[next] % \getuserdata % \hairline % \dontleavehmode\wordright{\itx\userdataparameter{author}} % \stopnarrower % \stopsetups \defineuserdataalternative [extract] [renderingsetup=3Duserdata:extract] \defineuserdata [extract] [style=3Ditalic, alternative=3Dextract] \defineframed[chapter_frame][ width=3D\textwidth, align=3Dflushright, offset=3D0pt, rulethickness=3D0pt ] \defineframed[chapter_quote][ width=3D\textwidth, align=3Dflushright, offset=3D0pt, rulethickness=3D0pt ] \startsetups[my_chapter] \startlocalheadsetup \startframed[chapter_frame] \blank[2cm] \startfont[Serif sa 8] \color[darkgray]{\headnumbercontent} \stopfont \blank[5mm] \startfont[SerifBold sa 2] \color[m-indigo-800]{\headtextcontent} \stopfont \blank[1cm] \startfont[SerifBold sa 1.5] \color[m-indigo-800]{\structureuservariable{subtitle}} \stopfont \blank[3cm] \startframed[chapter_quote] \structureuservariable{quote} \stopframed \stopframed \stoplocalheadsetup \stopsetups \defineheadalternative[chap][renderingsetup=3Dmy_chapter] \setuphead[title, chapter][ alternative=3Dchap, after=3D{\page[yes]}, sectionsegments=3D2:2, header=3Dhigh, footer=3Dhigh, style=3D ] \starttext % embedded startextract into startchapter does not work \startchapter[title=3DFoo][subtitle=3Dbla, quote=3D{% \startextract[author=3DRen=C3=A9 Descartes] Cogito ergo sum. \stopextract }] \stopchapter \startchapter[title=3DFoo][subtitle=3Dbla, quote=3D{bla}] \startextract[author=3DRen=C3=A9 Descartes] Cogito ergo sum. \stopextract \stopchapter \stoptext ``` Do you know where the problem is? Gerion --nextPart11179573.zapYfy813O 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/tVN9WpYYHnPZHxloeAdSYJHeoFAmZwGCMACgkQloeAdSYJ HepWYAwAqMFdWxi8juBl17okw8jG2l6U180lI0esnZErcO9btNFTfoEvuR1yk2An nbfwWgnWXU2edfqOKSkLVPoBo8dzYIdoFUDlo1PQANSPHwj7P9JOb6vIRWcUrGas /sEk5+E3NcVvubMeolpH7wwqO9qJX3rtHZUYiIRe1r8Ld6Q5XlaJl22AGl5YuVY6 fN9FO+5fHVt0Qj2Z5O3tyFuQZVzMQ5EqdFaTWob3uPZ0VKns1CSje+fNspA/Iazj QRzH0siUV75COIND0FMkwO7GDnpvOM1Q5c3TnSE3Aul3RFK8uyXZGDg70BqAKlv3 4nyYKbg2Vma074//SHOK1SR84B8fdxy8xN5JzhBfPdxZcqNLmvcFKyLR9MbgHqWZ ns2276LC8KNfDtTPmizAJn3oJw9DEdNe0jEfyYtgbN9gHzIbpbdVc4AxTyyCjhlx QTAe+BmiyDNJnyTEsgl0FXlTqRzvUzezqu0lw3Mvid2doXChsqlu2Ab6REy+FzZ9 W3rLEl17 =D7m6 -----END PGP SIGNATURE----- --nextPart11179573.zapYfy813O-- --===============7404795555146901340== 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 ___________________________________________________________________________________ --===============7404795555146901340==--