Hi Aditya, I tried :
\defineframedtext [FramedText] [ offset=0.6em, toffset=\lineheight, background=color, backgroundcolor=MyColorA, foregroundstyle={\switchtobodyfont[10pt]}, align=verytolerant, alternative=serried, % text wrapped frame=off, corner=00, ] to have my text wrapped around the ornament as in the figure but it does not work. Thanks Fabrice 2017-08-23 1:20 GMT+02:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>: > Sorry 'corner=00' ! > > 2017-08-23 1:01 GMT+02:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>: > >> Hi Aditya, >> Sorry I forgot to attach the image of what I want to do. I know corner=number >> parameter of framed and framed text but I wanted to do it with Metafun. >> Thank you >> Fabrice >> >> 2017-08-23 0:50 GMT+02:00 Aditya Mahajan <adit...@umich.edu>: >> >>> On Wed, 23 Aug 2017, Fabrice Couvreur wrote: >>> >>> Hello, >>>> I would like to have three corners rounded as in the figure. >>>> >>> >>> Not sure if you had simplified your example or not. But if all you want >>> is a rounded corner, you can consider using corner=number parameter of >>> framed and framed text: >>> >>> http://wiki.contextgarden.net/Framed#Rounded_Corners >>> >>> Here is an example (that does not use metapost). >>> >>> \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, >>> foregroundcolor=white, >>> background=color, >>> backgroundcolor=MyColorB, >>> ] >>> >>> \defineframedtext >>> [FramedText] >>> [ >>> offset=0.6em, >>> toffset=\lineheight, >>> background=color, >>> backgroundcolor=MyColorA, >>> foregroundstyle={\switchtobodyfont[10pt]}, >>> align=verytolerant, >>> frame=off, >>> corner=01, >>> ] >>> >>> >>> \showframe >>> \starttext >>> >>> \FrameTitle{Info}{\startFramedText[width=10cm] >>> L'équivalent vingt pieds (EVP) est une unité de mesure de >>> conteneurs >>> (de longueur courante 20 pieds, soit environ \unit{6,1 meter}). >>> >>> 1 EVP représente environ \unit{38,5 cubic meter}. >>> \stopFramedText} >>> >>> \stoptext >>> ____________________________________________________________ >>> _______________________ >>> If your question is of interest to others as well, please add an entry >>> to the Wiki! >>> >>> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/list >>> info/ntg-context >>> webpage : http://www.pragma-ade.nl / http://context.aanhet.net >>> archive : https://bitbucket.org/phg/context-mirror/commits/ >>> wiki : http://contextgarden.net >>> ____________________________________________________________ >>> _______________________ >>> >> >> >
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________