[NTG-context] framed float with offset

Sanjoy Mahajan sanjoy at olin.edu
Sun Jan 2 02:53:59 CET 2011


Peter,

> \placefigure[right]{This is ok!}{\framed[offset=20pt,
>     background=color,
>     backgroundcolor=lightgray]{\externalfigure[sample/cow.pdf][scale=500]}}
> \input knuth


Ah, I had tried almost that recipe (of wrapping the \externalfigure in a
\framed) but had used backgroundoffset and frameoffset.  Yours works
perfectly.  I wikified the recipe at

<http://wiki.contextgarden.net/Using_Graphics>

-Sanjoy

`Until lions have their historians, tales of the hunt shall always
 glorify the hunters.'  --African Proverb


More information about the ntg-context mailing list