\externalimage at the start of line
![](https://secure.gravatar.com/avatar/43813de4c8feb2c8997fa7682e3401b8.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/d0e94fb08d4620cfbd2f8f59a7868637.jpg?s=120&d=mm&r=g)
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