ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \em around \placefigure (bug?)
@ 2011-02-23 15:55 Procházka Lukáš Ing. - Pontex s. r. o.
  2011-02-25  7:56 ` \placefigure and \em (again) Procházka Lukáš Ing. - Pontex s. r. o.
  0 siblings, 1 reply; 8+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2011-02-23 15:55 UTC (permalink / raw)
  To: ConTeXt

[-- Attachment #1: Type: text/plain, Size: 886 bytes --]

Hello,

the \em statement being placed as the first command of a paragraph to flow around a \placefigure seems to SCRATCH the figure instead of to flow around (bug?). See the minimal example:

---

\starttext
   \placefigure
     [left,none]
     {}
     { \startMPcode
         draw (0,0)--(6cm,6cm);
       \stopMPcode
     }

   01234656789 01234656789 01234656789 01234656789 01234656789 01234656789 01234656789

   {\em 01234656789} 01234656789 01234656789 01234656789 01234656789 01234656789 01234656789

   01234656789 {\em 01234656789} 01234656789 01234656789 01234656789 01234656789 01234656789

   \input tufte
\stoptext

---

Best regards

Lukas


-- 
Ing. Lukáš Procházka [mailto:LPr@pontex.cz]
Pontex s. r. o.      [mailto:pontex@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

[-- Attachment #2: t-Hang3.mkiv --]
[-- Type: application/octet-stream, Size: 439 bytes --]

\starttext
  \placefigure
    [left,none]
    {}
    { \startMPcode
        draw (0,0)--(6cm,6cm);
      \stopMPcode
    }

  01234656789 01234656789 01234656789 01234656789 01234656789 01234656789 01234656789

  {\em 01234656789} 01234656789 01234656789 01234656789 01234656789 01234656789 01234656789

  01234656789 {\em 01234656789} 01234656789 01234656789 01234656789 01234656789 01234656789

  \input tufte
\stoptext

[-- Attachment #3: t-Hang3.pdf --]
[-- Type: application/pdf, Size: 13131 bytes --]

[-- Attachment #4: Type: text/plain, Size: 486 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* \placefigure and \em (again)
  2011-02-23 15:55 \em around \placefigure (bug?) Procházka Lukáš Ing. - Pontex s. r. o.
@ 2011-02-25  7:56 ` Procházka Lukáš Ing. - Pontex s. r. o.
  2011-02-25  8:16   ` Henning Hraban Ramm
                     ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2011-02-25  7:56 UTC (permalink / raw)
  To: ConTeXt

[-- Attachment #1: Type: text/plain, Size: 1060 bytes --]

Hello,

sorry for repeating this topic, maybe it's not too attractive.

Please, have a look to the following problem.

I wonder why the behaviour described bellow occurs and how to typeset a paragraph starting with some text enclosed into {\em ...} group inside the "free" area formed (affected) by \placefigure.

---

\starttext
   \placefigure
     [left,none]
     {}
     { \startMPcode
         draw (0,0)--(6cm,6cm);
       \stopMPcode
     }

   This is a normal text -- it flows around the picture on the left side of the page as expected.

   {\em This empathized text starting a new paragraph} should not scratch the picture left.

   When some text contains {\em an empathized text inside the paragraph}, text flows normally as expected.

   \input tufte
\stoptext

---

Thank you in advance.

Best regards

Lukas


-- 
Ing. Lukáš Procházka [mailto:LPr@pontex.cz]
Pontex s. r. o.      [mailto:pontex@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

[-- Attachment #2: t-Hang3.mkiv --]
[-- Type: application/octet-stream, Size: 463 bytes --]

\starttext
  \placefigure
    [left,none]
    {}
    { \startMPcode
        draw (0,0)--(6cm,6cm);
      \stopMPcode
    }

  This is a normal text -- it flows around the picture on the left side of the page as expected.

  {\em This empathized text starting a new paragraph} should not scratch the picture left.

  When some text contains {\em an empathized text inside the paragraph}, text flows normally as expected.

  \input tufte
\stoptext

[-- Attachment #3: t-Hang3.pdf --]
[-- Type: application/pdf, Size: 12955 bytes --]

[-- Attachment #4: Type: text/plain, Size: 486 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: \placefigure and \em (again)
  2011-02-25  7:56 ` \placefigure and \em (again) Procházka Lukáš Ing. - Pontex s. r. o.
