\externalimage at the start of line
I've just started using ConTeXt and I have run into a small problem that may be a bug. I'm trying to include a graphics file inline with text. For my page headers, I need the image to appear at the start of a line. If I use the following commands: \externalimge[logo] Some text here It gets rendered as <logo> Some text here I'd like to get <logo> Some text here \externalimage works fine in other places where there is some text preceding it, but I need to have the case where no text preceeds it. I image there are some workaround to this, but as I am fairly new to ConTeXt I am not sure the best way to go about it. If anyone could help me solve this, I would appreciate it. Thanks, Dean
Dean wrote:
I've just started using ConTeXt and I have run into a small problem that may be a bug. I'm trying to include a graphics file inline with text. For my page headers, I need the image to appear at the start of a line. If I use the following commands:
\externalimge[logo] Some text here
It gets rendered as
<logo> Some text here
I'd like to get
<logo> Some text here
\externalimage works fine in other places where there is some text preceding it, but I need to have the case where no text preceeds it. I image there are some workaround to this, but as I am fairly new to ConTeXt I am not sure the best way to go about it. If anyone could help me solve this, I would appreciate it.
put \dontleavehmode in front of the command; has to do with h/vmode 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 Mar 12, 2007, at 8:40 PM, Dean wrote:
I've just started using ConTeXt and I have run into a small problem that may be a bug. I'm trying to include a graphics file inline with text. For my page headers, I need the image to appear at the start of a line. If I use the following commands:
\externalimge[logo] Some text here
It gets rendered as
<logo> Some text here
I'd like to get
<logo> Some text here
\externalimage works fine in other places where there is some text preceding it, but I need to have the case where no text preceeds it. I image there are some workaround to this, but as I am fairly new to ConTeXt I am not sure the best way to go about it. If anyone could help me solve this, I would appreciate it.
Thanks, Dean
[untested] \dontleavehmode \externalimge[logo] Some text here Thomas
participants (3)
-
Dean
-
Hans Hagen
-
Thomas A. Schmitz