Re: [NTG-context] \placefigure and \em (again)

2011-02-25 Thread Henning Hraban Ramm

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
___


Re: [NTG-context] \placefigure and \em (again)

2011-02-25 Thread Wolfgang Schuster

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
___


Re: [NTG-context] \placefigure and \em (again)

2011-02-25 Thread Wolfgang Schuster

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
___


Re: [NTG-context] \placefigure and \em (again)

2011-02-25 Thread Procházka Lukáš Ing . - Pontex s . r . o .

... 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.wolfg...@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:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@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
___


Re: [NTG-context] \placefigure and \em (again)

2011-02-25 Thread Willi Egger
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:l...@pontex.cz]
 Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
 Bezová 1658
 147 14 Praha 4
 
 Tel: +420 244 062 238
 Fax: +420 244 461 
 038t-Hang3.mkivt-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
___


Re: [NTG-context] \placefigure and \em (again)

2011-02-25 Thread Hans Hagen

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
___