From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/21619 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: \parbox, \framed, ... (was: Strange behaviour of \bTABLE ... \eTABLE) Date: Tue, 26 Jul 2005 17:41:54 +0200 Message-ID: <6faad9f005072608417b09c1c9@mail.gmail.com> Reply-To: Mojca Miklavec , mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1122392642 22451 80.91.229.2 (26 Jul 2005 15:44:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Jul 2005 15:44:02 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 26 17:44:00 2005 Return-path: 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 1DxRZB-0006d3-58 for gctc-ntg-context-518@m.gmane.org; Tue, 26 Jul 2005 17:42:01 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B0C30127A7; Tue, 26 Jul 2005 17:42:00 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19769-03; Tue, 26 Jul 2005 17:41:56 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AE256127B1; Tue, 26 Jul 2005 17:41:56 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E5B95127B1 for ; Tue, 26 Jul 2005 17:41:55 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19831-03 for ; Tue, 26 Jul 2005 17:41:54 +0200 (CEST) Original-Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.196]) by ronja.ntg.nl (Postfix) with ESMTP id DB570127A7 for ; Tue, 26 Jul 2005 17:41:54 +0200 (CEST) Original-Received: by nproxy.gmail.com with SMTP id a4so208697nfc for ; Tue, 26 Jul 2005 08:41:54 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=cqNmqSN8GxDJTIIKkNBLIPaimoH05ML25yK5v6KGDOHKSlgT3Oy1Jf8uDId88kpSi/DxUp11u0MF4EcVNqi7PtJ6iIdg/9O0vNrl0SceZG905cyXS7YhOfiLT37sK8zk76T40XVt5GmkCW6ISNt7X4p1qJhncF5SD6D0CKNaUt4= Original-Received: by 10.48.142.11 with SMTP id p11mr28484nfd; Tue, 26 Jul 2005 08:41:54 -0700 (PDT) Original-Received: by 10.48.247.2 with HTTP; Tue, 26 Jul 2005 08:41:54 -0700 (PDT) Original-To: mailing list for ConTeXt users Content-Disposition: inline X-Virus-Scanned: 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-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:21619 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:21619 Hans Hagen wrote: > Mojca Miklavec wrote: > > %%%%%% > > > > \documentclass{article} > > \begin{document} > > a box with a table: > > \fbox{\begin{tabular}[c]{l}1\\2\\3\end{tabular}}\par > > > > a midaligned parbox: \parbox[c]{1em}{1 2 3} > > \end{document} > > > > %%%%%% > > > ^^^^ watch the \\ ! ! ! ! Actually, "\\" is a part of \fbox{\begin{tabular}[c]{l}1\\2\\3\end{tabular}}\par while I was talking about typesetting a midaligned parbox: \parbox[c]{1em}{1 2 3} So I have to say: no, there's no "\\" present in "\parbox[c]{1em}{1 2 3}". But please forget about different line-braking than in LaTeX \parbox. It may be that different parameters for penalties are set anyway. I mainly wrote this because of the problems in live.contextgarden.net which is not fixed yet (see http://contextgarden.net/Vertically_centred). However, some other questions arised here: 1.) I saw \hbox, \vbox, \vtop, \lbox, \cbox, \rbox, \sbox, \tbox, \bbox on page 106 of cont-eni.pdf. But if I understand it properly, there's no alternative to LaTeX \parbox command. 1.1.) After grep-ing the LaTeX tree for "\parbox", my disk ran out of space 1.2.) \bTABLE ... \eTABLE seems too complicated to me to be used for such a simple thing as asking for a paragraph of a certain width, centered with regard to the current line. So would it be possible to implement \parbox in ConTeXt (or if someone can point me to an already existing command). The LaTeX definition is in tex\latex\base\latex.ltx, line 4692 (at least in my version). It does not have to have the same syntax, but at least the basic functionality. I also often need some stuff to be centered vertically, for example [big image] ----> some arrows and text ----> [big image] I use \bTABLE ... \eTABLE or \vcenter for that, but it's not the most perfect way of doing it. 2.) Is there any *neutral* version of a \framed command? To explain what I want to achive, an example is probably most illustrative: \starttext Hasselt $\displaystyle{\rm is: \matrix{\rm nice\cr\rm sunny\cr\rm domestic}}$, but the houses there \framed{$\displaystyle{\rm are: \matrix{\rm too\ high\cr\rm too\ bricky}}$} \stoptext Thank you, Mojca