Re: [NTG-context] MetaPost in TABLEs ?
Am 11.04.2010 um 18:31 schrieb Hans Hagen: > On 11-4-2010 6:10, Steffen Wolfrum wrote: > >> Thank you Hans! I can imagine that this fits on the first example. >> >> Do you also have an idea on the second case, the arrows from one table cell >> to another? >> (Does it has to be so complex as in metafun manual, page 140: "5.2 Anchors >> and layers"??) > > positional graphics as mentioned in the metafun manual ... connecting points > with arrows This is exactly the chapter I meant / feared of ... "We already warned the reader: this is not an easy chapter." (Hans Hagen 2002) ;o) Nevertheless I'll try my best. Just, even trying to run that example from the manual gives an error (MkII): ! The paths don't intersect. ; intersectionpoint->...The paths don't intersect"); origin.else:0.5[point.x_.o... ) l.148 ...= pab cutafter (pab intersectionpoint pb) ; pickup pencircle scaled... ? Steffen ___ 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] MetaPost in TABLEs ?
> use textbackgrounds ... instead of drawing lines you then do a textext that > does a \left{ in math alongside a vbox that has the height of the lefgt > boundary etc etc That would be really interesting for a project I'm working on (a songbook). I thought textbackgrounds could only put a color behind the text. Could you give an example of putting such a brace next to an arbitrary number of lines, please? Thank you in advance, Vianney ___ 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] MetaPost in TABLEs ?
On 11-4-2010 6:10, Steffen Wolfrum wrote: Thank you Hans! I can imagine that this fits on the first example. Do you also have an idea on the second case, the arrows from one table cell to another? (Does it has to be so complex as in metafun manual, page 140: "5.2 Anchors and layers"??) positional graphics as mentioned in the metafun manual ... connecting points with arrows - 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MetaPost in TABLEs ?
Am 11.04.2010 um 17:51 schrieb Hans Hagen: > On 11-4-2010 3:25, Steffen Wolfrum wrote: >> Hi all, >> >> In a book on construction engineering I found two kind of tables that >> presumably could be set very nicely in ConTeXt (see attachments). Set with >> MetaPost within natural tables? >> >> 1) Curly braces that span over cells: Their height should be depending to >> the cell's height (nr=2 oder nr=3). >> http://werksatz.com/attachments/braces.jpg >> >> 2) Arrows that are pointing from one cell to an other (middle or border of >> cell), >> http://werksatz.com/attachments/arrows.jpg >> >> >> To me this looks like standard purpose, that most like is already >> pre-defined somewhere in Metapost/MetaFun/ConTeXt (MkII please!) ... >> >> Is there any MetaPost guru out there that knows these cases? > > use textbackgrounds ... instead of drawing lines you then do a textext that > does a \left{ in math alongside a vbox that has the height of the lefgt > boundary etc etc Thank you Hans! I can imagine that this fits on the first example. Do you also have an idea on the second case, the arrows from one table cell to another? (Does it has to be so complex as in metafun manual, page 140: "5.2 Anchors and layers"??) Steffen ___ 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] MetaPost in TABLEs ?
On 11-4-2010 3:25, Steffen Wolfrum wrote: Hi all, In a book on construction engineering I found two kind of tables that presumably could be set very nicely in ConTeXt (see attachments). Set with MetaPost within natural tables? 1) Curly braces that span over cells: Their height should be depending to the cell's height (nr=2 oder nr=3). http://werksatz.com/attachments/braces.jpg 2) Arrows that are pointing from one cell to an other (middle or border of cell), http://werksatz.com/attachments/arrows.jpg To me this looks like standard purpose, that most like is already pre-defined somewhere in Metapost/MetaFun/ConTeXt (MkII please!) ... Is there any MetaPost guru out there that knows these cases? use textbackgrounds ... instead of drawing lines you then do a textext that does a \left{ in math alongside a vbox that has the height of the lefgt boundary etc etc - 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] MetaPost in TABLEs ?
Hi all, In a book on construction engineering I found two kind of tables that presumably could be set very nicely in ConTeXt (see attachments). Set with MetaPost within natural tables? 1) Curly braces that span over cells: Their height should be depending to the cell's height (nr=2 oder nr=3). http://werksatz.com/attachments/braces.jpg 2) Arrows that are pointing from one cell to an other (middle or border of cell), http://werksatz.com/attachments/arrows.jpg To me this looks like standard purpose, that most like is already pre-defined somewhere in Metapost/MetaFun/ConTeXt (MkII please!) ... Is there any MetaPost guru out there that knows these cases? Thank you, Steffen ___ 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 ___