From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/117134 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Aditya Mahajan via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Visual highlighted text with title, mix of enumeration and framedtext Date: Mon, 6 Mar 2023 08:24:17 -0500 (EST) Message-ID: <27626911-985n-7on7-r19p-2377r7320s38@hzvpu.rqh> References: <3723869.kQq0lBPeGt@falbala> <21f46db2-7572-5a45-a0ae-f4d937f9482b@fiee.net> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-1099539338-1678109057=:903119" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6611"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Aditya Mahajan To: Henning Hraban Ramm via ntg-context Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 06 14:24:53 2023 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pZAph-0001Um-U9 for gctc-ntg-context-518@m.gmane-mx.org; Mon, 06 Mar 2023 14:24:53 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 649C33615A5; Mon, 6 Mar 2023 14:24:30 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mehyDSP3iwcO; Mon, 6 Mar 2023 14:24:29 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E86E5361793; Mon, 6 Mar 2023 14:24:28 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A665A36178C for ; Mon, 6 Mar 2023 14:24:27 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uts9p00y6l4d for ; Mon, 6 Mar 2023 14:24:26 +0100 (CET) Received-SPF: Softfail (mailfrom) identity=mailfrom; client-ip=132.206.73.2; helo=orford.cim.mcgill.ca; envelope-from=adityam@umich.edu; receiver= Original-Received: from orford.cim.mcgill.ca (orford.cim.mcgill.ca [132.206.73.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id A9EDD3615A5 for ; Mon, 6 Mar 2023 14:24:25 +0100 (CET) Original-Received: from adi-thinkpad (unknown [45.72.210.64]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: adityam) by orford.cim.mcgill.ca (Postfix) with ESMTPSA id 23B52100017 for ; Mon, 6 Mar 2023 08:24:19 -0500 (EST) In-Reply-To: <21f46db2-7572-5a45-a0ae-f4d937f9482b@fiee.net> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:117134 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1099539338-1678109057=:903119 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE On Mon, 6 Mar 2023, Henning Hraban Ramm via ntg-context wrote: > Am 06.03.23 um 12:19 schrieb Gerion Entrup via ntg-context: > > I want to typeset a "Good to know" section that is visually highlighted > > and can spawn across multiple pages. > >=20 > > In LaTeX this would be possible with the mdframed package. See the > > attached screenshot for an example how it might look like (it is copied > > out of page 4: Definition: Inhomogeneous linear of the mdframed > > documentation: > > http://mirrors.ctan.org/macros/latex/contrib/mdframed/mdframed.pdf) > >=20 > > I have searched in the wiki and found \defineenumeration: > > This is near of that what I need. However I explicitly does not need an > > enumeration (so no number or counter). Also I am not sure if I can set = a > > background and so on. > >=20 > > The other possibility is \defineframedtext. For example this goes much > > in the direction that I want: > > \definecolor[gbackground][s=3D0.98] > > \defineframedtext[gtk][frame=3Don, > > offset=3D5pt, > > background=3Dcolor, > > width=3D0.95\textwidth, > > backgroundcolor=3Dgbackground] > >=20 > > However, there does not seem a possibility to define a title and it > > seems to not work on multiple pages. > >=20 > > Is there a mix of an enumeration and framedtext that can produce > > something like in the attached picture? >=20 > If you don=E2=80=99t need an enumeration, then don=E2=80=99t use one. >=20 > Did you try text backgrounds? > https://wiki.contextgarden.net/TextBackground As an example, see this article that I had written years ago: https://www.tug.org/pracjourn/2006-4/mahajan/ The solution environment there is similar to what you want. Most of the cod= e there should still work with minor changes. Aditya --8323329-1099539338-1678109057=:903119 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cHM6Ly93d3cubnRnLm5sL21haWxtYW4v bGlzdGluZm8vbnRnLWNvbnRleHQKd2VicGFnZSAgOiBodHRwczovL3d3dy5wcmFnbWEtYWRlLm5s IC8gaHR0cDovL2NvbnRleHQuYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHBzOi8vYml0YnVja2V0 Lm9yZy9waGcvY29udGV4dC1taXJyb3IvY29tbWl0cy8Kd2lraSAgICAgOiBodHRwczovL2NvbnRl eHRnYXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --8323329-1099539338-1678109057=:903119--