ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jos van Gisbergen <trychius@yahoo.com>
To: ntg-context@ntg.nl
Subject: Re: placefigure[right] draws figures inside framed text (Willi Egger)
Date: Wed, 8 Jul 2009 15:01:20 -0700 (PDT)	[thread overview]
Message-ID: <896249.10082.qm@web30004.mail.mud.yahoo.com> (raw)
In-Reply-To: <mailman.1677.1247068070.3589.ntg-context@ntg.nl>


[-- Attachment #1.1: Type: text/plain, Size: 1682 bytes --]

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


      

[-- Attachment #1.2: Type: text/html, Size: 2680 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

           reply	other threads:[~2009-07-08 22:01 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <mailman.1677.1247068070.3589.ntg-context@ntg.nl>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=896249.10082.qm@web30004.mail.mud.yahoo.com \
    --to=trychius@yahoo.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).