From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29139 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: framed and align=no Date: Tue, 04 Jul 2006 17:24:59 +0200 Message-ID: <44AA884B.9010004@wxs.nl> References: <44A2A430.5070006@elvenkind.com> <34EE12B5-1988-45DE-9E3F-94A069C2E286@science.uva.nl> <44A3BF53.3030404@wxs.nl> <9829F0D3-49C8-4FE2-9B2A-413163A2BB97@science.uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1152026721 29250 80.91.229.2 (4 Jul 2006 15:25:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 Jul 2006 15:25:21 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 04 17:25:19 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 1Fxmm3-0005H6-IU for gctc-ntg-context-518@m.gmane.org; Tue, 04 Jul 2006 17:25:15 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6E5D91281A; Tue, 4 Jul 2006 17:25:15 +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 25602-01; Tue, 4 Jul 2006 17:25:06 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8CF68127C6; Tue, 4 Jul 2006 17:25:06 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5D9B4127C6 for ; Tue, 4 Jul 2006 17:25:03 +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 19514-06 for ; Tue, 4 Jul 2006 17:24:59 +0200 (CEST) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by ronja.ntg.nl (Postfix) with SMTP id D715F127BD for ; Tue, 4 Jul 2006 17:24:57 +0200 (CEST) Original-Received: from [192.168.1.95] (unverified [192.168.1.95]) by controller-1 (SurgeMail 3.5b3) with ESMTP id 25209 for ; Tue, 04 Jul 2006 19:24:56 +0400 User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) Original-To: mailing list for ConTeXt users In-Reply-To: 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.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:29139 Archived-At: Hans van der Meer wrote: > On Jun 29, 2006, at 17:16, Hans van der Meer wrote: > > >> On Jun 29, 2006, at 13:53, Hans Hagen wrote: >> >> >>>> Thanks. I installed it and it works. Witness the examples below. >>>> Will this be installed in next ConTeXt versions? I would be >>>> grateful. >>>> One question of naming: >>>> I think "none" is a better descriptive name then "disable" >>>> >>>> >>> other keywords are already taken >>> >> A pity, but I think one could live with that. >> From your reply I infer that the next ConTeXt release will contain >> this option. >> If not expressis verbis denied, I will count on it. >> > > I am afraid I was too optimistic here. > > 1. the keyword "disable" seems already been taken in relation to > \blanksdisabletrue in core-spa.tex. I changed it to the unused > "disabled" in order to experiment without interference. > blank has its own namespace, so there cannot be interference > 2. the solution given by Taco was: > % added (Taco Hoekwater 2006-06-28) > \def\v!disabled{disabled} > \setvalue{\@@ragged@@command\v!disabled}% > {\appendtoks \raggedright \parfillskip\zeropoint > \to\everyraggedcommand} > There must be another interference here, because surprisingly this > silently changes the default alignment in vertical sense to "high". > The code below shows it in the leftmost box, that I added to the > previous examples that Hans Hagen has sent back. > it depends ... align={disable,high} (or whatever combination wanted) > 3. Alignment in these examples is not correct. I add some \hfil's to > show that. In the combination {disable,lohi} somehow the horizontal > alignment change from the disable is killed by the lohi. The order > {lohi,disabled} or {disabled,lohi} has no effect. I looked into cor- > spa.tex but could not figure out how setting top and bottom vglue > could re-enable the old parfillskip value. I did add the parfillskip= > \zeropoint code to lohi/high/low but could not get a good result. > > Do you mind looking further into this? It would be much nicer if > horizontal and vertical alignment could behave orthogonal to each > other, instead of having some seemingly complex interdepency. > > \hbox{% > \vbox{\vskip5mm\framed > [frame=on,strut=no,align=disabled,width=1cm,height=2cm,offset=0pt]% > {\framed[frame=on,strut=no,offset=0pt]{lp}}\vskip5mm}% > \vbox{\vskip5mm\framed[frame=on,strut=no,align= > {disable,high},width=1cm,height=2cm,offset=0pt]% > {\framed[frame=on,strut=no,offset=0pt]{l}\hfil}\vskip5mm}% > \vbox{\vskip5mm\framed[frame=on,strut=no,align= > {disable,low},width=1cm,height=2cm,offset=0pt]% > {\hfil\framed[frame=on,strut=no,offset=0pt]{c}\hfil}\vskip5mm}% > \vbox{\vskip5mm\framed[frame=on,strut=no,align= > {disable,lohi},width=1cm,height=2cm,offset=0pt]% > {\hfil\framed[frame=on,strut=no,offset=0pt]{r}}\vskip5mm}% > } > according to taco (sitting next to me): tex removes the last hfil before applying parfilskip you need to keep in mind that begin/end paragraph handling is also influenced by hard coded tex behaviour if we start messing around with tricks to bypass that we end up in a mess this is one reason for using struts (adding kern 0 pt may also help: ... \hfil \kern0pt Hans