ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* float next to \bf
@ 2007-01-25 11:18 Jörg Hagmann
  2007-01-25 12:14 ` Thomas A. Schmitz
  2007-01-25 19:34 ` Patrick Gundlach
  0 siblings, 2 replies; 14+ messages in thread
From: Jörg Hagmann @ 2007-01-25 11:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 921 bytes --]

Dear list members,

I noticed the following problem: text doesn't float around an image,  
when the paragraph starts with {\bf or \em etc} instead of unchanged  
font. (The text is placed on top of the image). A minimal example:

\placefigure[inner]{A figure}{\framed[width=5cm,height=5cm]{Image}} 
{\bf This will mess up the rest.} \input tufte

I don't know whether it's only my version of context, because in  
"context live@contextgarden" I get:
  (return code : 25
               run time : 0 seconds

         total run time : 0 seconds

                warning : use 'texmfstart texexec' instead

but no pdf (I get this with anything, has nothing to do with this  
particular problem).

Thanks in advance, Jörg

Prof.Dr.med. Jörg Hagmann-Zanolari
Institute of Biochemistry and Genetics
DKBW, University of Basel
Mattenstrasse 28
CH-4058 Basel
Switzerland
Phone +41 (0)61 267 3565



[-- Attachment #1.2: Type: text/html, Size: 4143 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: float next to \bf
  2007-01-25 11:18 float next to \bf Jörg Hagmann
@ 2007-01-25 12:14 ` Thomas A. Schmitz
  2007-01-25 13:21   ` Jörg Hagmann
  2007-01-25 19:34 ` Patrick Gundlach
  1 sibling, 1 reply; 14+ messages in thread
From: Thomas A. Schmitz @ 2007-01-25 12:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Could you make a complete minimal example? (http://www.latex- 
einfuehrung.de/mini.html) I don't see what your problem is.

Thomas

On Jan 25, 2007, at 12:18 PM, Jörg Hagmann wrote:

> Dear list members,
>
> I noticed the following problem: text doesn't float around an  
> image, when the paragraph starts with {\bf or \em etc} instead of  
> unchanged font. (The text is placed on top of the image). A minimal  
> example:
>
> \placefigure[inner]{A figure}{\framed[width=5cm,height=5cm]{Image}} 
> {\bf This will mess up the rest.} \input tufte
>
> I don't know whether it's only my version of context, because in  
> "context live@contextgarden" I get:
>  (return code : 25
>               run time : 0 seconds
>
>         total run time : 0 seconds
>
>                warning : use 'texmfstart texexec' instead
>
> but no pdf (I get this with anything, has nothing to do with this  
> particular problem).
>
> Thanks in advance, Jörg
>
> Prof.Dr.med. Jörg Hagmann-Zanolari
> Institute of Biochemistry and Genetics
> DKBW, University of Basel
> Mattenstrasse 28
> CH-4058 Basel
> Switzerland
> Phone +41 (0)61 267 3565
>
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: float next to \bf
  2007-01-25 12:14 ` Thomas A. Schmitz
@ 2007-01-25 13:21   ` Jörg Hagmann
  2007-01-25 13:34     ` Thomas A. Schmitz
  2007-01-25 19:06     ` Hans Hagen
  0 siblings, 2 replies; 14+ messages in thread
From: Jörg Hagmann @ 2007-01-25 13:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1396 bytes --]

\starttext
\placefigure[inner]{A figure}{\framed[width=5cm,height=5cm]{Image}} 
{\em This will mess up the rest.} \input tufte
\starttext

Does this complete the subminimal example?
You can download and inspect the output (72KB): www.ogbasel.ch/ 
jhtest.pdf
If the first sentence is not emphasised (or bold, slanted ..), it  
works as expected.

Thanks again, Jörg

On Jan 25, 2007, at 1:14 PM, Thomas A. Schmitz wrote:

> Could you make a complete minimal example? (http://www.latex-
> einfuehrung.de/mini.html) I don't see what your problem is.
>
> Thomas
>
> On Jan 25, 2007, at 12:18 PM, Jörg Hagmann wrote:
>
>> Dear list members,
>>
>> I noticed the following problem: text doesn't float around an
>> image, when the paragraph starts with {\bf or \em etc} instead of
>> unchanged font. (The text is placed on top of the image). A minimal
>> example:
>>
>> \placefigure[inner]{A figure}{\framed[width=5cm,height=5cm]{Image}}
>> {\bf This will mess up the rest.} \input tufte
>>
>> I don't know whether it's only my version of context, because in
>> "context live@contextgarden" I get:
>>  (return code : 25
>>               run time : 0 seconds
>>
>>         total run time : 0 seconds
>>
>>                warning : use 'texmfstart texexec' instead
>>
>> but no pdf (I get this with anything, has nothing to do with this
>> particular problem).


[-- Attachment #1.2: Type: text/html, Size: 5351 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: float next to \bf
  2007-01-25 13:21   ` Jörg Hagmann
@ 2007-01-25 13:34     ` Thomas A. Schmitz
  2007-01-25 19:07       ` Hans Hagen
  2007-01-26  9:30       ` Jörg Hagmann
  2007-01-25 19:06     ` Hans Hagen
  1 sibling, 2 replies; 14+ messages in thread
From: Thomas A. Schmitz @ 2007-01-25 13:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

OK, I see. I had a similar problem a while ago. My workaround: type  
\dontleavehmode in front of the {\em part, and it will typeset  
correctly. But this seems to be a real bug, most commands will mess  
up the vertical spacing in a similar way. Hans, Taco???

Best

Thomas

On Jan 25, 2007, at 2:21 PM, Jörg Hagmann wrote:

> \starttext
> \placefigure[inner]{A figure}{\framed[width=5cm,height=5cm]{Image}} 
> {\em This will mess up the rest.} \input tufte
> \starttext
>
> Does this complete the subminimal example?
> You can download and inspect the output (72KB): www.ogbasel.ch/ 
> jhtest.pdf
> If the first sentence is not emphasised (or bold, slanted ..), it  
> works as expected.
>
> Thanks again, Jörg
>

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

* Re: float next to \bf
  2007-01-25 13:21   ` Jörg Hagmann
  2007-01-25 13:34     ` Thomas A. Schmitz
@ 2007-01-25 19:06     ` Hans Hagen
  1 sibling, 0 replies; 14+ messages in thread
From: Hans Hagen @ 2007-01-25 19:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users

� wrote:
> \starttext
> \placefigure[inner]{A 
> figure}{\framed[width=5cm,height=5cm]{Image}}{\em This will mess up 
> the rest.} \input tufte
> \starttext
>
> Does this complete the subminimal example?
> You can download and inspect the output (72KB): www.ogbasel.ch/jhtest.pdf
> If the first sentence is not emphasised (or bold, slanted ..), it 
> works as expected.
has to do with grouping and everypar and things triggering indentation ... {\em <everypar here and handling of left floatrs>...} 

\placefloat[inner]{}{} \dontleavehmode{\bf bla} bla bla 

should work (i.e. force tex into hor mode) 


-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: float next to \bf
  2007-01-25 13:34     ` Thomas A. Schmitz
@ 2007-01-25 19:07       ` Hans Hagen
  2007-01-25 19:33         ` Willi Egger
  2007-01-25 20:58         ` Thomas A. Schmitz
  2007-01-26  9:30       ` Jörg Hagmann
  1 sibling, 2 replies; 14+ messages in thread
From: Hans Hagen @ 2007-01-25 19:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thomas A. Schmitz wrote:
> OK, I see. I had a similar problem a while ago. My workaround: type  
> \dontleavehmode in front of the {\em part, and it will typeset  
> correctly. But this seems to be a real bug, most commands will mess  
> up the vertical spacing in a similar way. Hans, Taco???
>   
bug ... dunno, more a side effect; resolving this will break other things; side floats are real nasty: force into otr mode and go back and ...you don't wanna know)  

Hans 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

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

* Re: float next to \bf
  2007-01-25 19:07       ` Hans Hagen
@ 2007-01-25 19:33         ` Willi Egger
  2007-01-25 22:42           ` Hans Hagen
  2007-01-25 20:58         ` Thomas A. Schmitz
  1 sibling, 1 reply; 14+ messages in thread
From: Willi Egger @ 2007-01-25 19:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

dunno, but it seems, that there is really something wrong. Here using:
ConTeXt  ver: 2007.01.18 12:57 MKII  fmt: 2007.1.19  int: english/english

\starttext
\input tufte
% \placefigure[here,left]{A figure}{\framed[width=3cm,height=4cm]{Image}}
\placefigure[here,left]{A cow}{\externalfigure[cow][width=3cm,height=4cm]}
\blank
{\em This will mess up the rest.} \input tufte
\stoptext

I changed the sample slightly. With and without \em the cow is placed on 
top of the textblock. This happens also with [here,left] and [here,right]
If you withdraw the {This will mess up the rest.} the figure is placed 
correctly with inner, left, right! If you remove the braces and \em it 
works also
adding \bgroup of \start and \egroup resp. \stop will not help.

\em
This will mess up the rest.
\tf
\input tufte

gives the expected result.

\dontleavehmode finally gives the correct output of the original sample.

Willi

Hans Hagen wrote:
> Thomas A. Schmitz wrote:
>   
>> OK, I see. I had a similar problem a while ago. My workaround: type  
>> \dontleavehmode in front of the {\em part, and it will typeset  
>> correctly. But this seems to be a real bug, most commands will mess  
>> up the vertical spacing in a similar way. Hans, Taco???
>>   
>>     
> bug ... dunno, more a side effect; resolving this will break other things; side floats are real nasty: force into otr mode and go back and ...you don't wanna know)  
>
> Hans 
>
> -----------------------------------------------------------------
>                                           Hans Hagen | PRAGMA ADE
>               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
>                                              | www.pragma-pod.nl
> -----------------------------------------------------------------
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>   

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

* Re: float next to \bf
  2007-01-25 11:18 float next to \bf Jörg Hagmann
  2007-01-25 12:14 ` Thomas A. Schmitz
@ 2007-01-25 19:34 ` Patrick Gundlach
  2007-01-25 21:20   ` Patrick Gundlach
                     ` (2 more replies)
  1 sibling, 3 replies; 14+ messages in thread
From: Patrick Gundlach @ 2007-01-25 19:34 UTC (permalink / raw)
  To: ntg-context

Hi,

> I don't know whether it's only my version of context, because in
> "context live@contextgarden" I get:
>   (return code : 25
>                run time : 0 seconds
>
>          total run time : 0 seconds
>
>                 warning : use 'texmfstart texexec' instead
>
> but no pdf (I get this with anything, has nothing to do with this
> particular problem).

I guess this is due to the fact that contextgarden still uses pdftex
1.2.x and current ConTeXt requires(??) 1.4 - right?

Patrick

-- 
ConTeXt wiki and more: http://contextgarden.net

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

* Re: float next to \bf
  2007-01-25 19:07       ` Hans Hagen
  2007-01-25 19:33         ` Willi Egger
@ 2007-01-25 20:58         ` Thomas A. Schmitz
  1 sibling, 0 replies; 14+ messages in thread
From: Thomas A. Schmitz @ 2007-01-25 20:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On Jan 25, 2007, at 8:07 PM, Hans Hagen wrote:

> bug ... dunno, more a side effect; resolving this will break other  
> things; side floats are real nasty: force into otr mode and go back  
> and ...you don't wanna know)
>
> Hans

OK, I can see that. I had a similar problem with a tabulate environment:

\setupcolors[state=start]

\starttext

\starttabulate[|rw(3em)|p|]

\NC 38 \NC \dontleavehmode \color[red]{some stupid text} \NC \NR

\stoptabulate

\stoptext

If you take out the \dontleavehmode, you get a spurious blank line.  
Is that the same cause?

Best\

Thomas

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

* Re: float next to \bf
  2007-01-25 19:34 ` Patrick Gundlach
@ 2007-01-25 21:20   ` Patrick Gundlach
  2007-01-25 22:43   ` Hans Hagen
  2007-01-26 14:45   ` Patrick Gundlach
  2 siblings, 0 replies; 14+ messages in thread
From: Patrick Gundlach @ 2007-01-25 21:20 UTC (permalink / raw)
  To: ntg-context



> I guess this is due to the fact that contextgarden still uses pdftex
> 1.2.x and current ConTeXt requires(??) 1.4 - right?


and live should be up again soon.

Sorry for the delay.

Patrick
-- 
ConTeXt wiki and more: http://contextgarden.net

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

* Re: float next to \bf
  2007-01-25 19:33         ` Willi Egger
@ 2007-01-25 22:42           ` Hans Hagen
  0 siblings, 0 replies; 14+ messages in thread
From: Hans Hagen @ 2007-01-25 22:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Willi Egger wrote:
> Hi,
>
> dunno, but it seems, that there is really something wrong. Here using:
> ConTeXt  ver: 2007.01.18 12:57 MKII  fmt: 2007.1.19  int: english/english
>
> \starttext
> \input tufte
> % \placefigure[here,left]{A figure}{\framed[width=3cm,height=4cm]{Image}}
> \placefigure[here,left]{A cow}{\externalfigure[cow][width=3cm,height=4cm]}
> \blank
> {\em This will mess up the rest.} \input tufte
> \stoptext
>
> I changed the sample slightly. With and without \em the cow is placed on 
> top of the textblock. This happens also with [here,left] and [here,right]
> If you withdraw the {This will mess up the rest.} the figure is placed 
> correctly with inner, left, right! If you remove the braces and \em it 
> works also
> adding \bgroup of \start and \egroup resp. \stop will not help.
>
> \em
> This will mess up the rest.
> \tf
> \input tufte
>
> gives the expected result.
>
> \dontleavehmode finally gives the correct output of the original sample.
>   
as said ... side floats hook into everypar, switch output routine etc etc; such things don't come naturally and for free; maybe some day when we have more control ... 

Hans 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

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

* Re: float next to \bf
  2007-01-25 19:34 ` Patrick Gundlach
  2007-01-25 21:20   ` Patrick Gundlach
@ 2007-01-25 22:43   ` Hans Hagen
  2007-01-26 14:45   ` Patrick Gundlach
  2 siblings, 0 replies; 14+ messages in thread
From: Hans Hagen @ 2007-01-25 22:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Patrick Gundlach wrote:
> Hi,
>
>   
>> I don't know whether it's only my version of context, because in
>> "context live@contextgarden" I get:
>>   (return code : 25
>>                run time : 0 seconds
>>
>>          total run time : 0 seconds
>>
>>                 warning : use 'texmfstart texexec' instead
>>
>> but no pdf (I get this with anything, has nothing to do with this
>> particular problem).
>>     
>
> I guess this is due to the fact that contextgarden still uses pdftex
> 1.2.x and current ConTeXt requires(??) 1.4 - right?
>   
pdftex instead of pdfetex and such 

Hans 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

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

* Re: float next to \bf
  2007-01-25 13:34     ` Thomas A. Schmitz
  2007-01-25 19:07       ` Hans Hagen
@ 2007-01-26  9:30       ` Jörg Hagmann
  1 sibling, 0 replies; 14+ messages in thread
From: Jörg Hagmann @ 2007-01-26  9:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thomas, Hans, Patrick and Willi:

Thanks a lot. I'm happy with the solution, also because my manuscript  
now contains one of those mysterious commands I regularly notice on  
the list but don't understand.

Cheers, Jörg

On Jan 25, 2007, at 2:34 PM, Thomas A. Schmitz wrote:

> OK, I see. I had a similar problem a while ago. My workaround: type
> \dontleavehmode in front of the {\em part, and it will typeset
> correctly. But this seems to be a real bug, most commands will mess
> up the vertical spacing in a similar way. Hans, Taco???
>
> Best
>
> Thomas
>
> On Jan 25, 2007, at 2:21 PM, Jörg Hagmann wrote:
>
>> \starttext
>> \placefigure[inner]{A figure}{\framed[width=5cm,height=5cm]{Image}}
>> {\em This will mess up the rest.} \input tufte
>> \starttext
>>
>> Does this complete the subminimal example?
>> You can download and inspect the output (72KB): www.ogbasel.ch/
>> jhtest.pdf
>> If the first sentence is not emphasised (or bold, slanted ..), it
>> works as expected.
>>
>> Thanks again, Jörg
>>
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: float next to \bf
  2007-01-25 19:34 ` Patrick Gundlach
  2007-01-25 21:20   ` Patrick Gundlach
  2007-01-25 22:43   ` Hans Hagen
@ 2007-01-26 14:45   ` Patrick Gundlach
  2 siblings, 0 replies; 14+ messages in thread
From: Patrick Gundlach @ 2007-01-26 14:45 UTC (permalink / raw)
  To: ntg-context

Hi all,

>> I don't know whether it's only my version of context, because in
>> "context live@contextgarden" I get:

I have installed texlive 2007 on contextgarden live. The wiki is not
updated yet (will be soon). Could you please check if it works for
your documents run ok (and report back...)?

Thanks,

Patrick
-- 
ConTeXt wiki and more: http://contextgarden.net

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

end of thread, other threads:[~2007-01-26 14:45 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-25 11:18 float next to \bf Jörg Hagmann
2007-01-25 12:14 ` Thomas A. Schmitz
2007-01-25 13:21   ` Jörg Hagmann
2007-01-25 13:34     ` Thomas A. Schmitz
2007-01-25 19:07       ` Hans Hagen
2007-01-25 19:33         ` Willi Egger
2007-01-25 22:42           ` Hans Hagen
2007-01-25 20:58         ` Thomas A. Schmitz
2007-01-26  9:30       ` Jörg Hagmann
2007-01-25 19:06     ` Hans Hagen
2007-01-25 19:34 ` Patrick Gundlach
2007-01-25 21:20   ` Patrick Gundlach
2007-01-25 22:43   ` Hans Hagen
2007-01-26 14:45   ` Patrick Gundlach

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