ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \externalimage at the start of line
@ 2007-03-12 19:40 Dean
  2007-03-12 20:34 ` Hans Hagen
  2007-03-12 20:53 ` Thomas A. Schmitz
  0 siblings, 2 replies; 3+ messages in thread
From: Dean @ 2007-03-12 19:40 UTC (permalink / raw)
  To: ntg-context

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

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

* Re: \externalimage at the start of line
  2007-03-12 19:40 \externalimage at the start of line Dean
@ 2007-03-12 20:34 ` Hans Hagen
  2007-03-12 20:53 ` Thomas A. Schmitz
  1 sibling, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2007-03-12 20:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

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

* Re: \externalimage at the start of line
  2007-03-12 19:40 \externalimage at the start of line Dean
  2007-03-12 20:34 ` Hans Hagen
@ 2007-03-12 20:53 ` Thomas A. Schmitz
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas A. Schmitz @ 2007-03-12 20:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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

end of thread, other threads:[~2007-03-12 20:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-12 19:40 \externalimage at the start of line Dean
2007-03-12 20:34 ` Hans Hagen
2007-03-12 20:53 ` Thomas A. Schmitz

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