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
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
\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).
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
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 -----------------------------------------------------------------
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
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 -----------------------------------------------------------------
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
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
� 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 -----------------------------------------------------------------
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
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
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 -----------------------------------------------------------------
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
participants (5)
-
Hans Hagen
-
Jörg Hagmann
-
Patrick Gundlach
-
Thomas A. Schmitz
-
Willi Egger