Hi all, Ah, found the solution in TextBackground. At here: https://www.contextgarden.net/TextBackground https://www.contextgarden.net/TextBackground Can I have a 2-segment (2 vboxes) TextBackground (presumably with 2 TextBackgrounds, zero vspace between them)? For the top segment, I want rounded corners only for top corners (corner=03 with \framed). Seems I really should dig into MetaFun and TextBackground. Looks really fun and useful. Sorry for the noise. Am a little carried away exploring the Garden. :-P Regards Jon
On Aug 21, 2019, at 9:25 PM, Jon Wong
wrote: Hi all,
Sorry, my solution didn’t work.
My purpose of using \startnarrower is to have some paragraphs of text inside the \framed. Unfortunately, it seems \framed doesn’t take paragraphs.
\startframedtext doesn’t have as many border options as \framed.
Should I use overlays? Or layers? It seems layers require absolutely positioning, and can’t be logically contained inside a \startnarrower?
Regards Jon
On Aug 21, 2019, at 8:53 PM, Jon Wong
wrote: Hi all,
I got some progress!
\setupnarrower[left=2cm, right=2cm] % what does middle do, actually? \startnarrower \dontleavehmode\framed[width=local]{testing}
Since this works for left offset: \framed[width=local]{testing} \endnarrower
So, how do I do a gradient background? Yeah, I know I have to dive into MetaPost and MetaFun some time. Is that where the solution is?
Regards Jon
On Aug 21, 2019, at 8:14 PM, Jon Wong
wrote: Hi all,
I want to have a \startnarrower effect. But I also want that segment to have a border (hopefully a gradient background color too!).
I tried:
\startnarrower \framed{testing}
Seems framed doesn’t observe startnarrower commands. \endnarrower
How do I achieve that?
Regards Jon