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.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI 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 6E8FA2798C for ; Wed, 9 Oct 2024 21:51:46 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 4F6EB484EC8 for ; Wed, 9 Oct 2024 21:50:31 +0200 (CEST) Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=ntg.nl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntg.nl; h= content-transfer-encoding:content-type:content-type :list-unsubscribe:list-subscribe:list-post:list-owner:list-help :list-archive:archived-at:list-id:subject:subject:reply-to :precedence:content-language:in-reply-to:mime-version:user-agent :date:date:message-id:from:from:references:received:received :received:received:received:received:received; s=cgl; t= 1728503430; x=1731095431; bh=4WHv3WVq832RtQFxq7n4Ui05092ofRzR5pb LCCTzsXU=; b=SuGEo8Qg2cBXtvbu/qTiID0mmm+lKEZavufWgQrI5ihMk7AvZyK Te47Wj6Z0bLVOlw8wImPlcS+tYcgAbfBU7MkAg6zwnRLGR6AMWxzN/wves0LmWc6 6EF84RrEEhe+Mq1zTfw0ChLx9nU0/xV+kD+duI44Z2QyXeaNqcVCxkcY= 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 7hLOqxfYrRDI for ; Wed, 9 Oct 2024 21:50:30 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id C9FC5484E86 for ; Wed, 9 Oct 2024 21:50:01 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id B5A4D484CC7 for ; Wed, 9 Oct 2024 21:49: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 BP3TbVaM_pKQ for ; Wed, 9 Oct 2024 21:49:40 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.208.41; helo=mail-ed1-f41.google.com; envelope-from=wolfgang.schuster.lists@gmail.com; receiver= Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (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 68EB1484CC6 for ; Wed, 9 Oct 2024 21:49:40 +0200 (CEST) Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-5c91e5bf6efso2104191a12.0 for ; Wed, 09 Oct 2024 12:49:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728503380; x=1729108180; 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=1XfFj+0J7V0F2eKm5Wby15j8Vomd8Zju1jWHAFiC7h8=; b=Pz43ruXdHoSb0IhKg1hTN31imtC6rtTRXmB+/20qM6gwL3BgAXKNbueBcTgMt10XSC Yjd6AnyUct9JEWeRErXFrHaJV4dhZZjh3UK4qNTHsmtd6kBeaEAbh1otWYfee22+lggG o58HKjdntk+fzok5p+1rVULlErOuDxQgePUcHP21CmY2PlgMu4h/Ih+XrmEOFaoGRkC7 qu9YuWxmuyGkKKIO5o12k6RdSmydn5X7HE0N24jRUOry0LajnOiG9qRo7w5MZCIrvdG8 lZfyeULlPmeLtTCcVZU71XHqzOgG9lzn5/w7JZ3BwoMnXrvXnCCqUMK/XR9cyn9Eia0t fBsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728503380; x=1729108180; 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=1XfFj+0J7V0F2eKm5Wby15j8Vomd8Zju1jWHAFiC7h8=; b=Ftq1ocRdT1vXzxhoTqWaRawk+XbqGd5tbNhqI3DsigPNGE6NFVwb51b0twZCwq8w4N PcLJ5mqBLVpYFf3/0nQc5CA+4I4ksRMkY0HggH/NU04xzrDrlOMrR5bxKp/zEWDtCPEn Zi72aXGgT8Ss0LTLpeKgCSfGXL4n66HOg1FfUUlidmxBfVPsjUq4y92/wYMsZZudZf6v h/AmDKm4ioRlgdaBIgZrfr2OnAkdpmKbxuW1l6TvC0RvqRZUW2A2olKlmE7BR0uoJMXS 7iwOwd5ZaaW3yf53caM7LhhrDql8jh4mC0MNiqRg0YumCUpo5ISL4E9dYJj4jzpQdKTq BNtg== X-Gm-Message-State: AOJu0YyqBxRYGk2GMenGVfoAbKQnpEbPLiG5ZJkdDIX24zk8yvKjOSXL bUR/mJnPMH/1VZsfIpaK27dHswtlvx2Uwx57XS592IT3IZ3ABc5M X-Google-Smtp-Source: AGHT+IGaqHX5TmuRrgoMPmiX3QZIxqkorLXPAGU1/+lRTb1JnviwH3wCMIbvKQd3nnEQ2FDAUahvdQ== X-Received: by 2002:a50:c8cc:0:b0:5c4:aea:5833 with SMTP id 4fb4d7f45d1cf-5c933570f42mr696613a12.18.1728503379669; Wed, 09 Oct 2024 12:49:39 -0700 (PDT) Received: from ?IPv6:2a02:810d:a8bf:e1a8::c89d? ([2a02:810d:a8bf:e1a8::c89d]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c920366ffbsm1103671a12.73.2024.10.09.12.49.37 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Oct 2024 12:49:38 -0700 (PDT) To: mailing list for ConTeXt users , Florian Grammel References: <7F5D6CFE-6994-4AE2-8EFB-D34385465F90@gmail.com> From: Wolfgang Schuster Message-ID: <475ea245-f8af-4a66-3aca-ed0b719be8ee@gmail.com> Date: Wed, 9 Oct 2024 21:49:36 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/7.0.64 MIME-Version: 1.0 In-Reply-To: <7F5D6CFE-6994-4AE2-8EFB-D34385465F90@gmail.com> Content-Language: en-US Message-ID-Hash: HSYNN3ZSGGYFCROUKSDULQXS7YGDZFSK X-Message-ID-Hash: HSYNN3ZSGGYFCROUKSDULQXS7YGDZFSK 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.9 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: widows and orphans in \definestartstop? 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 Florian Grammel schrieb am 09.10.2024 um 13:48: > I have defined a simple environment for verse within prose-context. Obviously I never want the first or last lines of the verses to stand as widows or orphans. I could just add \nobreak to every first and last line of verse to achieve this. But I was wondering whether I could change anything of my \definestartstop to do this automatically. Simply adding \nobreak to before= and after= doesn't work. 1. You example is missing \stopdocument at he end. 2. You can use \dorecurse to place the placeholder text. 3. Use \noindentation to prevent paragraph indentation after an environment, \setupindenting is wrong here because it changes the indentation settings for the whole document. 4. Add "keeptogether=paragraph" to your lines settings. %%%% begin example \definenarrower [VerseIndent] [default={left,right}, before=\blank, after=\blank\noindentation] \definelines [origverse] [before=\startVerseIndent, after=\stopVerseIndent, keeptogether=paragraph] \startdocument \dorecurse{34}{prose\par} \startorigverse vvvvvvvvvvvvvvvvvvvvvvv vvvvvvvvvvv vvvvvvvvvvvvvvvvvv vvvvvvvv vvvvvvvvvvvvvvvvvvvvvvvvvvv vvvvvvvvvvvvvvvv vvvvvvvvvvvvvvvvvvvvvvvvvvvvv \stoporigverse \dorecurse{38}{prose\par} \startorigverse vvvvvvvvvvvvvvvvvvvvvvv vvvvvvvvvvv vvvvvvvvvvvvvvvvvv vvvvvvvv vvvvvvvvvvvvvvvvvvvvvvvvvvv vvvvvvvvvvvvvvvv vvvvvvvvvvvvvvvvvvvvvvvvvvvvv \stoporigverse prose \stopdocument %%%% end example 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 ___________________________________________________________________________________