ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* MetaPost in TABLEs ?
@ 2010-04-11 13:25 Steffen Wolfrum
  2010-04-11 15:51 ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Steffen Wolfrum @ 2010-04-11 13:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: MetaPost in TABLEs ?
  2010-04-11 13:25 MetaPost in TABLEs ? Steffen Wolfrum
@ 2010-04-11 15:51 ` Hans Hagen
  2010-04-11 16:10   ` Steffen Wolfrum
  2010-04-11 16:37   ` Vianney le Clément
  0 siblings, 2 replies; 6+ messages in thread
From: Hans Hagen @ 2010-04-11 15:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Steffen Wolfrum

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: MetaPost in TABLEs ?
  2010-04-11 15:51 ` Hans Hagen
@ 2010-04-11 16:10   ` Steffen Wolfrum
  2010-04-11 16:31     ` Hans Hagen
  2010-04-11 16:37   ` Vianney le Clément
  1 sibling, 1 reply; 6+ messages in thread
From: Steffen Wolfrum @ 2010-04-11 16:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: MetaPost in TABLEs ?
  2010-04-11 16:10   ` Steffen Wolfrum
@ 2010-04-11 16:31     ` Hans Hagen
  2010-04-11 16:48       ` Steffen Wolfrum
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2010-04-11 16:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Steffen Wolfrum

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: MetaPost in TABLEs ?
  2010-04-11 15:51 ` Hans Hagen
  2010-04-11 16:10   ` Steffen Wolfrum
@ 2010-04-11 16:37   ` Vianney le Clément
  1 sibling, 0 replies; 6+ messages in thread
From: Vianney le Clément @ 2010-04-11 16:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: MetaPost in TABLEs ?
  2010-04-11 16:31     ` Hans Hagen
@ 2010-04-11 16:48       ` Steffen Wolfrum
  0 siblings, 0 replies; 6+ messages in thread
From: Steffen Wolfrum @ 2010-04-11 16:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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.
<to be read again> 
                   ;
intersectionpoint->...The paths don't intersect");
                                                  origin.else:0.5[point.x_.o...
<to be read again> 
                   )
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-04-11 16:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-11 13:25 MetaPost in TABLEs ? Steffen Wolfrum
2010-04-11 15:51 ` Hans Hagen
2010-04-11 16:10   ` Steffen Wolfrum
2010-04-11 16:31     ` Hans Hagen
2010-04-11 16:48       ` Steffen Wolfrum
2010-04-11 16:37   ` Vianney le Clément

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).