From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/25045 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: framed texts for boxing stuff Date: Tue, 10 Jan 2006 00:01:17 +0100 Message-ID: <43C2EB3D.1000301@wxs.nl> 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> <36434073-921C-4BAA-889F-55CEB61C8F5C@free.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1136847707 8328 80.91.229.2 (9 Jan 2006 23:01:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 9 Jan 2006 23:01:47 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Jan 10 00:01:41 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 1Ew612-0003ZZ-Em for gctc-ntg-context-518@m.gmane.org; Tue, 10 Jan 2006 00:01:28 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0E4A412805; Tue, 10 Jan 2006 00:01:28 +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 04595-05-2; Tue, 10 Jan 2006 00:01:26 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1016D127F9; Tue, 10 Jan 2006 00:01:26 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2D144127F4 for ; Tue, 10 Jan 2006 00:01:23 +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 04595-05 for ; Tue, 10 Jan 2006 00:01:20 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by ronja.ntg.nl (Postfix) with SMTP id 0906B127F9 for ; Tue, 10 Jan 2006 00:01:18 +0100 (CET) Original-Received: from [10.100.1.102] (unverified [10.100.1.102]) by controller-1 (SurgeMail 3.5b3) with ESMTP id 11029 for multiple; Tue, 10 Jan 2006 00:10:53 +0300 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: Diamantini Maurice , mailing list for ConTeXt users In-Reply-To: <36434073-921C-4BAA-889F-55CEB61C8F5C@free.fr> X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 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:25045 Archived-At: Maurice Diamantini (dom) wrote: > Not sure what exactly is "vboxes" (something you can put in hbox? yes > 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 > here. > As the "LaTeX++" concurrent package designer, you should read some > page of the > LaTeX reference documentation "A document Preparation System" > It is little book (272 pages with the index !) and cover the core of > the > package. hm, i prefer to start from user demands and personal needs; we used latex for a very short time and i don't remember mini pages -) > > 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 > top > or bottom line and the outside baseline) i think we can safely assume that all these things are available somehow (supp-box.tex implements a lot of box types) normally \framed can do what's needed, so in your case, if you can make clear what you want to achieve i'm sure that someone on this list can provide the answer > > >> in most cases you can use framed (make sure that you set 'align' to >> 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=.2\textwidth, align=flushright, location=depth]{ > some stuff > }% > --% > \framed[height=3em,width=11em, align={flushleft,lohi}, > location=hanging]{ > 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) ? the manual as well as examples inside the core-ful.tex file the most important properties of framed are - offset (none,overlay, dimension) - align (all kind of combinations) - width/height (dimension or keyword) - strut (yes|no) just play a bit with it and you'll see the picture > > Such a command is usefull inside some "hardcoded" slide. > And there could be a "\boxed" or "\cell" macro with default > "frame=off" 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 > location= > keyword I think), no, location is limited to a few options; you can use macros like \offset[...]{} or other box positioning macros; layers are also an option > - how to position the stuff **inside** the box (align= 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?) what are those numbers representing? > with some keyword for predefined values (flushleft, middle, flushright > low, high, lohi and baseline, > (vjustified, justified=hjustified serve another feature) > > - outside the box : only verticaly ? > one real number [0.0..1.0] plus low depth (=base?) hanging (=top) > 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 = 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 perhaps > one > like to use the "0.5ex hight" one as in minus sign in the "3-2," > string > (but the TeX command \raise0.5ex could do that) indeed, \raise and \lower and cousins can come in handy (what do you use those mini mages for?) Hans