* 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
* Re: How to box \useMPgraphic?
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
1 sibling, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2008-11-13 17:14 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 13.11.2008 um 17:18 schrieb Oliver Buerschaper:
> 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.
I want a square \raisebox{-.5\strutdp}\hbox{\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.
Wolfgang
___________________________________________________________________________________
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
* Re: How to box \useMPgraphic?
2008-11-13 17:14 ` Wolfgang Schuster
@ 2008-11-14 15:03 ` Oliver Buerschaper
0 siblings, 0 replies; 6+ messages in thread
From: Oliver Buerschaper @ 2008-11-14 15:03 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 13.11.2008 um 18:14 schrieb Wolfgang Schuster:
>
> Am 13.11.2008 um 17:18 schrieb Oliver Buerschaper:
>
>> 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.
>
> I want a square \raisebox{-.5\strutdp}\hbox{\useMPgraphic{square}}
> in my
> running text.
Thanks!
I was close: if I had only left out the outer braces in
{\hbox{\useMPgraphic{square}}} ...
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
* Re: How to box \useMPgraphic?
2008-11-13 16:18 How to box \useMPgraphic? Oliver Buerschaper
2008-11-13 17:14 ` Wolfgang Schuster
@ 2008-11-13 20:47 ` Hans Hagen
2008-11-14 15:02 ` Oliver Buerschaper
1 sibling, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2008-11-13 20:47 UTC (permalink / raw)
To: mailing list for ConTeXt users
Oliver Buerschaper wrote:
> 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.
\inframed[frame=off]{\useMPgraphic{square}}
> 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
> ___________________________________________________________________________________
--
-----------------------------------------------------------------
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
* Re: How to box \useMPgraphic?
2008-11-13 20:47 ` Hans Hagen
@ 2008-11-14 15:02 ` Oliver Buerschaper
2008-11-14 17:27 ` Hans Hagen
0 siblings, 1 reply; 6+ messages in thread
From: Oliver Buerschaper @ 2008-11-14 15:02 UTC (permalink / raw)
To: mailing list for ConTeXt users
>> 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.
>
> \inframed[frame=off]{\useMPgraphic{square}}
Thanks!
So is this the preferred command for all (horizontal) boxing related
tasks in ConTeXt (over hbox)?
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).