[NTG-context] \MPpos, pxy, initialize_box(), oh my!

2010-06-04 Thread Adam Fuller

hello all,
i finished a presentation (my first ConTeXt creation!), and now i've got a 
couple days to get creative again.

i'm trying to understand how the typeset lines of text in the MetaPost manual 
were outlined in Section 5.1.  i've just discovered that \MPpos only seems to 
work in MPpositiongraphics, and initialize_box sets `pxy' to \hpos's contents 
bounding box.  what if you want pxy to be not strictly a rectangle, but the 
path that encloses text, etc., which is just part of flowing text in a 
paragraph, like page 247 (beginning of Positional Graphics chapter) in the 
MetaPost manual?

i've read the MetaPost manual.  i hope the answer isn't too obvious.

thanks,
adam
attachment: adam_fuller.vcf___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \MPpos, pxy, initialize_box(), oh my!

2010-06-04 Thread Hongwen Qiu

于 2010年06月04日 23:41, Adam Fuller 写道:
initialize_box sets `pxy' to \hpos's contents bounding box. what if 
you want pxy to be not strictly a rectangle, but the path that 
encloses text, etc., which is just part of flowing text in a paragraph
If I'm not misunderstanding some concepts, bounding boxes are sure to be 
rectangles. But why you need `pxy` to not be rectangle. Since you can 
get the center and all the four-corner cordinates (and so it's easy to 
get the diameter if you want to use it as circles or something like that 
latter) of the bounding box, you can construct all kinds of path shapes 
if needed.

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___