From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/50312 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: The ultimate (?) float problem Date: Tue, 12 May 2009 12:28:40 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1722295757==" X-Trace: ger.gmane.org 1242124180 16128 80.91.229.12 (12 May 2009 10:29:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 May 2009 10:29:40 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue May 12 12:29:30 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 1M3pEo-000758-6Q for gctc-ntg-context-518@m.gmane.org; Tue, 12 May 2009 12:29:30 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 08F9A1FF17; Tue, 12 May 2009 12:29:27 +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 12856-02; Tue, 12 May 2009 12:28:53 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 34BBF1FE59; Tue, 12 May 2009 12:28:53 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E88811FE59 for ; Tue, 12 May 2009 12:28:50 +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 12854-02-2 for ; Tue, 12 May 2009 12:28:41 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by ronja.ntg.nl (Postfix) with ESMTP id 29DDD1FADB for ; Tue, 12 May 2009 12:28:41 +0200 (CEST) Original-Received: from ey-out-1920.google.com (ey-out-1920.google.com [74.125.78.146]) by filter1-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n4CASenH009205 for ; Tue, 12 May 2009 12:28:40 +0200 Original-Received: by ey-out-1920.google.com with SMTP id 4so915941eyg.38 for ; Tue, 12 May 2009 03:28:40 -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; bh=HnEz14vHMK9Hi0UTC1F7dHCgqi4sb9vYFqfQSpm+eAk=; b=LbxnWzCsCKqqTFqtIYlm3413zia4YZEy3x3DfJMHaXuErxL+t0TBdXkyqlYoqIvIMF Df/KLn4zov5f9CeLP8j2wlgv41ZbQb6mWMX8R3vpjMMs5DNGaZoP3pObqyhgoSke6t1+ S2lZQhNyVZK2KXIKmuCweKSF2X6cmUFvmTGsA= 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; b=KVaD7C1hJg/Bgd8NKi73BZ8y0LsFyX4xt7LzUCOFWGz0zysKIjh7PLAbtFlXU77SF8 GTqZQi7ouUne2tp/QAAZEwEQ3Pzb/V43F4WS96My5gGSqh+EDsgMuOVxjV+3aiujc3SE 0Zkk7U00JOLyq3Sft5vkYXf/HqW+wQjDkRgco= Original-Received: by 10.216.30.81 with SMTP id j59mr3924898wea.50.1242124120146; Tue, 12 May 2009 03:28:40 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.78.146; 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: 223741266 - b62617c36188 - 20090512 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:50312 Archived-At: --===============1722295757== Content-Type: multipart/alternative; boundary=0016e6dd89f5f2c3400469b48e2f --0016e6dd89f5f2c3400469b48e2f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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| |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 --0016e6dd89f5f2c3400469b48e2f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Tue, May 12, 2009 at 11:22 AM, Piotr = Kopszak <kopszak@= 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| =C2=A0 =C2=A0 |xxxxxx----xxxx |
|xxxxx|__|xxxxxx| =C2=A0 =C2=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. =C2=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 =C2=A0leaves aside the problem of justification and without<= br> 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 ?
--
lui= gi

--0016e6dd89f5f2c3400469b48e2f-- --===============1722295757== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1722295757==--