From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/50320 Path: news.gmane.org!not-for-mail From: Piotr Kopszak Newsgroups: gmane.comp.tex.context Subject: Re: The ultimate (?) float problem Date: Tue, 12 May 2009 13:28:25 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1242127789 27367 80.91.229.12 (12 May 2009 11:29:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 May 2009 11:29:49 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue May 12 13:29:40 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1M3qB1-0007kx-KF for gctc-ntg-context-518@m.gmane.org; Tue, 12 May 2009 13:29:39 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 51DF21FEDA; Tue, 12 May 2009 13:29:38 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17805-01-7; Tue, 12 May 2009 13:28:47 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 978081FEDD; Tue, 12 May 2009 13:28:47 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 135D61FEDD for ; Tue, 12 May 2009 13:28:46 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 16892-03-2 for ; Tue, 12 May 2009 13:28:27 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by ronja.ntg.nl (Postfix) with ESMTP id 87CCF1FEDA for ; Tue, 12 May 2009 13:28:27 +0200 (CEST) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by filter3-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n4CBSQZx007357 for ; Tue, 12 May 2009 13:28:26 +0200 Original-Received: by fg-out-1718.google.com with SMTP id e21so1128800fga.8 for ; Tue, 12 May 2009 04:28:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=Huj4WTPQtVDm9QWT2FnwqKfDEKOS2R7V3B3+BpnWwM8=; b=gDs7sWGMSvvGzdwIBqg89vSiHK8q60v07r0KV7lNA4nzpZe83OszE/nilVrmHdgr2x HabIUKoUItstcPO8mhM2RnmNE8BuXvz5mmjarkrNVvyekDlTuCahZ2LM02SUwPcbc/iM 3Si9mI/lr6X5dNip0J9jS2/y4dq9B2n1SsoJM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=HWsLIsERwYjAuBOfImeWnj59QRT/KWl299G3xzdeg39KWS2ZHnUMyaaggUc3ZfSrag 94yU75tWIY0ZMae/EfJYGzJ4LkF5X6uxcV/pZMMA2UESugrBmNN4txBG26l+lAMQJNke SHmNDQ1DXXJDgXhQsZ4o7raZTbgLK+IGjmiXw= Original-Received: by 10.86.92.9 with SMTP id p9mr7643799fgb.15.1242127705990; Tue, 12 May 2009 04:28:25 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=72.14.220.152; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 223792734 - 1f058f1313e2 - 20090512 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:50320 Archived-At: Only to show better how I would like text and images placed on the page. \definelayer [figure][width=3D\overlaywidth,height=3D\overlayheight] \defineoverlay[figure][{\directsetup{figure}\tightlayer[figure]}] \setupcolors[state=3Dstart] \setupbackgrounds[page][background=3Dfigure] \starttext \dorecurse{4}{\input knuth} \startsetups figure \setlayerframed[figure][x=3D.3\layerwidth,y=3D.2\layerheight]{\externalfigu= re[cow][width=3D3cm,height=3D4cm]} \setlayerframed[figure][x=3D.55\layerwidth,y=3D.4\layerheight]{\externalfig= ure[cow][width=3D3cm]} \setlayerframed[figure][x=3D.4\layerwidth,y=3D.6\layerheight]{\externalfigu= re[cow][width=3D2cm,height=3D4cm]} \stopsetups \stoptext 2009/5/12 luigi scarso : > > > On Tue, May 12, 2009 at 11:22 AM, Piotr Kopszak 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| =A0 =A0 |xxxxxx----xxxx | >> |xxxxx|__|xxxxxx| =A0 =A0 |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. =A0What 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 =A0leaves 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 =A0: http://www.pragma-ade.nl / http://tex.aanhet.net > archive =A0: https://foundry.supelec.fr/projects/contextrev/ > wiki =A0 =A0 : http://contextgarden.net > _________________________________________________________________________= __________ > > -- = http://okle.pl ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________