From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/51681 Path: news.gmane.org!not-for-mail From: Jos van Gisbergen Newsgroups: gmane.comp.tex.context Subject: Re: placefigure[right] draws figures inside framed text (Willi Egger) Date: Wed, 8 Jul 2009 15:01:20 -0700 (PDT) Message-ID: <896249.10082.qm@web30004.mail.mud.yahoo.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0285218983==" X-Trace: ger.gmane.org 1247090559 20682 80.91.229.12 (8 Jul 2009 22:02:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Jul 2009 22:02:39 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 09 00:02:32 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 1MOfDj-0005kD-Bn for gctc-ntg-context-518@m.gmane.org; Thu, 09 Jul 2009 00:02:31 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EC6E51FB60; Thu, 9 Jul 2009 00:02: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 25063-01; Thu, 9 Jul 2009 00:01:34 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8F8F31FADC; Thu, 9 Jul 2009 00:01:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 356771FADC for ; Thu, 9 Jul 2009 00:01:33 +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 13803-06 for ; Thu, 9 Jul 2009 00:01:23 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by ronja.ntg.nl (Postfix) with ESMTP id DF1551FA2B for ; Thu, 9 Jul 2009 00:01:23 +0200 (CEST) Original-Received: from web30004.mail.mud.yahoo.com (web30004.mail.mud.yahoo.com [209.191.69.21]) by filter3-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with SMTP id n67MKOvN024057 for ; Wed, 8 Jul 2009 00:20:25 +0200 Original-Received: (qmail 52721 invoked by uid 60001); 8 Jul 2009 22:01:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1247090480; bh=P0mby3vi5XuxKeNayTMBngV61rNb6G2r/0w/3y9atJA=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=dza0M10jq6G3HCzbIp3sYJWH6rUM5LpegdLDyyoxYZw8jhjMNOOFsDF9hZEThD/9pkHDOrdqhtI9NqToz56jBH7j2PFhWeaUv7H6SuPD8M2bvsF+WGJZlma7C48daktvTSmeQ8exVWYZgqoWbNSa6MIsJ+PfSH5SyFiCDaqF9Hk= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=ifbcq1ftpUJfMX1dnr3m6lZOiRHDgbLpiLcV5lNgSqruxZI5piwmeZuEkK52c4dONG3O1drRXDUe1XrOfB6AIj4P49YZiTOAe/TFGcoyo9vwd7mEVKu9JLP7JA1tdwYdbt+EFQQRCI/MPNoVyngyfHCYY/BkIQct6HrMQaPItO0=; X-YMail-OSG: rLeaBZUVM1mXOJUcwwT8cjo6A2.SEGyTMTwJTLIJScJGqnuAqV4I5U1YfeKYS1i8rPgYu6iDGWxPKWtD5VacDQR5Y6hwskgQ7ZAdUWcKd2PUVW8HawnnGSTReAyIxGRUwFVXI9I6MVRw3O3fwBbkYtqLPRxem.iOgob6_Bz98.8qXuvFk0bzsKzotKq0Y6jooi4mz8kAScExVGkZ2PSpRDMiCJL_JxUinO0xLuxN2Z0z0mStArepjf9I1m8hKSihBPUcsEkejRALDry346liD2UIS_4N.Qesupche7JChkkrrRhYVungdEp4wLwGMVgMvODxMBn5OSIKU9cPWsfPwHKMn0WCzwzxs.y5RRo- Original-Received: from [84.81.22.73] by web30004.mail.mud.yahoo.com via HTTP; Wed, 08 Jul 2009 15:01:20 PDT X-Mailer: YahooMailRC/1358.21 YahooMailWebService/0.7.289.15 In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.191.69.21; country=US; region=CA; city=Sunnyvale; postalcode=94089; latitude=37.4249; longitude=-122.0074; metrocode=807; areacode=408; http://maps.google.com/maps?q=37.4249,-122.0074&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 257854072 - 9d071bec1f1a - 20090709 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:51681 Archived-At: --===============0285218983== Content-Type: multipart/alternative; boundary="0-1864020288-1247090480=:10082" --0-1864020288-1247090480=:10082 Content-Type: text/plain; charset=us-ascii Hello Willi, Thanks for your answer. Your suggestion works ... if I would be free to choose the framed text to be 0.5 textwidth. However, the framed text is source code and I do need the entire textwidth because otherwise I'm going to get line wraps and that'll make things look ugly. I expected placefigure[right] to be clever enough to see that there is no room beside the framed text, and either place the figure above it or beneath it. My current workaround is to put the placefigure[right] macro earlier in the flow of text if possible, or use placefigure[force]. Regards, Jos ________________________________ Message: 4 Date: Wed, 8 Jul 2009 16:44:11 +0200 From: Willi Egger Subject: Re: [NTG-context] placefigure[right] draws figures inside framed text To: mailing list for ConTeXt users Message-ID: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Hi, use \framedtext[width=.5\textwidth]{...}. Framed text breaks over the lines. Do not use a \vbox Willi On Jul 8, 2009, at 1:54 PM, Jos van Gisbergen wrote: > Hello, > > I'm using framed text to display verbatim sourse code. The frame > should use > the entire textwidth, so I use width=broad. > A problem occurs when I use a figure placed at the right side of > the page, > before a framed text section: the figure is drawn *inside* the frame. > With non-framed text everything works fine. > > I include an example. It consists of a d.tex file and METAPOST file > a.mp. To reproduce the problem, first convert a.mp to a-1.pdf using > the mptopdf utility. Then texexec --pdf d.tex --0-1864020288-1247090480=:10082 Content-Type: text/html; charset=us-ascii
Hello Willi,

Thanks for your answer.
Your suggestion works ... if I would be free to choose the framed text to be 0.5
textwidth. However, the framed text is source code and I do need the entire textwidth
because otherwise I'm going to get line wraps and that'll make things look ugly.
I expected  placefigure[right] to be clever enough to see that there is no room
beside the framed text, and either place the figure above it or beneath it.
My current workaround is to put the placefigure[right] macro earlier in the flow
of text if possible, or use placefigure[force].

Regards,

Jos



Message: 4
Date: Wed, 8 Jul 2009 16:44:11 +0200
From: Willi Egger <w.egger@boede.nl>
Subject: Re: [NTG-context] placefigure[right] draws figures inside
    framed    text
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Message-ID: <C9D22320-B2B1-4A77-B38C-6DD553EC2ED0@boede.nl>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

Hi,

use \framedtext[width=.5\textwidth]{...}. Framed text breaks over the 
lines. Do not use a \vbox

Willi

On Jul 8, 2009, at 1:54 PM, Jos van Gisbergen wrote:

> Hello,
>
> I'm using framed text to display verbatim sourse code. The frame 
> should use
> the entire textwidth, so I use width=broad.
> A problem occurs when I use a figure placed at the right side of 
> the page,
> before a framed text section: the figure is drawn *inside* the frame.
> With non-framed text everything works fine.
>
> I include an example. It consists of a d.tex file and METAPOST file
> a.mp. To reproduce the problem, first convert a.mp to a-1.pdf using
> the mptopdf utility. Then texexec --pdf d.tex


--0-1864020288-1247090480=:10082-- --===============0285218983== 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 ___________________________________________________________________________________ --===============0285218983==--