On Sat, 4 Aug 2007, Patrick Gundlach wrote:
Hello Aditya,
To me this looks exactly similar to the example in the booktabs manual. Am I missing something, or is it fair to say that context can generate booktabs like tables?
Any way to shorten the rule \DL[2]? IMO this is critical for nicely set tables.
But the rest looks very, very good! So many thanks for that!
I once had to typeset a huge table, with huge in the sense of 'lots of rows and lots of columns' on a A4 single page. This would not have been possible without the help of \cmidrule which is a rule between two rows but restricted to a number of columns and with the ability to trim the rule on the left, the right or both sides.
Gnu stuffed -------- ----------- Emu stuffed
So the first rule should be aligned left with the other rules in that table, the two rules must not touch each other (this is the trick to avoid the ugly vertical rules!) In booktabs speak this would be \cmidrule(r){1-1} and \cmidrule(l){2-2}. (booktabs.pdf on a LaTeX installation).
Ah. Thank you for the explaination. I now understand the need for cmidrule. It should be possible to get something like this with TaBlE, but in the absense of the original PCTEX manual, I have not been able to understand how to set tables. thrd-tab.tex says that you can actually control the tokens for columns using alternate vrules, but I have not been able to get it to work.
Is there something like \arraystretch(?) which is a factor that every vertical whitespace in a table is multiplied with? This way you can increase/decrease the height of a table without big trouble.
If you are happy with an integer scaling, and do not use \Lower (it may be possible to do this more correctly, with distance={{a}{b}{c}}, and action for unknown set so that we call \OpenUp{a}{b}\def\LOW{\Lower{c}}). \unprotected\def\defineTABLEunits {\processaction [\@@tidistance] [ \v!none=>\OpenUp00\def\LOW{\Lower6 }, \v!small=>\OpenUp00\def\LOW{\Lower6 }, % == baseline \v!medium=>\OpenUp11\def\LOW{\Lower7 }, \v!big=>\OpenUp22\def\LOW{\Lower8 }, \v!unknown=>\expandafter\OpenUp\@@tidistance]%AM: Added \doifelse\@@tidistance\v!none {\chardef\TABLErowfactor\zerocount} {\chardef\TABLErowfactor\plustwo }} \setuptables[rulethickness=0.03em] \startbuffer \starttable[s0|l|i2l|i2r|] \HL[3] \NC \Use2[c]{Item} \NC \NC \AR \DL[2] \DC \DR \NC Animal \NC Description \NC Price (\$) \NC \AR \HL[2] \NC Gnat \NC per gram \NC 13.65 \NC \AR \NC \NC each \NC 0.01 \NC \AR \NC Gnu \NC stuffed \NC 92.50 \NC \AR \NC Emu \NC stuffed \NC 33.33 \NC \AR \NC Armadillo \NC frozen \NC 8.99 \NC \AR \HL[3] \stoptable \stopbuffer \starttext \getbuffer \setuptables[distance=big] \getbuffer \setuptables[distance={{1}{10}}] \getbuffer \setuptables[distance=55] \getbuffer \stoptext Aditya