[NTG-context] Text wrapped with an ornement

Pablo Rodriguez oinos at gmx.es
Sat Aug 18 13:25:53 CEST 2018


On 08/18/2018 11:11 AM, Fabrice Couvreur wrote:
> Hi Pablo,
> These options are to be added to \defineframedtext [] [] ?
> Without success at home !

Hi Fabrice,

your sample should read:

    \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784]
        \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00]

        \defineornament
            [FrameTitle]
            [preset=lefttop]
            [
              frame=off,
              foregroundstyle=\bfx\ss,
              foregroundcolor=white,
              background=color,
              backgroundcolor=MyColorB,
            ]

        \defineframedtext
          [FramedText]
          [
            offset=0.6em,
            style=\ss,
            toffset=\lineheight,
            background=color,
            backgroundcolor=MyColorA,
            foregroundstyle={\switchtobodyfont[10pt]},
            align={right, broad},
            frame=off,
            corner=round,
            radius=1.5em,
            width=10cm,
          ]

        \showframe

        \starttext

           \FrameTitle{Info}{%
           \startFramedText%
              \input zapf
            \stopFramedText}

        \stoptext

The width option works now, because I didn’t realize that your sample
had it right after the "\startFramedText" command.

I hope it helps now. If anything is not working as you expect, please
explain what should be different.

Pablo
-- 
http://www.ousia.tk


More information about the ntg-context mailing list