@ 2011-02-25  8:16   ` Henning Hraban Ramm
  2011-02-25  8:37     ` Wolfgang Schuster
  2011-02-25  8:36   ` Wolfgang Schuster
  2011-02-25  9:40   ` Willi Egger
  2 siblings, 1 reply; 8+ messages in thread
From: Henning Hraban Ramm @ 2011-02-25  8:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 2011-02-25 um 08:56 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

> ---
>
> \starttext
>  \placefigure
>    [left,none]
>    {}
>    { \startMPcode
>        draw (0,0)--(6cm,6cm);
>      \stopMPcode
>    }
>
>  This is a normal text -- it flows around the picture on the left  
> side of the page as expected.
>
>  {\em This empathized text starting a new paragraph} should not  
> scratch the picture left.
>
>  When some text contains {\em an empathized text inside the  
> paragraph}, text flows normally as expected.
>
>  \input tufte
> \stoptext
>
> ---

You can add a \strut in front of {\em - that’s a usual workaround for  
problems with non-letters starting a paragraph.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___________________________________________________________________________________
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] 8+ messages in thread

* Re: \placefigure and \em (again)
  2011-02-25  7:56 ` \placefigure and \em (again) Procházka Lukáš Ing. - Pontex s. r. o.
  2011-02-25  8:16   ` Henning Hraban Ramm
@ 2011-02-25  8:36   ` Wolfgang Schuster
  2011-02-25  9:40   ` Willi Egger
  2 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2011-02-25  8:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 25.02.2011 um 08:56 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

> Hello,
> 
> sorry for repeating this topic, maybe it's not too attractive.
> 
> Please, have a look to the following problem.
> 
> I wonder why the behaviour described bellow occurs and how to typeset a paragraph starting with some text enclosed into {\em ...} group inside the "free" area formed (affected) by \placefigure.
> 
> ---
> 
> \starttext
>  \placefigure
>    [left,none]
>    {}
>    { \startMPcode
>        draw (0,0)--(6cm,6cm);
>      \stopMPcode
>    }
> 
>  This is a normal text -- it flows around the picture on the left side of the page as expected.
> 
>  {\em This empathized text starting a new paragraph} should not scratch the picture left.

\dontleavehmode{\em …}

Wolfgang

___________________________________________________________________________________
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] 8+ messages in thread

* Re: \placefigure and \em (again)
  2011-02-25  8:16   ` Henning Hraban Ramm
@ 2011-02-25  8:37     ` Wolfgang Schuster
  2011-02-25  8:44       ` Procházka Lukáš Ing. - Pontex s. r. o.
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2011-02-25  8:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 25.02.2011 um 09:16 schrieb Henning Hraban Ramm:

> You can add a \strut in front of {\em - that’s a usual workaround for problems with non-letters starting a paragraph.

The usual workaround is \dontleavehmode.

Wolfgang

___________________________________________________________________________________
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] 8+ messages in thread

* Re: \placefigure and \em (again)
  2011-02-25  8:37     ` Wolfgang Schuster
