From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29042 Path: news.gmane.org!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: unequal framed's Date: Thu, 29 Jun 2006 23:05:14 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v749.3) Content-Type: multipart/mixed; boundary="===============1062491450==" X-Trace: sea.gmane.org 1151615169 8716 80.91.229.2 (29 Jun 2006 21:06:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Jun 2006 21:06:09 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Jun 29 23:06:06 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org 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 1Fw3i5-0003Ij-Cl for gctc-ntg-context-518@m.gmane.org; Thu, 29 Jun 2006 23:06:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 49E3E12847; Thu, 29 Jun 2006 23:06:01 +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 17252-02; Thu, 29 Jun 2006 23:05:53 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3A1451285F; Thu, 29 Jun 2006 23:05:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D6B371285F for ; Thu, 29 Jun 2006 23:05:45 +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 16423-05-2 for ; Thu, 29 Jun 2006 23:05:41 +0200 (CEST) Original-Received: from smtp.science.uva.nl (smtp.science.uva.nl [146.50.4.84]) by ronja.ntg.nl (Postfix) with SMTP id A766412847 for ; Thu, 29 Jun 2006 23:05:41 +0200 (CEST) Original-Received: from 118-161.uva.surfnetthuis.nl [145.98.118.161] by smtp.science.uva.nl with ESMTP (sendmail 8.11.6p2/config 11.36). id k5TL5ZP08253; Thu, 29 Jun 2006 23:05:36 +0200 X-Organisation: Faculty of Science, University of Amsterdam, The Netherlands X-URL: http://www.science.uva.nl/ Original-To: NTG ConTeXt X-Mailer: Apple Mail (2.749.3) X-Virus-Scanned: by amavisd-new X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:29042 Archived-At: --===============1062491450== Content-Type: multipart/alternative; boundary=Apple-Mail-1--638261088 --Apple-Mail-1--638261088 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed This is a problem I am anxious to solve. Run this program: \starttext \newbox\testbox \hbox{% % centered \setbox\testbox=\vbox{\vskip5mm\framed [frame=on,align=disable,width=1cm,height=2cm,offset=0pt,location=depth,t op=\vss,bottom=\vss]{lp}\vskip5mm} \the\ht\testbox \box\testbox % bottom \setbox\testbox=\vbox{\vskip5mm\framed [frame=on,align=disable,width=1cm,height=2cm,offset=0pt,location=depth,t op=\vss,bottom=\empty]{lp}\vskip5mm} % note leaveout bottom=, not good \the\ht\testbox \box\testbox % top \setbox\testbox=\vbox{\vskip5mm\framed [frame=on,align=disable,width=1cm,height=2cm,offset=0pt,location=depth,t op=\empty,bottom=\vss]{lp}\vskip5mm} % note leaveout top=, not good \the\ht\testbox \box\testbox } \stoptext Now the middle box comes out higher than the other two, like this: ------------ ------------ | | ------------ | | | | |lp | | | | | | | | | | | | | |lp | | | | | | | | | | | | | | | | | | | |lp | | | ------------ ------------ ------------ The \ht's will tell the difference, the \dp's are 0 here. Using \vtop gives analogous results, then the depth of middle box is greater. Probing with [depth=0pt] makes no difference. Setting [strut=yes/no] makes some difference but is not the cause of the difference. Setting [align=no/line] makes no difference. Omitting [align=..] or using [align=normal] makes all boxes the same height but puts every contents in the middle, which is not what I want: one at the top, one in the middle and one at the bottom. How can I get the required result with all three the same height? Hans van der Meer --Apple-Mail-1--638261088 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1 This is a problem I am anxious to = solve.
Run = this program:

\starttext
\newbox\testbox
\hbox{%
% = centered
\setbox\testbox=3D\vbox{\vskip5mm\framed[frame=3Don,align= =3Ddisable,width=3D1cm,height=3D2cm,offset=3D0pt,location=3Ddepth,top=3D\v= ss,bottom=3D\vss]{lp}\vskip5mm}
\the\ht\testbox = \box\testbox
% bottom
\setbox\testbox=3D\vbox{\vskip5mm\framed[frame=3Don,align= =3Ddisable,width=3D1cm,height=3D2cm,offset=3D0pt,location=3Ddepth,top=3D\v= ss,bottom=3D\empty]{lp}\vskip5mm} % note leaveout bottom=3D, not = good
\the\ht\testbox \box\testbox
% top
\setbox\testbox=3D\vbox{\vskip5mm\framed[frame=3Don,align= =3Ddisable,width=3D1cm,height=3D2cm,offset=3D0pt,location=3Ddepth,top=3D\e= mpty,bottom=3D\vss]{lp}\vskip5mm} % note leaveout top=3D, not = good
\the\ht\testbox \box\testbox
}
\stoptext

Now the middle = box comes out higher than the other two, like = this:
=A0 =A0=A0 =A0=A0 =A0=A0 =A0=A0 = =A0------------
------------=A0 =A0| =A0 =A0=A0 =A0=A0 =A0|=A0 = =A0------------
| =A0 =A0=A0 =A0=A0 =A0|=A0 =A0| =A0 =A0=A0 =A0=A0 =A0|=A0= =A0|lp=A0 =A0 =A0=A0 =A0|
| =A0 =A0=A0 =A0=A0 =A0|=A0 = =A0| =A0 =A0=A0 =A0=A0 =A0|=A0 =A0| =A0 =A0=A0 =A0=A0 = =A0|
| = =A0 =A0=A0 =A0=A0 =A0|=A0 =A0| =A0 =A0=A0 =A0=A0 =A0|=A0 =A0| =A0 =A0=A0 = =A0=A0 =A0|
|lp=A0 =A0 =A0=A0 =A0|=A0 =A0| =A0 =A0=A0 =A0=A0 =A0|=A0 = =A0| =A0 =A0=A0 =A0=A0 =A0|
| =A0 =A0=A0 =A0=A0 =A0|=A0 = =A0| =A0 =A0=A0 =A0=A0 =A0|=A0 =A0| =A0 =A0=A0 =A0=A0 = =A0|
| = =A0 =A0=A0 =A0=A0 =A0|=A0 =A0| =A0 =A0=A0 =A0=A0 =A0|=A0 =A0| =A0 =A0=A0 = =A0=A0 =A0|
| =A0 =A0=A0 =A0=A0 =A0|=A0 =A0|lp=A0 =A0 =A0=A0 =A0|=A0 = =A0| =A0 =A0=A0 =A0=A0 =A0|
------------=A0 = =A0------------=A0 =A0------------
The \ht's will tell the = difference, the \dp's are 0 here.
Using \vtop gives analogous = results, then the depth of middle box is greater.

Probing with [depth=3D0pt] = makes no difference.
Setting [strut=3Dyes/no] makes some difference but is = not the cause of the difference.
Setting [align=3Dno/line] = makes no difference.
Omitting [align=3D..] or using [align=3Dnormal] makes = all boxes the same height but puts every contents in the middle, which = is not what I want: one at the top, one in the middle and one at the = bottom.

How can I get the required = result with all three the same height?

Hans van der = Meer



= --Apple-Mail-1--638261088-- --===============1062491450== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --===============1062491450==--