[NTG-context] startnarrower and framed?

Jon Wong jhannwong at gmail.com
Wed Aug 21 14:53:58 CEST 2019


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 <jhannwong at gmail.com> 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



More information about the ntg-context mailing list