ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Bill McClain <wmcclain@salamander.com>
Cc: ntg-context@ntg.nl
Subject: Re: Flowing text around a figure
Date: Tue, 21 May 2002 08:24:20 -0500	[thread overview]
Message-ID: <20020521082420.685b8a83.wmcclain@salamander.com> (raw)
In-Reply-To: <5.1.0.14.1.20020521085253.0405eb28@server-1>

On Tue, 21 May 2002 08:53:23 +0200
Hans Hagen <pragma@wxs.nl> wrote:

> can you make me a minimal file that shows the problem?

I've found that it has to do with the content of my text. Any paragraph
beginning with a block does not flow properly. The best workaround I
have found is to insert a \strut at the beginning of the text where it
starts with a block.

Here is a sample result (37k): 
    http://home.salamander.com/~wmcclain/example1.pdf

Here is the graphic (28k):
    http://home.salamander.com/~wmcclain/test-a.png

And this is the source:

* * *

\useexternalfigure[initial-a][test-a][type=png, height=50pt, width=50pt]

\starttext 

% Good.
\placefigure[left]{none}{\externalfigure[initial-a]}
Now is the time for all good men. \input tufte
\blank

% No good. Text begins with a block
\placefigure[left]{none}{\externalfigure[initial-a]}
{\sc Now is the time for all good men.} \input tufte
\blank

% Good. Text begins with a character.
\placefigure[left]{none}{\externalfigure[initial-a]}
x {\sc Now is the time for all good men.} \input tufte
\blank

% No good. Any block is a problem
\placefigure[left]{none}{\externalfigure[initial-a]}
{Now is the time for all good men.} \input tufte
\blank

% Good. Workaround: begin text with zero-width strut.
\placefigure[left]{none}{\externalfigure[initial-a]}
\strut {\sc Now is the time for all good men.} \input tufte

\stoptext

* * *

-Bill
-- 
Sattre Press                                The King in Yellow
http://sattre-press.com/                 by Robert W. Chambers
info@sattre-press.com             http://kiy.sattre-press.com/ 


  reply	other threads:[~2002-05-21 13:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-20 21:49 Bill McClain
2002-05-21  6:53 ` Hans Hagen
2002-05-21 13:24   ` Bill McClain [this message]
2002-05-27 20:35     ` Hans Hagen
2002-05-21 10:06 ` Giuseppe Bilotta

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=20020521082420.685b8a83.wmcclain@salamander.com \
    --to=wmcclain@salamander.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).