From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/41883 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: Howto float text around an image on layer (in a frame, inside standardmakeup)? Date: Tue, 24 Jun 2008 09:37:00 +0200 Message-ID: <115224fb0806240037v1fe1738bu2f7cf09dd69d51f7@mail.gmail.com> References: <200806240307.17829.ml@koloro.de> 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: ger.gmane.org 1214293128 11685 80.91.229.12 (24 Jun 2008 07:38:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Jun 2008 07:38:48 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Tue Jun 24 09:39:32 2008 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 1KB37W-0000Df-9v for gctc-ntg-context-518@m.gmane.org; Tue, 24 Jun 2008 09:39:18 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 25BF11FC51; Tue, 24 Jun 2008 09:38: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 20875-03-3; Tue, 24 Jun 2008 09:37:45 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0FA681FC0D; Tue, 24 Jun 2008 09:37:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8FC681FC16 for ; Tue, 24 Jun 2008 09:37:43 +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 21624-01-2 for ; Tue, 24 Jun 2008 09:37:06 +0200 (CEST) Original-Received: from yw-out-1718.google.com (yw-out-1718.google.com [74.125.46.154]) by ronja.ntg.nl (Postfix) with ESMTP id 5F2821FBB9 for ; Tue, 24 Jun 2008 09:37:01 +0200 (CEST) Original-Received: by yw-out-1718.google.com with SMTP id 5so1218790ywm.74 for ; Tue, 24 Jun 2008 00:37:01 -0700 (PDT) Original-Received: by 10.142.162.9 with SMTP id k9mr5018241wfe.211.1214293020335; Tue, 24 Jun 2008 00:37:00 -0700 (PDT) Original-Received: by 10.151.113.9 with HTTP; Tue, 24 Jun 2008 00:37:00 -0700 (PDT) In-Reply-To: <200806240307.17829.ml@koloro.de> Content-Disposition: inline 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:41883 Archived-At: On Tue, Jun 24, 2008 at 3:07 AM, Uwe Koloska wrote: > Hello, > > hopefully this is the last dumb question, cause the CD is nearing it's end an > will be prepared for printing soon ;-) > > > How can I float text around a picture if I place them on a layer? > > What I want to achieve is something like this: > > ppp........ > ppp........ > ........... > > but typeset onto a layer to position it at my will ... Not possible with a layer. > But I can't get the text flow around the graphic. Here is a minimal example: > ------------------------------------------------------------- > \definelayer[test] > > \startbuffer[text] > \placefigure[left,none]{}{\framed[height=1cm]{graphic}} > \input tufte > \stopbuffer > > \setlayerframed[test] > [x=.5\paperwidth,y=2em,location=bottom] > [width=0.8\textwidth,height=0.3\textheight,align=normal] > {\getbuffer[text]} > > \setupbackgrounds[page][background=test] > > \starttext > \startstandardmakeup > \stopstandardmakeup > \stoptext > ------------------------------------------------------------- > > and the result can be seen in the attached PDF. > > The same happens inside a standardmakeup > ------------------------------------------------------------- > \startbuffer[text] > \placefigure[left,none]{}{\framed[height=1cm]{graphic}} > \input tufte > \stopbuffer > > \starttext > \startstandardmakeup > \getbuffer[text] > \stopstandardmakeup > \stoptext > ------------------------------------------------------------- > > and inside a framedtext > ------------------------------------------------------------- > \startbuffer[text] > \placefigure[left,none]{}{\framed[height=1cm]{graphic}} > \input tufte > \stopbuffer > > \starttext > \startframedtext[width=0.8\textwidth] > \getbuffer[text] > \stopframedtext > \stoptext > ------------------------------------------------------------- > > Neither the mailinglist, nor the wiki or the documentation have given me any > clue, what to change or where to look further ... standardmakeup and framedtext use a \vbox and floating text around a image did not work in restricted vertical mode unless you use ConTeXt's stream mechanism, you can find examples in m-streams or in the list archive. > Is there another way to flow text around an image? The image has a fixed > position (top left corner of the text) so it don't has to be a float at all. Do you really need standardmakeup or why do you use it. A alternative for framedtext is textbackground, it is also the better solution in grid mode. \definetextbackground [cover] [frame=on, location=paragraph, background=, leftoffset=.25ex, rightoffset=.25ex, topoffset=.25ex, bottomoffset=.25ex] \starttext \starttextbackground[cover] \getbuffer[text] \stoptextbackground \stoptext Regards 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 ___________________________________________________________________________________