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_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 ECAE020CD3 for ; Mon, 17 Jun 2024 21:22:19 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id D46B648471E for ; Mon, 17 Jun 2024 21:21:23 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=gmail.com 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 7i1re3-WsR8U for ; Mon, 17 Jun 2024 21:21:23 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 6631F48479A for ; Mon, 17 Jun 2024 21:20:52 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id E23D248466A for ; Mon, 17 Jun 2024 21:20:25 +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 RTsrvvxFYfqk for ; Mon, 17 Jun 2024 21:20:25 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.208.51; helo=mail-ed1-f51.google.com; envelope-from=wolfgang.schuster.lists@gmail.com; receiver= Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 97C4F484655 for ; Mon, 17 Jun 2024 21:20:25 +0200 (CEST) Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-57c61165af6so6093545a12.2 for ; Mon, 17 Jun 2024 12:20:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718652025; x=1719256825; darn=ntg.nl; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject:from:to:cc :subject:date:message-id:reply-to; bh=0WalswkN6gPvEpmDtvc44s9E93gSzZdY2PzP6hF1yqQ=; b=j09rqhsI7WWxOGedT0FpHlMgnzpXfh3U3IuYNXEghrqK4yr602qZ7dqrNTfk1hAh6y iERkAdVBxL2wN/W7epmNDbNxiyVkNFLuQYb7rqW+iNtBVZ0NBjYoHWzCLaPfTMrioexx HQB4GyTbMhtXMVw6rfu+PZ4vZVdZ53M1MWjLx3OHwbjOULpI2p7x8M+cEhNRDWMriYNy wUMrckNBw2lbqnYwE8+B/5i/b9ITHoivQ9Ewc2h8z1vYeTmECNASpVbClWhIgry1kIB5 sT2KbnmSapZwcU2976wbklPQ/sRBAOwJcISkBdWM+3s5qSWHrUClcIggZ/7c4N+QA0hB E0MQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718652025; x=1719256825; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0WalswkN6gPvEpmDtvc44s9E93gSzZdY2PzP6hF1yqQ=; b=BDXb4y3Doa6Y9nluDgJk0EpUIGWg1lTTOcivPtknVx/w2mN7yZQXCaex72nUfFfwP8 beCAaDbzdtnaCVr7tyfJv2aOG7r6/RROcFs6oKnWelbjY8WZGXbo+wfEaAPNaAKCVF5S QpCSly8y7hDGLCQNGnklYxrjXPax11y9YBguzN1V+PYnZtnvcD2qEvhFhpj7DmOPypmP 1Ti/OtLmZnsgTdZWXwFhN2u7juAAlmzUQfO9th0VikMioCDIyDz4d3kK789iFhI8bDj8 Rrgp1qQABdAuxx0WIGNcyF4xkTzRyjw6N0tXiPkQZpJ7U9zCxg3euXqLuQJEyfRVtmc4 2Imw== X-Gm-Message-State: AOJu0YySBzG/Uc8a5uiZlPe5onAq35mbKPBjNMYv0SAipzdZ73NqUUzO zTloimqtGiQYIkA49qGt9NaRhFQ6vn7pJIk7TcK9t0lTb0IgOmbXC9dVUA== X-Google-Smtp-Source: AGHT+IGbAmATd0n7zWL68rAqWfApjlsGWYxmV1oBP7iPkpP+Bz92X0QWRjR590iGFD/FOLpxzJZ8Aw== X-Received: by 2002:a17:907:160b:b0:a6f:8264:4582 with SMTP id a640c23a62f3a-a6f8264463fmr376111366b.65.1718652024625; Mon, 17 Jun 2024 12:20:24 -0700 (PDT) Received: from ?IPv6:2a02:810d:a8bf:dc10::7141? ([2a02:810d:a8bf:dc10::7141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f56fa67ecsm535572466b.215.2024.06.17.12.20.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jun 2024 12:20:22 -0700 (PDT) To: mailing list for ConTeXt users , Gerion Entrup References: <3021354.tIAgqjz4sF@falbala> <30fe1ee2-5afc-6335-5d67-2f4a2c93d265@gmail.com> <2924302.TLnPLrj5Ze@falbala> From: Wolfgang Schuster Message-ID: Date: Mon, 17 Jun 2024 21:20:19 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/7.0.60 MIME-Version: 1.0 In-Reply-To: <2924302.TLnPLrj5Ze@falbala> Content-Language: en-US Message-ID-Hash: 75LIHWFD45XMMHCUABFA5WUS273JN4NC X-Message-ID-Hash: 75LIHWFD45XMMHCUABFA5WUS273JN4NC X-MailFrom: wolfgang.schuster.lists@gmail.com 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: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________