From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77184 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: \stretched Date: Thu, 5 Jul 2012 17:49:37 +0200 Message-ID: References: <4FEC0825.1040208@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0029438455==" X-Trace: dough.gmane.org 1341503389 12151 80.91.229.3 (5 Jul 2012 15:49:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 5 Jul 2012 15:49:49 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 05 17:49:46 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SmoJL-0006xV-D7 for gctc-ntg-context-518@m.gmane.org; Thu, 05 Jul 2012 17:49:43 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 308EF10209; Thu, 5 Jul 2012 17:49:42 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id HSIYe+Lznji0; Thu, 5 Jul 2012 17:49:40 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A2A76101FA; Thu, 5 Jul 2012 17:49:40 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E2ADE101FA for ; Thu, 5 Jul 2012 17:49:39 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id JTR+7Q3+wYKN for ; Thu, 5 Jul 2012 17:49:39 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 2D45A1018E for ; Thu, 5 Jul 2012 17:49:39 +0200 (CEST) Original-Received: from mail-qa0-f48.google.com (mail-qa0-f48.google.com [209.85.216.48]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q65FnbIl026846 for ; Thu, 5 Jul 2012 17:49:38 +0200 Original-Received: by qadz32 with SMTP id z32so4255449qad.14 for ; Thu, 05 Jul 2012 08:49:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=4Js7tfgrIa8upT9d4oFgYMRMAIXRgXYLiLd8m2h7LN8=; b=jvbfSVNInEEnK53vsBtTDaPPm8aVE0yLC6sU0N0IM8mzwfC9ottvdR5MnoM24RVt17 K8Vb7kzgFnkCkFwASZd/ms+ULoKkY5mtRfq4/HZlbpotPJNP/N50yn/IUbRp6FqwUqdm lnq3sf3lFiQpAmYwN4nPzt8rnQWGkHWzIf8ATagm5c+qkCRogeip1hTcUZFglBjMcTDF AtVFZ9xj1/0JdiS36x87EYmfmRPCZyUQTTlL01bqE4arIP87/lAfIJEEA/VBc5j39edD bK3YQ4cxOd3/7qM4bkqO5EFyLXYhF8sSdH4Skl+fCuUCVnz/9YuHjK3a25+juTJPdLOt 2JNg== Original-Received: by 10.60.22.71 with SMTP id b7mr27106470oef.44.1341503377362; Thu, 05 Jul 2012 08:49:37 -0700 (PDT) Original-Received: by 10.182.74.231 with HTTP; Thu, 5 Jul 2012 08:49:37 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.216.48; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VHuDNClU - 263626894f53 - 20120705 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.13 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 Xref: news.gmane.org gmane.comp.tex.context:77184 Archived-At: --===============0029438455== Content-Type: multipart/alternative; boundary=e89a8f839e8f45d01904c41718df --e89a8f839e8f45d01904c41718df Content-Type: text/plain; charset=UTF-8 On Thu, Jul 5, 2012 at 5:23 PM, Willi Egger wrote: > Hello! > > I just downloaded yesterday night's version of Context and tried the > example provided. - What is wrong with the first line with the \hbox? This > stretched text is as long as the second line and uses the whole text width. > The third line has a width of 10cm as it seems. > > \ruledhbox to 5cm{\stretched{to the limit}} means that the box has 5cm, but \stretched must use some horizontal size (i.e \hsize) to stretch the text. The twos are different lengths: it doesn't make much sense to strecth the text "to the limit" to its natural width (yes, it makes sense --- stretched is nil) try \ruledhbox to 5cm{\stretched{to the limit}} \ruledhbox to 5cm{\hsize=5cm\stretched{to the limit}} \ruledhbox to 5cm{\hsize=0cm\stretched{to the limit}} \ruledhbox{\stretched{to the limit}} \ruledhbox{\stretched[width=10cm]{to the limit}} -- luigi --e89a8f839e8f45d01904c41718df Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Thu, Jul 5, 2012 at 5:23 PM, Willi Eg= ger <context@boede.nl> wrote:
Hello!

I just downloaded yesterday night's version of Context and tried the ex= ample provided. - What is wrong with the first line with the \hbox? This st= retched text is as long as the second line and uses the whole text width. T= he third line has a width of 10cm as it seems.


\ruledhbox to 5cm{\stretched{to the limit}}
means that the= box has 5cm, but \stretched must use some horizontal size (i.e \hsize)
to stretch the text. The twos are different lengths: it doesn't ma= ke much sense to strecth the text "to the limit" to its natural w= idth (yes, it makes sense --- stretched is nil)
try
\ruledhbox to 5cm{\stretched{to the limit}}
\ruledhbox = to 5cm{\hsize=3D5cm\stretched{to the limit}}
\ruledhbox to 5cm{\h= size=3D0cm\stretched{to the limit}}=C2=A0
\ruledhbox{\stretched{t= o the limit}}
\ruledhbox{\stretched[width=3D10cm]{to the limit}}

--
luigi

--e89a8f839e8f45d01904c41718df-- --===============0029438455== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0029438455==--