ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Paragraph beginning with { doesn't flow around a float
@ 2012-03-04  1:09 Jean-Philippe Rey
  2012-03-05  9:20 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Jean-Philippe Rey @ 2012-03-04  1:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello everybody,

I found a problem with text flowing around a float. As far as I understand the problem, if a paragraph begins with a {, it doesn't flow around a float. Here is a minimal example :

\starttext
\placefigure[left]{}{\framed[width=50mm,height=20mm]{}}

{\bf Lorem} ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus.
Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies
sed, dolor. Cras elementum ultrices diam. Maecenas ligula massa, varius
a, semper congue, euismod non, mi. Proin porttitor, orci nec nonummy
molestie, enim est eleifend mi, non fermentum diam nisl sit amet erat.
Duis semper. Duis arcu massa, scelerisque vitae, consequat in, pretium a,
enim. Pellentesque congue. Ut in risus volutpat libero pharetra tempor.
Cras vestibulum bibendum augue. Praesent egestas leo in pede. Praesent
blandit odio eu enim.
\stoptext


Everything works fine with paragraphs that don't start with a {. I found the following workaround:

\hskip0mm{\bf Lorem} ipsum dolor ...

(\relax doesn't work)

I am using 

ConTeXt  ver: 2011.05.18 18:04 MKIV  fmt: 2011.7.31  int: english/english

It is the same with

ConTeXt  ver: 2011.05.18 18:04 MKII  fmt: 2011.7.31  int: english/english

I didn't see any relevant message in the log file.

It is not really a problem for me as I have found a simple workaround. I thought however that it might be useful to the community to report the problem.

-- 
Jean-Philippe Rey                 Professeur - École Centrale Paris
jean-philippe.rey@ecp.fr          92295 Châtenay-Malabry Cedex - France



___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Paragraph beginning with { doesn't flow around a float
  2012-03-04  1:09 Paragraph beginning with { doesn't flow around a float Jean-Philippe Rey
@ 2012-03-05  9:20 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2012-03-05  9:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 4-3-2012 02:09, Jean-Philippe Rey wrote:
> Hello everybody,
>
> I found a problem with text flowing around a float. As far as I understand the problem, if a paragraph begins with a {, it doesn't flow around a float.. Here is a minimal example :

a tex artefact ...

use one of:

\noindent { ...

\strut { ...

\dontleavehmode { ...

in order to start the paragraph outside the group

(at some point I might figure out a robust hack around this)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-05  9:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-04  1:09 Paragraph beginning with { doesn't flow around a float Jean-Philippe Rey
2012-03-05  9:20 ` Hans Hagen

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