Re: [NTG-context] How to box \useMPgraphic?
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 ___
Re: [NTG-context] How to box \useMPgraphic?
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 ___
Re: [NTG-context] How to box \useMPgraphic?
Oliver Buerschaper wrote: So is this the preferred command for all (horizontal) boxing related tasks in ConTeXt (over hbox)? if you want to position yes .. howeler, take a look in supp-box for more low level stuff 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 - ___ 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 ___
[NTG-context] How to box \useMPgraphic?
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 ___
Re: [NTG-context] How to box \useMPgraphic?
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 ___