From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/25158 Path: news.gmane.org!not-for-mail From: "Maurice Diamantini (dom)" Newsgroups: gmane.comp.tex.context Subject: Re: framed texts for boxing stuff Date: Mon, 9 Jan 2006 21:54:10 +0100 Message-ID: <36434073-921C-4BAA-889F-55CEB61C8F5C@free.fr> References: <43BEA6CF.1070800@gmx.net> <89EB6AFB-2C67-4BC4-B141-C04D7F5A25E5@science.uva.nl> <43BFB90C.6060308@wxs.nl> <227466F7-6C41-47B4-A3B1-525D68788F02@free.fr> <43C2407F.1090303@wxs.nl> Reply-To: Diamantini Maurice , mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1137200360 1969 80.91.229.2 (14 Jan 2006 00:59:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 14 Jan 2006 00:59:20 +0000 (UTC) Cc: Diamantini Maurice Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 14 01:59:09 2006 Return-path: Envelope-to: gctc-ntg-context-518@GMANE.ORG Original-Received: from mail-relay.eunet.no ([193.71.71.242]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ExZGi-0005nC-PQ for gctc-ntg-context-518@GMANE.ORG; Sat, 14 Jan 2006 01:27:45 +0100 Original-Received: from ronja.ntg.nl (ronja.vet.uu.nl [131.211.172.88]) by mail-relay.eunet.no (8.13.1/8.13.1/GN) with ESMTP id k09KuvLI030700 for ; Mon, 9 Jan 2006 21:56:59 +0100 (CET) (envelope-from ntg-context-bounces@ntg.nl) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4A537127E7; Mon, 9 Jan 2006 21:55:57 +0100 (CET) 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 03867-01; Mon, 9 Jan 2006 21:55:57 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0DB4E1277C; Mon, 9 Jan 2006 21:54:14 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B9C621277C for ; Mon, 9 Jan 2006 21:54:12 +0100 (CET) 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 03583-04 for ; Mon, 9 Jan 2006 21:54:11 +0100 (CET) Original-Received: from smtp1-g19.free.fr (smtp1-g19.free.fr [212.27.42.27]) by ronja.ntg.nl (Postfix) with SMTP id 819ED12775 for ; Mon, 9 Jan 2006 21:54:11 +0100 (CET) Original-Received: from [10.0.1.2] (lie77-2-82-241-132-53.fbx.proxad.net [82.241.132.53]) by smtp1-g19.free.fr (Postfix) with ESMTP id 1122C6E67F; Mon, 9 Jan 2006 21:54:11 +0100 (CET) In-Reply-To: <43C2407F.1090303@wxs.nl> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.746.2) 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-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:25158 Archived-At: Le 9 janv. 06 =E0 11:52, Hans Hagen a =E9crit : >> If it is impossible, is there any equivalent to de minipage or =20 >> \parbox LaTeX >> equivalent? > > i dunno what those are, vboxes? Not sure what exactly is "vboxes" (something you can put in hbox? yes =20= it is) but LaTeX raisebox, parbox, minipage can be put inside a text line. minipage can manage its ones footnote, but this is not the question =20 here. As the "LaTeX++" concurrent package designer, you should read some =20 page of the LaTeX reference documentation "A document Preparation System" It is little book (272 pages with the index !) and cover the core of =20= the package. Page 103 to 110 are related to boxes, and is what is missing in context. I'm not sure that ConTeXt \framed command is able to reproduce the parbox behavior (position a framed box relatively to its internal =20= top or bottom line and the outside baseline) > in most cases you can use framed (make sure that you set 'align' to =20= > something in order > to enter vmode) > > framedtext is a bit more clever and handles some spacing issues With your help, and some old reference doc and the wiki (http://wiki.contextgarden.net/Vertically_Centered_Boxes) I tested the following "one line text" which works. (My version of TeXExec 5.2.4 doesn't seem to support \startframed and \stopframed so I use \framed instead). \starttext % align: no left right middle normal high low lohi justified % location: low depth hanging a word and --% \framed[width=3D.2\textwidth, align=3Dflushright, location=3Ddepth]{= some stuff }% --% \framed[height=3D3em,width=3D11em, align=3D{flushleft,lohi}, =20 location=3Dhanging]{ other stuff }% --% another word, same line \stoptext But more generaly, there is a frequent need about boxing stuff and it seems that the \framed command is the way to go. But it's not always easy to guess the various parameters to get an expected behavior. So what is the current reference documentation about framed - Context the manual (page 206) ? - ConTeXt an excursion (page 45) ? Such a command is usefull inside some "hardcoded" slide. And there could be a "\boxed" or "\cell" macro with default "frame=3Doff" parameters just to serve as special tabular cell. I think there has to be two pairs of informations to position a box (i.e. a "cell" text): - how is the box is positioned relatively to its environment (the =20 location=3D keyword I think), - how to position the stuff **inside** the box (align=3D keyword) What is the need for these 2 parameters : - inside the box : everywhere. that implies two reals numbers between 0.0 and 1.0 (perhaps wider?) with some keyword for predefined values (flushleft, middle, =20 flushright low, high, lohi and baseline, (vjustified, justified=3Dhjustified serve another feature) - outside the box : only verticaly ? one real number [0.0..1.0] plus low depth (=3Dbase?) hanging (=3Dtop) Here a parbox provide an option for aligning the external baseline on the "top" ou "bottom" internal line. How can I simply optain the "0.5 =3D vertical middle" Probably the positionning parameters for outside the box are more complicated : more than the internal reference point mention above is to which external reference point the inetrenal point should be aligned to ? Generaly the baseline of the parent is the choosen one, but =20 perhaps one like to use the "0.5ex hight" one as in minus sign in the "3-2," =20 string (but the TeX command \raise0.5ex could do that) -- Maurice