Oliver Buerschaper schrieb:
> Hi there,
> 
> maths can sometimes be weird and even more so the kinds of formulas  
> one needs to typeset occasionally ;-)
> 
> So here I need to typeset triangles and a variety of other polygons  
> right in the middle of a display formula. What I've been able to come  
> up with so far is something like this:
> 
> ---
> \starttext
> 
> 
> \startuseMPgraphic{tetrahedral}
>       u := 10pt;
>       draw (0,0)--(2u,0)--(u,sqrt(3)*u)--cycle;
> \stopuseMPgraphic
>
The bounding box of the graphic is set on the base line. So you have to 
add some artificial depth to the graphic.


\starttext

\startreusableMPgraphic{tetrahedral}
         begingroup
        u := 10pt;
        draw (0,0)--(2u,0)--(u,sqrt(3)*u)--cycle;
         draw boundingbox currentpicture withpen pensquare scaled .1;
         endgroup;
\stopreusableMPgraphic

\def\Tetrahedral{\lower5pt\hbox{\reuseMPgraphic{tetrahedral}}}% needs 
some fiddling :)

\startformula
\Phi(\Tetrahedral)=F_{kln}^{ijm}\,v_iv_jv_kv_l\,
\delta_{j^*nk^*}\,\delta_{l^*n^*i^*}\,\Phi(\emptyset)
\stopformula

\stoptext


Best wishes, Peter

> \startformula
> \Phi(\useMPgraphic{tetrahedral})=F_{kln}^{ijm}\,v_iv_jv_kv_l\, 
> \delta_{j^*nk^*}\,\delta_{l^*n^*i^*}\,\Phi(\emptyset)
> \stopformula
> 
> 
> \stoptext
> ---
> 
> Now if I only knew how to properly align my MetaPost figure with the  
> rest of the formula … any ideas?
> 
> Cheerio,
> Oliver
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : [email protected] / 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
> ___________________________________________________________________________________
> 

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

maillist : [email protected] / 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
___________________________________________________________________________________

Reply via email to