Re: [NTG-context] \placefigure[left] again!

2003-08-14 Thread Bill McClain
On Tue, 12 Aug 2003 15:31:44 +0100
"Duncan Hothersall" <[EMAIL PROTECTED]> wrote:

> Interestingly, it remains broken even if the \bf isn't there, just the
> open and close braces. So presumably this is something to do with the
> expansion of what comes after the \placefigure?

I ran into this also and wrote:

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

To which Hans replied:

> right, this is a known weakness: if you start a par with a \command,
> you may end up with yes/no indentation or some everypar interference
> (can for instance be due to the fact that the command can start a
> group and aftergroup things can be messed up), your \strut solution is
> ok (\indent\ noindent or \dontleavehmode is also ok), since they start
> the paragraph

So begin your text with:

\strut {\bf }

or one of the other commands. \strut is a zero-width character.

-Bill
-- 
Sattre PressThe King in Yellow
http://sattre-press.com/ by Robert W. Chambers
[EMAIL PROTECTED] http://kiy.sattre-press.com/ 
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \placefigure[left] again!

2003-08-14 Thread Duncan Hothersall
I'm having another problem with \placefigure[left] and this time I'm pretty
sure I can't solve it myself.

I'm using ConTeXt ver 2003.7.21 on a TeXlive base with pdfetex
3.14159-1.00b-pretest-20020211-2.1 (Web2C 7.3.7).

The following source overlaps the text on top of the graphic rather than
wrapping it around:

--ConTeXt start--
\setupoutput[pdftex]\setuppapersize[A4][A4]
\useexternalfigure[HWUnodic][hwu-bk-nodic][width=9mm]
\setupfloats[spacebefore=,spaceafter=]
\starttext
\placefigure[left]{none}{\externalfigure[HWUnodic]}
{\bf Do not use a dictionary. You do not need to know the meaning of every
word to do this task.}

\stoptext
--ConTeXt end--

If I remove the {\bf and the closing } then the graphic displays properly.
If I add a \par before the closing } it works properly too. However, since
I'm generating the ConTeXt code from XML, I can't do either of those
work-arounds.

Interestingly, it remains broken even if the \bf isn't there, just the open
and close braces. So presumably this is something to do with the expansion
of what comes after the \placefigure?

Is this a bug?

I have attached the graphic in case people are able to test this for
themselves.

Many thanks,

Duncan
[EMAIL PROTECTED]


hwu-bk-nodic.pdf
Description: Adobe PDF document


RE: [NTG-context] \placefigure[left] again!

2003-08-12 Thread Duncan Hothersall
Bill wrote:

> So begin your text with:
>
> \strut {\bf }
>
> or one of the other commands. \strut is a zero-width character.

Excellent, thanks. I had experimented with just {}, and even \,\! but the
problem remained. This solves it, thanks a lot.

Duncan
[EMAIL PROTECTED]

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context