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.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,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 1918224360 for ; Mon, 7 Oct 2024 04:20:33 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 526F3485245 for ; Mon, 7 Oct 2024 04:18:00 +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:mime-version:references:message-id:in-reply-to:from :from:date:date:received:received:received:received:received :received:received:received; s=cgl; t=1728267480; x=1730859481; bh=uXgE3WZXX5k/hPife2dwBnvMIaXCxmuSkpfOshvKxHU=; b=FqV/XGLO1dnc ddF5RxxEn2UqT+jL5wX0NikzX/BYINld+lsrmVsTHWSfFwl37KnX94inFdPwHAM8 SwawNXu3cMqPsoUyUjfmvdpZOXe790j0sQLxuzujsWH46DbbYfdovCX8IEYny9Ne jFuW867BsZXt59Wv/yipFKgpe/48HNs= 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=messagingengine.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 fvPhEzIiYSgR for ; Mon, 7 Oct 2024 04:18:00 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 728FA4850C5 for ; Mon, 7 Oct 2024 04:16:58 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id CB4C7484ACA for ; Mon, 7 Oct 2024 04:16:13 +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 sC9i6PwNOtOH for ; Mon, 7 Oct 2024 04:16:13 +0200 (CEST) Received-SPF: Softfail (mailfrom) identity=mailfrom; client-ip=202.12.124.197; helo=fforwardh-b2-smtp.messagingengine.com; envelope-from=adityam@umich.edu; receiver= X-Greylist: delayed 389 seconds by postgrey-1.36 at cgl.ntg.nl; Mon, 07 Oct 2024 04:16:13 CEST Received: from fforwardh-b2-smtp.messagingengine.com (fforwardh-b2-smtp.messagingengine.com [202.12.124.197]) (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 193CF484AB3 for ; Mon, 7 Oct 2024 04:16:12 +0200 (CEST) Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfforwardh.stl.internal (Postfix) with ESMTP id 0609F174006E for ; Sun, 6 Oct 2024 22:09:41 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Sun, 06 Oct 2024 22:09:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1728266981; x=1728353381; bh=Lnv1DCkjinpIU+fGksQ1SKCDgih5 NsgONLshXp+X0JA=; b=EJUITHz5OifpPyUle1sw6B2vqwBNn/BprPcKrLGMcRup DJStJnHthH5KnPE+lnkpRBOJoET5ZAWOdbb3ITwha1MX9EecehQg+cvzC3FZwpZ+ c6Eqw4QmPb/L0UbpYQevMirF0yYLviTYEFyalX61J9S3pVFiHawlH6UyWoc4OPzi o3tNkuCpz4fPNTrF9qwRFqGXZ0Ym+NSVUsdOe0krVb4+L9pu+M5af8tDQ2+5wu8w ORyBNnV3Ro3U2+UMYMJTs+1kPPm8OEDCIBCNbWUTgOg+QrEDpRuXrrz2RVn5Xtay 7YOtj2eHveRm4r0NpTEzccIaGO3qOTOdwytZBB3aSA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvddvkedgheejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepfffhvffujgfkfhggtgesthdtredttddtvdenucfh rhhomhepteguihhthigrucforghhrghjrghnuceorgguihhthigrmhesuhhmihgthhdrvg guuheqnecuggftrfgrthhtvghrnhepjeefteduheevvdfghfefgeeiieeihedtgedvveev veeftdejvddtvdeilefflefhnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomheprgguihhthigrmhesuhhmihgthhdrvgguuhdpnhgspghrtghpthht ohepuddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepnhhtghdqtghonhhtvgigth esnhhtghdrnhhl X-ME-Proxy: Feedback-ID: i00d8410d:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 6 Oct 2024 22:09:41 -0400 (EDT) Date: Sun, 6 Oct 2024 22:09:40 -0400 (EDT) From: Aditya Mahajan X-X-Sender: adityam@carbonpad.cim.mcgill.ca To: mailing list for ConTeXt users In-Reply-To: <2479782.jE0xQCEvom@falbala> Message-ID: <6r87qn81-42s7-2q35-5oq8-qs32s63690sq@hzvpu.rqh> References: <2625518.Lt9SDvczpP@falbala> <172766869085.1695.14266352853806709031@cgl.ntg.nl> <2479782.jE0xQCEvom@falbala> MIME-Version: 1.0 Message-ID-Hash: BHOQFV3YKYMQS4GRMB65MB73LQYUBEEV X-Message-ID-Hash: BHOQFV3YKYMQS4GRMB65MB73LQYUBEEV X-MailFrom: adityam@umich.edu 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: Draw leftframe to a description 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" Content-Transfer-Encoding: 7bit On Sun, 6 Oct 2024, Gerion Entrup wrote: > I got exactly the same problems like with textbackground (see the stackexchange post for screenshots). I had replied to you on stackexachange, but I think that the mailing list is a better place to discuss this, so I am following up here. Regarding the footnote, what is happening is that text-background extends to the "end of the page". This is from one of my old files where I had encountered a similar issue: %D By default, the textbackground extends till the page boundary. This does %D not look good if a page break occurs when there is not enough material to %D fit in the page. So, we want to limit textbackground till the typeset %D material. This has not been interfaced yet, so I use a low level \TEX\ %D command. \chardef\kindofpagetextareas\plusone Adding the same works in your example: \definetextbackground [leftbartext] [ location=paragraph, mp=mpos:region:leftbar, width=broad, frame=off, framecolor=darkgray, rulethickness=2ex, leftoffset=5ex, rightoffset=2.25ex, topoffset=2.25ex, bottomoffset=2.25ex, background=color, backgroundcolor=lightgray, ] \startuseMPgraphic{mpos:region:leftbar} draw_multi_pars; draw_multi_side; \stopuseMPgraphic \definecolor[lightblue] [0.95(blue,white)] \definetextbackground [blocktext] [leftbartext] [ framecolor=darkblue, backgroundcolor=lightblue, ] \definedescription [excursus] [ text={Excursus}, alternative=top, headstyle=bold, margin=1cm, width=broad, before={\startblocktext}, after={\stopblocktext}, ] \chardef\kindofpagetextareas\plusone \starttext \input ward \startexcursus[title={A Knuth extract}] \input knuth \stopexcursus \input ward \startexcursus[title={A much longer Knuth extract}] \input knuth Sometimes, sentences have footnotes\footnote{Some footnote}. \input knuth \input knuth \stopexcursus \stoptext Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________