From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/4973 Path: main.gmane.org!not-for-mail From: Tarik Kara Newsgroups: gmane.comp.tex.context Subject: Re: Table problem Date: Sun, 8 Jul 2001 22:23:23 +0300 (EET DST) Sender: owner-ntg-context@let.uu.nl Message-ID: References: <5.1.0.14.0.20010707203504.00ab2e48@public.uni-hamburg.de> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035395599 30257 80.91.224.250 (23 Oct 2002 17:53:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:53:19 +0000 (UTC) Cc: ConTeXt mailing list Original-To: Eckhart =?iso-8859-1?Q?Guth=F6hrlein?= In-Reply-To: <5.1.0.14.0.20010707203504.00ab2e48@public.uni-hamburg.de> Xref: main.gmane.org gmane.comp.tex.context:4973 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:4973 Eckhart, thanks for the solutions and the explanations. I wish more was translated to english. Also more documentation on math would be nice. But given all that Hans is doing I can't ask for more. Good luck with your thesis and thanks again. Have fun, Tar{\i}k On Sat, 7 Jul 2001, Eckhart [iso-8859-1] Guthöhrlein wrote: > > I'm just switching from LaTeX, too, so don't expect too much from me. But I > think that > > \starttable[|l|c|c|c|] > \NC \NC \NC\TWO{Agent 2} \NC\SR > \NC \NC \NC C \NC D \NC\SR > \DC \DC \DL[2] \DR > \NC \LOW{Agent 1} \NC C \VL $(-5,-5)$ \VL $(-1,-10)$ \VL\SR > \DC \DC \DL[2] \DR > \NC \NC D \VL $(-10,-1)$ \VL $(-2,-2)$ \VL\SR > \DC \DC \DL[2] \DR > \stoptable > > solves your problem. A possibility for the alignment at the comma may be > > \starttable[|l|c|r s0|l s3 |r s0 |l s3|] > \NC \NC \NC\FOUR\JustCenter{Agent > 2} \NC\SR > \NC \NC \NC\TWO\JustCenter{C} \NC > \TWO\JustCenter{D} \NC\SR > \DC \DC \DL[4] \DR > \NC \LOW{Agent 1} \NC C \VL $(-5$ \NC $,-5)$ \VL $(-1$ \NC > $,-10)$ \VL\SR > \DC \DC \DL[4] \DR > \NC \NC D \VL $(-10$ \NC $,-1)$ \VL $(-2$ \NC > $,-2)$ \VL\SR > \DC \DC \DL[4] \DR > \stoptable > > This is something like r@{,}l in LaTeX... At least it works. I put the > comma in the second column to get correct spacing. Maybe Hans or another > more experienced contexter knows a better solution to the alignment > problem. With natural tables, there is an alignment character, but I don't > know if this is the case with table and tabulate, too. And I'm not sure if > it could actually work in this case, since you don't simply want to type a > number with a decimal comma, but a pair of numbers in math mode, separated > by a comma. > The vertical alignment of 'Agent 1' is not perfect, though. Time for a > question: Is there a possibility to span an arbitrary number of rows and > align some text vertically centered in the resulting space? (ny=3 like in > natural tables, with additional centering?) The multirow package does this > for latex (quite well, except for very special cases). > Btw, there are some examples of tables in the beginners' manual which are > not (yet?) in the english beta reference manual, so you may want to have a > look at this. > I think tables are a topic where the context documentation (at least the > english one) ought to be extended, especially for newcomers and 'converts' > from latex. As soon as I am more experienced, and as soon as I have > finished my current work (diploma thesis), I would be willing make > contributions in this area (although the first precondition might take some > time...) > > Eckhart > > >