[NTG-context] creating multirow curly brace in tables to symbolize row span

2015-08-20 Thread Henry House
List:

I'm trying to create a table with this effect:

Parcel  |Area
  ⎧ | 1 acre trees
parcel 1  ⎨ | 2 acre vines
  ⎩ | 3 acre open
  ⎧ | 5 acre trees
parcel 2  ⎨ | 6 acre vines
  ⎩ | 4 acre open


In other words, I would like a big curly bracket with leftwards point spanning
three table rows to tell the reader that the leftmost column's entries apply to
a three-row span in the next column (a style often seen in tables in older
books).

I've tried, probably naively, the following approach, using the unicode symbols
for the bracket pieces and alternatively using math-mode symbols found in
http://meeting.contextgarden.net/2011/talks/day3_05_ulrik_opentype/Samples/unimath-symbols.pdf
Every symbol defined by unicode-math. The symbols are recognized in neither
form, unfortunately.

Any suggestions on how I can either make these symbols render, or a different
approach to achieve my goal?

Complete test document:


\enableregime[utf]\setuppapersize[letter][letter]
\usetypescript[serif,sans,mono][hanging][normal]
\setupalign[hanging]
\usetypescript[modern-base][texnansi]
\setupbodyfont[reset]
\setupbodyfont[modern]
\definetypeface[boldmath][mm][boldmath][modern][default]
\usemodule[cmscbf]
\usemodule[unicode-math]
\setupbodyfont[11pt]

\starttext

\bTABLE
\bTR{}\bTD{}Parcel   \eTD\bTD{}   \eTD\bTD Area 
\eTD\eTR%
\bTR{}\bTD{} \eTD\bTD{}\mathematics{\lbraceuend}  \eTD\bTD 1 \eTD\eTR%
\bTR{}\bTD{}parcel 2 \eTD\bTD{}\mathematics{\lbracemid}   \eTD\bTD 2 \eTD\eTR%
\bTR{}\bTD{} \eTD\bTD{}\mathematics{\lbracelend}  \eTD\bTD 3 \eTD\eTR%
\eTABLE

\bTABLE
\bTR{}\bTD{} \eTD\bTD{}⎧  \eTD\bTD 1 \eTD\eTR%
\bTR{}\bTD{}parcel 4 \eTD\bTD{}⎨  \eTD\bTD 2 \eTD\eTR%
\bTR{}\bTD{} \eTD\bTD{}⎩  \eTD\bTD 3 \eTD\eTR%
\eTABLE

\stoptext



--
Henry House
___
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] creating multirow curly brace in tables to symbolize row span

2015-08-20 Thread Aditya Mahajan

On Thu, 20 Aug 2015, Henry House wrote:


List:

I'm trying to create a table with this effect:

Parcel  |Area
  ⎧ | 1 acre trees
parcel 1  ⎨ | 2 acre vines
  ⎩ | 3 acre open
  ⎧ | 5 acre trees
parcel 2  ⎨ | 6 acre vines
  ⎩ | 4 acre open


In other words, I would like a big curly bracket with leftwards point spanning
three table rows to tell the reader that the leftmost column's entries apply to
a three-row span in the next column (a style often seen in tables in older
books).

Any suggestions on how I can either make these symbols render, or a different
approach to achieve my goal?


As an alternative, have you considered separating the groups by white 
space. For example:


\starttext

\bTABLE[frame=off, loffset=0.5em]
  \bTH
\bTD Parcel \eTD
\bTD Area   \eTD
  \eTH
  \bTR
\bTD[nr=3, align={lohi}]
  Parcel 1
\eTD
\bTD 1 acre trees \eTD
  \eTR
  \bTR
\bTD 2 acre vines \eTD
  \eTR
  \bTR
\bTD 3 acre open \eTD
  \eTR
  \bTR[topdistance=\lineheight]
  \bTR
\bTD[nr=3, align={lohi}]
  Parcel 2
\eTD
\bTD 5 acre trees \eTD
  \eTR
  \bTR
\bTD 6 acre vines \eTD
  \eTR
  \bTR
\bTD 4 acre open \eTD
  \eTR
\eTABLE

\stoptext

Aditya___
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
___