From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/51676 Path: news.gmane.org!not-for-mail From: Willi Egger Newsgroups: gmane.comp.tex.context Subject: Re: placefigure[right] draws figures inside framed text Date: Wed, 8 Jul 2009 16:44:11 +0200 Message-ID: References: <280902.57435.qm@web30008.mail.mud.yahoo.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1247064325 20736 80.91.229.12 (8 Jul 2009 14:45:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Jul 2009 14:45:25 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 08 16:45:18 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 1MOYOb-0008W7-SM for gctc-ntg-context-518@m.gmane.org; Wed, 08 Jul 2009 16:45:17 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 580E81FB3C; Wed, 8 Jul 2009 16:45:17 +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 22481-08; Wed, 8 Jul 2009 16:44:34 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 342C51FB30; Wed, 8 Jul 2009 16:44:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E25CF1FB30 for ; Wed, 8 Jul 2009 16:44:31 +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 23074-08 for ; Wed, 8 Jul 2009 16:44:17 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by ronja.ntg.nl (Postfix) with ESMTP id 691A11FADB for ; Wed, 8 Jul 2009 16:44:17 +0200 (CEST) Original-Received: from mail.7values.nl (pluto.digitpaint.nl [83.98.197.3]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5) with ESMTP id n68EiGWR006279 for ; Wed, 8 Jul 2009 16:44:16 +0200 Original-Received: from localhost (dp5.intern.digitpaint.nl [192.168.0.7]) by mail.7values.nl (Postfix) with ESMTP id 96C8F7D8E for ; Wed, 8 Jul 2009 16:44:16 +0200 (CEST) Original-Received: from mail.7values.nl ([192.168.0.1]) by localhost (dp5.digitpaint.nl [192.168.0.7]) (amavisd-new, port 10024) with LMTP id C5NWdqSkORtB for ; Wed, 8 Jul 2009 16:44:15 +0200 (CEST) Original-Received: from [192.168.0.198] (a83-161-249-79.adsl.xs4all.nl [83.161.249.79]) by mail.7values.nl (Postfix) with ESMTP id 626277D8D for ; Wed, 8 Jul 2009 16:44:16 +0200 (CEST) In-Reply-To: <280902.57435.qm@web30008.mail.mud.yahoo.com> X-Mailer: Apple Mail (2.753.1) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=83.98.197.3; country=NL; region=07; city=Amsterdam; latitude=52.3500; longitude=4.9167; http://maps.google.com/maps?q=52.3500,4.9167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 257672946 - caee60344ded - 20090708 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:51676 Archived-At: 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 > > ------------ d.tex ------------- > \starttext > > Whran crmpqcayng lqyruas crnaqynyng cralls ahqa yncludra fyxrad > shqpras, > rvrarcrnsarqynas mqy yssura qs q crnsraqurancra rf hyrarqrchy- > rvrarlqp rulras > brayng qpplyrad braawraran such fyxrad shqpras. An rvrarcrnsarqyna > rf ahys aypra > mygha bra rrasrlvrad by rralqxyng srmra rf ahra hyrarqrchy-rvrarlqp > crnsarqynas > ahqa qrra cqusyng ya, qnd fyllyng up ahra rrasulayng gqps > braawraran ahra > fyxrad shqpras. Syncra ahra crmpqcayrn rangynra cqnnra prarfrrm > ahys kynd rf > rvrarcrnsarqyna rrasrluayrn, q wrrkqrrund ys prrprsrad yn ahra frrm rf > > \placefigure > [right][fig:nano] > {nano} > {\externalfigure[a-1][width=0.4\textwidth]} > > Whran crmpqcayng lqyruas crnaqynyng cralls ahqa yncludra fyxrad > shqpras, > rvrarcrnsarqynas mqy yssura qs q crnsraqurancra rf hyrarqrchy- > rvrarlqp rulras > brayng qpplyrad braawraran such fyxrad shqpras. An rvrarcrnsarqyna > rf ahys aypra > mygha bra rrasrlvrad by rralqxyng srmra rf ahra hyrarqrchy-rvrarlqp > crnsarqynas > ahqa qrra cqusyng ya, qnd fyllyng up ahra rrasulayng gqps > braawraran ahra > fyxrad shqpras. Syncra ahra crmpqcayrn rangynra cqnnra prarfrrm > ahys kynd rf > rvrarcrnsarqyna rrasrluayrn, q wrrkqrrund ys prrprsrad yn ahra frrm rf > > \placefigure > [right][fig:pico] > {pico} > {\externalfigure[a-1][width=0.4\textwidth]} > > \framed[width=broad]{ > \vbox{ > \starttyping > > Whran crmpqcayng lqyruas crnaqynyng cralls ahqa yncludra fyxrad > shqpras, rvrarcrnsarqynas mqy yssura qs q crnsraqurancra rf > hyrarqrchy-rvrarlqp rulras brayng qpplyrad braawraran such > fyxrad shqpras. An rvrarcrnsarqyna rf ahys aypra mygha bra > rrasrlvrad by rralqxyng srmra rf ahra hyrarqrchy-rvrarlqp > crnsarqynas ahqa qrra cqusyng ya, qnd fyllyng up ahra > rrasulayng gqps braawraran ahra fyxrad shqpras. Syncra ahra > crmpqcayrn rangynra cqnnra prarfrrm ahys kynd rf rvrarcrnsarqyna > rrasrluayrn, q wrrkqrrund ys prrprsrad yn ahra frrm rf > > \stoptyping > }} > \stoptext > > ------- a.mp -------- > beginfig(1); > fill(0,0)..(0,3cm)..(3cm,1cm)..(1cm,5cm)..cycle withcolor green; > endfig;end; > > > ______________________________________________________________________ > _____________ > 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 > ______________________________________________________________________ > _____________ ___________________________________________________________________________________ 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 ___________________________________________________________________________________