From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/18896 Path: news.gmane.org!not-for-mail From: Gerben Wierda Newsgroups: gmane.comp.tex.context Subject: Re: Why I needed \parbox and why does \framed not work here? Date: Sun, 13 Mar 2005 16:59:56 +0100 Message-ID: <3b7b76619dc12ab169e359b6cf4e6e04@rna.nl> References: <42341CB4.7000906@boede.nl> <423456CF.5080008@boede.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1110729786 7941 80.91.229.2 (13 Mar 2005 16:03:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 13 Mar 2005 16:03:06 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Mar 13 17:03:06 2005 Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1DAVYR-0000PM-O6 for gctc-ntg-context-518@m.gmane.org; Sun, 13 Mar 2005 17:02:59 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 061E412876; Sun, 13 Mar 2005 17:03:53 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 26305-03; Sun, 13 Mar 2005 17:03:52 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 46EF812855; Sun, 13 Mar 2005 17:00:01 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CB48812855 for ; Sun, 13 Mar 2005 16:59:59 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 26243-03 for ; Sun, 13 Mar 2005 16:59:58 +0100 (CET) Original-Received: from post-22.mail.nl.demon.net (post-22.mail.nl.demon.net [194.159.73.192]) by ronja.ntg.nl (Postfix) with ESMTP id D36AC127DA for ; Sun, 13 Mar 2005 16:59:58 +0100 (CET) Original-Received: from ii2.demon.nl ([82.161.98.36]:24029 helo=mail.rna.nl) by post-22.mail.nl.demon.net with esmtp (Exim 4.43) id 1DAVVW-0003rI-Mm for ntg-context@ntg.nl; Sun, 13 Mar 2005 15:59:58 +0000 Original-Received: from [192.168.2.99] (hedwig.rna.nl [192.168.2.99]) by mail.rna.nl (Postfix) with ESMTP id 317FD6BEAF for ; Sun, 13 Mar 2005 16:59:58 +0100 (CET) In-Reply-To: <423456CF.5080008@boede.nl> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.619.2) X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl X-MailScanner-From: ntg-context-bounces@ntg.nl X-MailScanner-To: gctc-ntg-context-518@m.gmane.org Xref: news.gmane.org gmane.comp.tex.context:18896 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:18896 Hi Willi, Thanks. If what you changed was the addition of the (2cm) stuff, I did try that but it did not change anything at that time. But now I notice that I need to start my rows with a \NC. I would have thought that a \NC would be like a \crlf or a \page and that it would have been implied in the \NR command. I find this counterintuitive. Anyway, Having that (2cm) stuff in the \startabulate makes all tables the same in column width. I used to be able to have one command \xttable where the result depended on what I had in the main text. So, yes, I can use p columns, but that means that all of my tables will hae to have identical column widths. That is why I wanted to use c columns and have that decision in the text. So I would still be interested in a way of doing \parbox in ConTeXt. (For non-LaTeX users \parbox{2cm}{text text text text etc} creates a paragraph 2 cm wide and sets the text in it. The height of the box is the result of that typesetting.) G On Mar 13, 2005, at 16:05, Willi Egger wrote: > Hi Gerben, > > There is no worry about the mentioned chaos. You might be lucky, that > your definition is giving a result at all. > > If you consult the manual or read the article in the MAPS22 on > tabulating, you will see, that you missed a correct setup of the > tabulation. > > I attach my version and it works. > > KR > Willi > > Gerben Wierda wrote: >> Here is the example again, now with p columns. Never mind the >> non-working third example (ConTeXt wraps three elements in the third >> column now but not inside the \framed), but it seems that ConTeXt >> does not wrap the first column at all. As a result, the other two are >> very small. >> G >> PS. The ConTeXT manual does not have \starttable documentation, not >> does the wiki (how does 'p' work etc). >> % Try with 'p' columns >> \usemodule[bib] % defines \newcommand >> \newcommand{\operand}[1]{{\sc #1}} >> \newcommand{\ttvalue}[1]{{\sc #1}} >> \newcommand{\xttable}[7]{\starttable[|p|p|p|]\HL % >> #1 \NC #2 \NC #1 \operand{#3} #2 \SR\HL >> \ttvalue{false} \NC \ttvalue{false} \NC \ttvalue{#4} \FR % >> \ttvalue{false} \NC \ttvalue{true} \NC \ttvalue{#5} \MR % >> \ttvalue{true} \NC \ttvalue{false} \NC \ttvalue{#6} \MR % >> \ttvalue{true} \NC \ttvalue{true} \NC \ttvalue{#7} \LR\HL % >> \stoptable} >> \newcommand{\ttable}[5]{\xttable{a}{b}{#1}{#2}{#3}{#4}{#5}} >> \starttext >> Looks fine:\blank >> \midaligned{% >> \xttable{Statement X}{Statement Y}{$\Rightarrow$}% >> {unknown}{unknown}{invalid (false)}{valid (true)} >> } >> This doesn't work:\blank >> \midaligned{% >> \xttable{Some sort of longer statement}{Another sort of longer >> statement}% >> {$\Rightarrow$}% >> {unknown}{unknown}{invalid (false)}{valid (true)} >> } >> This doesn't work either:\blank >> \midaligned{% >> \xttable{\framed[width=2cm,frame=off]{Some sort\par of longer >> statement\par}}{\framed[width=2cm,frame=off]{Another sort\par of >> longer >> statement\par}}{$\Rightarrow$}% >> {unknown}{unknown}{invalid (false)}{valid (true)} >> } >> \stoptext >> _______________________________________________ >> ntg-context mailing list >> ntg-context@ntg.nl >> http://www.ntg.nl/mailman/listinfo/ntg-context > % Truthtables Gerben Wierda > % C0ntext file > % filename: truthtable-Wierda.tex > % Gerben Wierda > % W. Egger > % 13-03-2005 > > \setupoutput[pdftex] > \setupbodyfont[ss,12pt] > > \usemodule[bib] % defines \newcommand > \newcommand{\operand}[1]{{\sc #1}} > \newcommand{\ttvalue}[1]{{\sc #1}} > \newcommand{\xttable}[7]{\starttable[|p(2cm)|p(5cm)|p(3cm)|] > \HL % > \NC #1 \NC #2 \NC #1 \operand{#3} #2 \NC\NR > \HL > \NC \ttvalue{false} \NC \ttvalue{false} \NC \ttvalue{#4} \NC\NR % > \NC \ttvalue{false} \NC \ttvalue{true} \NC \ttvalue{#5} \NC\NR % > \NC \ttvalue{true} \NC \ttvalue{false} \NC \ttvalue{#6} \NC \NR % > \NC \ttvalue{true} \NC \ttvalue{true} \NC \ttvalue{#7} \NC\NR\HL % > \stoptable} > \newcommand{\ttable}[5]{\xttable{a}{b}{#1}{#2}{#3}{#4}{#5}} > \starttext > Looks fine:\blank > \midaligned{% > \xttable{Statement X}{Statement Y}{$\Rightarrow$}% > {unknown}{unknown}{invalid (false)}{valid (true)} > } > > > This doesn't work:\blank > \midaligned{% > \xttable{Some sort of longer statement}{Another sort of longer > statement}% > {$\Rightarrow$}% > {unknown}{unknown}{invalid (false)}{valid (true)} > } > > % This doesn't work either:\blank > % \midaligned{% > % \xttable{\framed[width=2cm,frame=off]{Some sort of longer > % statement\par}}{\framed[width=2cm,frame=off]{Another sort of longer > % statement\par}}{$\Rightarrow$}% > % {unknown}{unknown}{invalid (false)}{valid (true)} > % } > \stoptext > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context