@ 2011-02-25  8:44       ` Procházka Lukáš Ing. - Pontex s. r. o.
  2011-02-25 12:27         ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2011-02-25  8:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users

... Thanks for the answers.

I'm familiar with using \dontleavehmode when needing to keep a figure midaligned; I had no idea that this would be a similar situation (and solution).

Best regards,

Lukas


On Fri, 25 Feb 2011 09:37:40 +0100, Wolfgang Schuster <schuster.wolfgang@googlemail.com> wrote:

>
> Am 25.02.2011 um 09:16 schrieb Henning Hraban Ramm:
>
>> You can add a \strut in front of {\em - that’s a usual workaround for problems with non-letters starting a paragraph.
>
> The usual workaround is \dontleavehmode.
>
> Wolfgang


-- 
Ing. Lukáš Procházka [mailto:LPr@pontex.cz]
Pontex s. r. o.      [mailto:pontex@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___________________________________________________________________________________
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] 8+ messages in thread

* Re: \placefigure and \em (again)
  2011-02-25  7:56 ` \placefigure and \em (again) Procházka Lukáš Ing. - Pontex s. r. o.
  2011-02-25  8:16   ` Henning Hraban Ramm
  2011-02-25  8:36   ` Wolfgang Schuster
@ 2011-02-25  9:40   ` Willi Egger
  2 siblings, 0 replies; 8+ messages in thread
From: Willi Egger @ 2011-02-25  9:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello,

of course I do not have the solution for the underlaying problem. I found out, that you can put a \strut in front of the problematic text and then it comes out ok.
Another point is, that placing the whole text-part i.e. all 4 paragraphs in your example between \bgroup \egroup results in more problems. In this case the tufte-text is also not flowing around the picture.


Kind regards

Willi


On 25 Feb 2011, at 08:56, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

> Hello,
> 
> sorry for repeating this topic, maybe it's not too attractive.
> 
> Please, have a look to the following problem.
> 
> I wonder why the behaviour described bellow occurs and how to typeset a paragraph starting with some text enclosed into {\em ...} group inside the "free" area formed (affected) by \placefigure.
> 
> ---
> 
> \starttext
>  \placefigure
>    [left,none]
>    {}
>    { \startMPcode
>        draw (0,0)--(6cm,6cm);
>      \stopMPcode
>    }
> 
>  This is a normal text -- it flows around the picture on the left side of the page as expected.
> 
>  {\em This empathized text starting a new paragraph} should not scratch the picture left.
> 
>  When some text contains {\em an empathized text inside the paragraph}, text flows normally as expected.
> 
>  \input tufte
> \stoptext
> 
> ---
> 
> Thank you in advance.
> 
> Best regards
> 
> Lukas
> 
> 
> -- 
> Ing. Lukáš Procházka [mailto:LPr@pontex.cz]
> Pontex s. r. o.      [mailto:pontex@pontex.cz] [http://www.pontex.cz]
> Bezová 1658
> 147 14 Praha 4
> 
> Tel: +420 244 062 238
> Fax: +420 244 461 038<t-Hang3.mkiv><t-Hang3.pdf>___________________________________________________________________________________
> 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
> ___________________________________________________________________________________

___________________________________________________________________________________
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] 8+ messages in thread

* Re: \placefigure and \em (again)
  2011-02-25  8:44       ` Procházka Lukáš Ing. - Pontex s. r. o.
@ 2011-02-25 12:27         ` Hans Hagen
  0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2011-02-25 12:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 25-2-2011 9:44, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
> ... Thanks for the answers.
>
> I'm familiar with using \dontleavehmode when needing to keep a figure
> midaligned; I had no idea that this would be a similar situation (and
> solution).

{\em xxx ..}

the first x triggers the start of a paragraph but it happens inside a 
group so it has side effects

\dontleavehmode{\em xxx ..}

here the paragraph is started outside the group


-----------------------------------------------------------------
                                           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] 8+ messages in thread

end of thread, other threads:[~2011-02-25 12:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-23 15:55 \em around \placefigure (bug?) Procházka Lukáš Ing. - Pontex s. r. o.
2011-02-25  7:56 ` \placefigure and \em (again) Procházka Lukáš Ing. - Pontex s. r. o.
2011-02-25  8:16   ` Henning Hraban Ramm
2011-02-25  8:37     ` Wolfgang Schuster
2011-02-25  8:44       ` Procházka Lukáš Ing. - Pontex s. r. o.
2011-02-25 12:27         ` Hans Hagen
2011-02-25  8:36   ` Wolfgang Schuster
2011-02-25  9:40   ` Willi Egger

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