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 EBDA023D0C for ; Tue, 18 Jun 2024 10:02:53 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 0E570484C88 for ; Tue, 18 Jun 2024 09:58:56 +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 04okRniqrJLi for ; Tue, 18 Jun 2024 09:58:55 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 3A48C484C79 for ; Tue, 18 Jun 2024 09:58:05 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 4972E4846A3 for ; Tue, 18 Jun 2024 09:57: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 ovySrIIuErXW for ; Tue, 18 Jun 2024 09:57: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)) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 02F9B48469C for ; Tue, 18 Jun 2024 09:57:39 +0200 (CEST) Received: from falbala.localnet (ip4d1692dd.dynamic.kabel-deutschland.de [77.22.146.221]) by flump.de (Postfix) with ESMTPSA id ABEF310E1002; Tue, 18 Jun 2024 09:57:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=flump.de; s=mail; t=1718697459; bh=eT91DHNjgepen15iz240pYgsr0xDSz0lU+8wpuqp65M=; h=From:To:Subject:Date:In-Reply-To:References; b=Vlb0ylEkjiE6Jpndxj6F4u8nSC5+GSSzE8rEbjMSxdDTCpBiaLRZ2YGmawEWwBWfN 1Wfu3qxIkRSBFoOGB67/3lEIcZlFswZtx0pVv/QeJg051XYTCfVnFJZxNeV9oxejn+ 9rB8rymMHrtsAOY/obkjum+8tQqetDYv4hkyPSK8= From: Gerion Entrup To: mailing list for ConTeXt users , Wolfgang Schuster Date: Tue, 18 Jun 2024 09:57:39 +0200 Message-ID: <3417964.WAvfycf1tz@falbala> In-Reply-To: References: <3021354.tIAgqjz4sF@falbala> <2924302.TLnPLrj5Ze@falbala> MIME-Version: 1.0 Message-ID-Hash: MMBIP4TWYDOFJKYNA7KQUFBPIS2JB44H X-Message-ID-Hash: MMBIP4TWYDOFJKYNA7KQUFBPIS2JB44H 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="===============7086187321029590768==" --===============7086187321029590768== Content-Type: multipart/signed; boundary="nextPart13196729.iMDcRRXYNz"; micalg="pgp-sha256"; protocol="application/pgp-signature" --nextPart13196729.iMDcRRXYNz Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8"; protected-headers="v1" From: Gerion Entrup Date: Tue, 18 Jun 2024 09:57:39 +0200 Message-ID: <3417964.WAvfycf1tz@falbala> In-Reply-To: MIME-Version: 1.0 Am Montag, 17. Juni 2024, 21:20:19 MESZ schrieb Wolfgang Schuster: > Gerion Entrup schrieb am 17.06.2024 um 13:04: > > Am Donnerstag, 6. Juni 2024, 16:34:03 MESZ schrieb Wolfgang Schuster: > >> [...] > >> > >> Wolfgang > >> > > > > I tried to combine this with the code of the mail thread: "setuphead in connection 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[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={\structureuservariable{quoteauthor}}] > > \structureuservariable{quote} > > \stopextract > > \stopframed > > \stoplocalheadsetup > > \stopsetups > > The userdata environment uses the buffer mechanism of Context which has > a few limitations where you can use it, e.g. putting the environment in > the arguments of other commands (like the setup-environment above) > fails. One way to avoid this is to replace the \startextract ... > \stopextract in this case with the code for the quoted text, another way > is to put all content in a buffer and just load the buffer in the > setups-environment. > > \startbuffer[my_chapter] > \startlocalheadsetup > \startframed[chapter_frame] > ... > \stopframed > \stoplocalheadsetup > \stopbuffer > > \startsetups[my_chapter] > \getbuffer[my_chapter] > \stopsetups > > Wolfgang > Thanks, I solved it by embedding the extract code directly (more less). Gerion --nextPart13196729.iMDcRRXYNz 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/tVN9WpYYHnPZHxloeAdSYJHeoFAmZxPfMACgkQloeAdSYJ Heo3ogv9Gry1pk1kAqt0oySe9FGkmmmJy/cF1dsGLfwG0pj4WxDSDSKIK2xy3q+B RVT/3ODZUOUbat2jt1h7RIkYGs1wka/F6hJsPp4TOGpo+9/t00bg85ZQoXrac48Z xgJxWZMjcuZim67tO8XG+2EHrIaEX1un/iyzZbgybVuWmAaJLgzr//XnKKuizF9I UuSluc4HUTiuZvnVWefvt6z+Yp7q4WVa7zrX4Nt4hUUIBylOSmcekCS99uE6Zbqj NToRK9HF1tf9bqoc2nx/mBp5+47RF4V2rQ4hnCJ8PIW/AEoqekEkg1fwvDd9WaQu sfWc9NMNf2XH8a0bHOrM2RCbeIHRjq7ykVJSI0oJsr5xqi2ZWDhhEJ7Bpmx1Xhms UehMSKqhsMqoX5zhCWaZ1DBiKEw7UEcZ4CqdT9z3j9PkHsHX0y6tQGs2oAtVtnCp i52Ns62d32+4lKx6sMad8PWxCk50FjVpdhdFQjWbMgLTR6Ef1jlmjMWz/OgdRlcD bYtCcshk =C9iE -----END PGP SIGNATURE----- --nextPart13196729.iMDcRRXYNz-- --===============7086187321029590768== 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 ___________________________________________________________________________________ --===============7086187321029590768==--