Only to show better how I would like text and images placed on the page.

\definelayer  [figure][width=\overlaywidth,height=\overlayheight]
\defineoverlay[figure][{\directsetup{figure}\tightlayer[figure]}]
\setupcolors[state=start]
\setupbackgrounds[page][background=figure]


\starttext

\dorecurse{4}{\input knuth}

\startsetups figure
\setlayerframed[figure][x=.3\layerwidth,y=.2\layerheight]{\externalfigure[cow][width=3cm,height=4cm]}
\setlayerframed[figure][x=.55\layerwidth,y=.4\layerheight]{\externalfigure[cow][width=3cm]}
\setlayerframed[figure][x=.4\layerwidth,y=.6\layerheight]{\externalfigure[cow][width=2cm,height=4cm]}
\stopsetups

\stoptext


2009/5/12 luigi scarso <luigi.sca...@gmail.com>:
>
>
> On Tue, May 12, 2009 at 11:22 AM, Piotr Kopszak <kops...@gmail.com> wrote:
>>
>> Dear all,
>>
>> I am close to give up, but maybe there is a solution... I have a book
>> to typeset literally peppered with hundreds of little drawings which
>> are supposed to appear irregularly surrounded by text flowing around
>> them on all sides.
>> --------------------------------
>> |xxxxxxxxxxxxxxxxxxxxxx |
>> |xxxxx-----xxxxxxxxxxxxxx|
>> |xxxxx|     |xxxxxx----xxxx |
>> |xxxxx|__|xxxxxx|     |xxxx|
>> |xxxxxxxxxxxxxx |__|xxxx|
>> |xxxxxxxxxxxxxxxxxxxxxx|
>> --------------------------------
>>
>> I naively imagine that should not be that hard to implement ;) Since
>> we already have overlays it's no problem to place images in arbitrary
>> places. It only remains to drill white holes in the text to make room
>> for them.  What about such procedure:
>>
>> 1. While building the line TeX checks if there is any overlay ahead.
>> 2 if so, it puts empty hbox of the overlay width when it reaches
>> necessary distance from the edge.
>> 3. and does so for the number of lines which equal overlay height.
>>
>> Of course that  leaves aside the problem of justification and without
>> justification such page would probably look very ugly (I dare not to
>> think if hz optimization, which I really got used to, would still
>> work).
>> Is there still hope I could stay with ConTeXt this time as well?
>>
>> Many thanks for any ideas in advance
>
> can you post a little example ?
> --
> luigi
>
>
> ___________________________________________________________________________________
> 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://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
>
>



-- 
http://okle.pl
___________________________________________________________________________________
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to