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

[NTG-context] footnotes in floating tables

2015-07-19 Thread Henry House
I am using the following to style floating tables and am having some
difficulties with footnotes in the tables.

\enableregime[utf]
\setupbodyfont[modern]
\setupbodyfont[11pt]

\setupfloats[location=middle,spacebefore=0ex,spaceafter=8ex]

\setupcaptions[location=top,inbetween={\blank[0cm]},spaceafter=2ex,spacebefore=1ex,headstyle=\sc]
\setupTABLE[frame=off,offset=0ex]
\setupTABLE[c][distance=0.6em]
\def\tableheadrulethickness{1.0pt}

\defineframed[footnoteframed]\setupframed[footnoteframed][width=\hsize,frame=off,align=right,top=\hbox\bgroup,bottom=\egroup]
% Use the set of symbols that has become customary in many publications for 
footnote marks, whose
% origin seems to be lost in the misty dawn of history:
\defineconversion[tablefootnoteconversion][*,†,‡,§,\textbar\textbar,¶]

\starttext
%%% Begin title page.
\startalignment[center]
{\ssb Title}
\stopalignment
%%% End title page.

Hello.

{
\placetable[top,page][table]{
Caption 1.
}{
\bTABLE%
\bTR{}\bTD{}X \eTD\bTD{}Y\eTD\eTR%
\bTR{}\bTD{}1 \eTD\bTD{}2\eTD\eTR%
\eTABLE%
}
}

{
\setupfootnotes[conversion=tablefootnoteconversion] % MkII
% 
\setupnotation[footnote][numberconversion=tablefootnoteconversion] % MkIV
\startlocalfootnotes

\setupTABLE[r][1][bottomframe=on,align=low,rulethickness=\tableheadrulethickness]
\setupTABLE[r][each][align={flushleft,verytolerant,hyphenated}] % 
Hyphenate words in table body
\setupTABLE[r][1][align={flushleft,low,verytolerant,nothyphenated}] % 
but not in header row.
\placetable[top,page][table]{
Table 2 caption.\footnote{Footnote in caption. Footnote in caption.
Footnote in caption. Footnote in caption. Footnote in caption. 
Footnote in caption.
}\footnote{Second footnote in caption.}
\placelocalfootnotes
}{
\placelegend{
\bTABLE%
\bTR{}\bTD{}A\note[Footnote_mark_1] 
\eTD\bTD{}B\note[Footnote_mark_2]\eTD\eTR%
\bTR{}\bTD{}1 \eTD\bTD{}2\eTD\eTR%
\eTABLE%
\footnotetext[Footnote_mark_1]{Footnote to column A. Footnote 
to column A. Footnote to column A. Footnote to column 
A.}\footnotetext[Footnote_mark_2]{Footnote to column B.}
}{
\footnoteframed{\placelocalfootnotes}
\stoplocalfootnotes
}
}
}

\stoptext

MkII --- this comes close to what I want.

- Captions are centered above the TABLE, more or less, and long captions
  are constrained to a width having reasonable relationship to the width
  of the TABLE.
- Footnotes in the caption appear in a block of reasonable width at the
  bottom of the caption above the TABLE.
- Footnotes in the TABLE appear in a block below the TABLE whose left
  margin matches the TABLE's left margin.
- Symbols are being used for footnote marks.

Problems:

- I'd like the very short caption of the first table to be centered above
  the TABLE, but what I actually get seems to be paragraph with an
  invisible right margin that is centered over the TABLE, but at the text
  does not reach the paragraph's right margin, it looks misaligned. The
  same misaligment occurs in the second table's caption, though it is
  not so objectionable there as the footnotes' texts fill the width.
- The block of footnote texts of the TABLE is not wrapped at a reasonable
  width --- they seem to be left-aligned, but their right margin runs off
  the page.
- I'd like one numbering scheme for the for the whole table (caption and
  TABLE), such that the caption's notes are numbered *, † and the TABLE's
  notes are ‡, §. What I actually get is *, † for both, i.e., the
  numbering resets between caption and TABLE.
- I'd like commas separating multiple footnote marks next to each other,
  as in the caption in the example.
- Minor: I'd like to suppress the table from being placed on the the first
  page of the document as it floats above the title block, confusingly. A
  minor problem as realstically a table is unlikely to be placed this early
  in a real document.

MkIV (with change from \setupfootnotes to \setupnotation[footnote] as
noted) --- there are several new problems.

- The caption's footnotes are not printed, though their marks are.
- The TABLE's footnote marks are not printed (unknown references), but the
  notes themselves are (though wrongly).
- The texts of all the footnotes in the TABLE are run together into a
  single line that doesn't break at all.
___
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 / 

Re: [NTG-context] Ideas for restructuring the ConTeXt garden?

2011-03-12 Thread Henry House
Procházka Lukáš wrote:
[...]
  5) how to better promote context to new/latex users?
 
 For LaTeX incomers: it would be good to provide a sample setup (module?) 
 which would make Ctx generated .pdf looking very closely to that been 
 generated by LaTeX.
 
 Now, if you see a .pdf document and you are familiar with LaTeX, you 
 recognize immediately whether or not it was generated by LaTeX (Word's 
 signature is also unmatchable).
 
 If you create a first document with ConTeXt (moreover when migrating from 
 LaTeX), you probably won't be satisfied with the default look (letters too 
 big, heads not bold, spacing before/after heads too different from LaTeX's; 
 and the LaTeX default document looks very symphonic in my opinion) (but 
 also I can imagine that many Ctx defaults cannot be changed due to backward 
 compatibility reasons).
 
 The perfect feature of ConTeXt is that all these features may be 
 systematically altered (often [almost] impossible in LaTeX) but you must 
 search enough and study (and maybe ask the forum) to get the result which 
 would fulfil your aesthetic requirements.

I strongly agree that sample set-up code (ideally well-commented so that
it also serves as a tutorial of sorts) to reproduce the style of LaTeX
would be helpful. The appearance of LaTeX documents isn't perfect but it
produces reasonably high-quality results suitable for complex technical
documents right out of the box of the box without any tweaking, whereas
ConTeXt requires (at least it did for me) some trouble to set it up for
the first time. To some extent this is not because of the merit of the
LaTeX design itself but the fact that it is familiar and therefore
highly readable to someone used to reading it. It is also the point of
departure for a LaTeX user wanting to convert to using ConTeXt; hence, i
would imagine many such people would prefer to tweak a LaTeX-like
document appearance to better suit their needs rather than starting with
something quite different. Certainly, this was the case for me; being
basically satisfied with my LaTeX documents but wanting more control and
the option to use the advanced features of ConTeXt. Having sample set-up
code that emulated LaTeX would have eased the initial transition for me.
___
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
___