Re: [NTG-context] Re: good-looking tables in context

2005-04-09 Thread Paul Tremblay
On Wed, Apr 06, 2005 at 02:19:18PM +0200, Eckhart Guthöhrlein wrote:
 - left/right trimming of horizontal lines
 

What do you mean by left/right trimming? If I am correct, doesn't one
use \DL to draw a line at the bottom of a cell, \DC to not draw a line,
and \DL to end the row? This means one can draw lines just for the cells
one wants in any manner. 

Paul

-- 


*Paul Tremblay *
[EMAIL PROTECTED]*

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: good-looking tables in context

2005-04-06 Thread Eckhart Guthöhrlein
Good to know about the optional parameter of \HL.
I still miss the same things as Patrick:

- rules of arbitrary thickness (not only multiples of something)
- fine-tuning of vertical spacing, especially around thicker rules
- left/right trimming of horizontal lines

Patrick, please let me know if you manage to produce something
booktabs-like.

Thanks,
-- 
Eckhart
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: good-looking tables in context

2005-04-01 Thread Hans Hagen
Patrick Gundlach wrote:
There are commands like \toprule, \midrule, \bottomrule that insert
horizontal rules with different thickness (default values, optional
ones can be added with [..] right after the command). Eckhart has sent
an example in his first post.
\starttable[|||]
\HL[2]
\NC test \NC test \NC \FR
\HL[5]
\NC test \NC test \NC \MR
\HL[8]
\NC test \NC test \NC \LR
\HL[2]
\stoptable

To get a horizontal rule from column a to column b you can (in LaTeX)
use:
\cmidrule[wd](trim){ab}
where wd is the rulethickness, trim is where to cut off a bit, and a,
b the columns. This is a very nice command that I often use.
\starttable[]
\HL[2]
\NC test \NC test \NC test \NC \FR
\DC \DL[2] \DR
\NC test \NC test \NC test \NC \MR
\HL[8]
\NC test \NC test \NC test \NC \LR
\HL[2]
\stoptable
\addlinespace addes a little space between rows. 
we have \SR for that
Table preambles can be complicated... but the next one is pretty
simple:
[EMAIL PROTECTED]@{}}
means: to the left of the table, there should be no whitespace (i.e.
the leftmost glyph of the table should be tight to the preceding
glyph) now, there is a right aligned column, two left aligned, 22
centered columns and one type v and to the right there should be no
whitespace either. The column type v is defined like this
\framed[offset=overlay]{%
\starttable[s0|s1r|l|l|*{2}{c}|]
\NC right \NC left \NC left \NC one \NC two \AR
\NC r \NC l\NC l\NC 1   \NC 2   \AR
\stoptable
}
something is wrong with the format key defining mechanism and hooks; i need to 
check this

[actually, i need to merge the original table code and my patches into one file 
so that i can make things more robust]

\newcolumntype{v}[1]{{\raggedright\hspace{0pt}}p{#1}}
Ragged right but so that the first word can be hyphenated.
Or another columntype could be:
\newcolumntype{R}[1]{%
  
{\begin{turn}{90}\begin{minipage}[t][0pt]{#1}\smalltabsize\raggedright\hspace{0pt}}l%
  {\end{minipage}\end{turn}}%
}
that would lead to rotated raggedright text in a smaller font.
keys ... but i need to fix something
I know that ConTeXt tables have a lot of features that LaTeX tables
don't have.
hidden features -)
Hans
-
  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
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context