From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/18891 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 14:42:37 +0100 Message-ID: <095ba27cdd334febc243bb1ecd6f6f2c@rna.nl> References: <42341CB4.7000906@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 1110721421 16889 80.91.229.2 (13 Mar 2005 13:43:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 13 Mar 2005 13:43:41 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Mar 13 14:43:41 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 1DATNa-000679-MV for gctc-ntg-context-518@m.gmane.org; Sun, 13 Mar 2005 14:43:38 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 03A621280A; Sun, 13 Mar 2005 14:44:31 +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 24926-03; Sun, 13 Mar 2005 14:44:30 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 47FFF127BB; Sun, 13 Mar 2005 14:42:43 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4062C127BB for ; Sun, 13 Mar 2005 14:42:41 +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 24926-02 for ; Sun, 13 Mar 2005 14:42:40 +0100 (CET) Original-Received: from post-23.mail.nl.demon.net (post-23.mail.nl.demon.net [194.159.73.193]) by ronja.ntg.nl (Postfix) with ESMTP id 67F501279B for ; Sun, 13 Mar 2005 14:42:40 +0100 (CET) Original-Received: from ii2.demon.nl ([82.161.98.36]:23782 helo=mail.rna.nl) by post-23.mail.nl.demon.net with esmtp (Exim 4.43) id 1DATMe-000OxZ-AD for ntg-context@ntg.nl; Sun, 13 Mar 2005 13:42:40 +0000 Original-Received: from [192.168.2.99] (hedwig.rna.nl [192.168.2.99]) by mail.rna.nl (Postfix) with ESMTP id CA3C86BA56 for ; Sun, 13 Mar 2005 14:42:39 +0100 (CET) In-Reply-To: <42341CB4.7000906@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:18891 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:18891 Fine, but how do I influence the width of those p columns? With the old way I would put a TeX box as a single line item in a LaTeX tabular which had c columns. This worked very well, because I could use \parbox{2cm} in my use of the self-defined command. In other words, I could influence the width of the output for every table separately. What happens now is that in one table I get two narrow columns and a space and a wider column, but in others one longer statement is not wrapped at all and two other columns with longer statements are made very narrow. Chaos. So, I still rather have a solution with c columns and a LaTeX \parbox like solution (but then one which works). G On Mar 13, 2005, at 11:57, Willi Egger wrote: > Hi Gerben > > The problem is, that \starttable[|c|c|c|] is for oneliners only. > Replace the statement with > \newcommand{\xttable}[7]{\starttable[|p|p|p|]\HL % > > > Kind regards > Willi > Gerben Wierda wrote: >> I am trying to convert to ConTeXt and I have a text with a lot of >> truth tables using a \ttable and \xttable command I defined. I ported >> these to ConTeXt but I can't get the \parbox -> \framed to work. >> % Example document with truth tables starts here >> \usemodule[bib] % defines \newcommand >> \newcommand{\operand}[1]{{\sc #1}} >> \newcommand{\ttvalue}[1]{{\sc #1}} >> \newcommand{\xttable}[7]{\starttable[|c|c|c|]\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 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 > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context >