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

Henry House hajhouse at hajhouse.org
Thu Aug 20 19:57:53 CEST 2015


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


More information about the ntg-context mailing list