From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/35628 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Boxed items don't like sidefloats Date: Tue, 31 Jul 2007 15:34:38 +0200 Message-ID: <20070731153438.66bafc70.schuster.wolfgang@googlemail.com> References: <735155465.20070731131427@iol.it> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1185888916 10865 80.91.229.12 (31 Jul 2007 13:35:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jul 2007 13:35:16 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 31 15:35:05 2007 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 1IFrsO-00039A-Bx for gctc-ntg-context-518@m.gmane.org; Tue, 31 Jul 2007 15:35:04 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B781D1FF7A; Tue, 31 Jul 2007 15:34:59 +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 08599-02-2; Tue, 31 Jul 2007 15:34:49 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2BBC31FF3B; Tue, 31 Jul 2007 15:34:49 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C1BEB1FEEE for ; Tue, 31 Jul 2007 15:34:47 +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 08599-02 for ; Tue, 31 Jul 2007 15:34:43 +0200 (CEST) Original-Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by ronja.ntg.nl (Postfix) with ESMTP id CCDD31FF3B for ; Tue, 31 Jul 2007 15:34:43 +0200 (CEST) Original-Received: by nf-out-0910.google.com with SMTP id b2so215000nfb for ; Tue, 31 Jul 2007 06:34:43 -0700 (PDT) Original-Received: by 10.86.59.3 with SMTP id h3mr1481950fga.1185888883489; Tue, 31 Jul 2007 06:34:43 -0700 (PDT) Original-Received: from eve ( [194.94.240.58]) by mx.google.com with ESMTPS id f19sm2839181fka.2007.07.31.06.34.42 (version=SSLv3 cipher=OTHER); Tue, 31 Jul 2007 06:34:42 -0700 (PDT) In-Reply-To: <735155465.20070731131427@iol.it> X-Mailer: Sylpheed 2.4.4 (GTK+ 2.10.13; i686-pc-mingw32) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:35628 Archived-At: On Tue, 31 Jul 2007 13:14:27 +0200 Giuseppe Bilotta wrote: > Hello all, > > here's a test document: > [test document] > > As you may notice, items think the placefigure refers to all > of them, so that if a particular item is bigger than the > figure height, it will wrap correctly around the > (inexistent) box, otherwise it will just side it. > > Interesting, the same thing does *not* happen when not going > through a box, but typesetting things directly in the page. > However, for my application I need to typeset the sidefloat > and the itemization in a box, so I hit the bug ... > > Suggestions? > > -- > Giuseppe "Oblomov" Bilotta Hi Giuseppe, you can use ConTeXt's stream mechanism. \setuppagenumbering[alternative=doublesided] \usemodule[streams] \definestreamlayer[giuseppe][width=\textwidth] \newbox\giuseppe \starttext \startstreamlayer[giuseppe] \placefigure [outer,none,fit] {} {\framed[width=.2\hsize,height=.2\hsize,offset=none]{}} \startitemize \item some test \item \input knuth \item \input tufte \stopitemize \stopstreamlayer \vbox{\placestreamlayer[giuseppe]} \page \startstreamlayer[giuseppe] \placefigure [outer,none,fit] {} {\framed[width=.2\hsize,height=.2\hsize,offset=none]{}} \startitemize \item some test \item \input knuth \item \input tufte \stopitemize \stopstreamlayer \vbox{\placestreamlayer[giuseppe]} \stoptext Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________