ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* How to box \useMPgraphic?
@ 2008-11-13 16:18 Oliver Buerschaper
  2008-11-13 17:14 ` Wolfgang Schuster
  2008-11-13 20:47 ` Hans Hagen
  0 siblings, 2 replies; 6+ messages in thread
From: Oliver Buerschaper @ 2008-11-13 16:18 UTC (permalink / raw)
  To: mailing ConTeXt users list for

Hello all,

I'd like to insert a little MetaPost square into the running text and  
properly align it vertically. So I tried:

---

\startuseMPgraphic{square}
     draw unitsquare scaled StrutHeight;
\stopuseMPgraphic

\starttext

I want a square \raisebox{-\strutdepth}{\useMPgraphic{square}} in my  
running text.

\stoptext

---

Unfortunately, to no avail. TeX seems to be asking for some boxed  
content, so I tried to wrap the figure inclusion into a box:  
\hbox{\useMPgraphic{square}}. It doesn't solve the problem either.

What do I need to change?

Oliver
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2008-11-14 17:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-13 16:18 How to box \useMPgraphic? Oliver Buerschaper
2008-11-13 17:14 ` Wolfgang Schuster
2008-11-14 15:03   ` Oliver Buerschaper
2008-11-13 20:47 ` Hans Hagen
2008-11-14 15:02   ` Oliver Buerschaper
2008-11-14 17:27     ` Hans Hagen

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