On 08/30/2017 06:07 PM, Fabrice Couvreur wrote:
> Hi Aditya,
> I tried :
> [...]
> to have my text wrapped around the ornament as in the figure but it
> does not work.
Hi Fabrice,
sorry if I’m missing something, but I wonder whether the next sample is
what you intend.
\definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784] alternative=serried, % text wrapped
\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=round,
]
\definefloat
[recipe]
[figure]
\setupfloat
[recipe]
[default={right,none}]
\showframe
\starttext
\placerecipe{}
{\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}}
\input zapf
\stoptext
Just in case it helps,
Pablo
--
http://www.ousia.tk
____________________________________________________________ _______________________
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
____________________________________________________________ _______________________