From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/93616 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: box'es do not spread out Date: Sat, 06 Feb 2016 06:43:31 +0100 Message-ID: <56B58803.8030601@gmail.com> References: <68007A53-9BE0-4BEE-A6B9-BCAFAEDC70EE@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4722791058188722989==" X-Trace: ger.gmane.org 1454737472 16371 80.91.229.3 (6 Feb 2016 05:44:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Feb 2016 05:44:32 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Feb 06 06:44:21 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aRvfR-0000D5-08 for gctc-ntg-context-518@m.gmane.org; Sat, 06 Feb 2016 06:44:21 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 028446809; Sat, 6 Feb 2016 06:43:49 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Lvl76C4tJ1Rx; Sat, 6 Feb 2016 06:43:46 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id D49B56802; Sat, 6 Feb 2016 06:43:46 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D34F767FF for ; Sat, 6 Feb 2016 06:43:45 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DZETYYvaye9x for ; Sat, 6 Feb 2016 06:43:45 +0100 (CET) Original-Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 1A65267FB for ; Sat, 6 Feb 2016 06:43:34 +0100 (CET) Original-Received: by mail-wm0-f51.google.com with SMTP id r129so52171548wmr.0 for ; Fri, 05 Feb 2016 21:43:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=CzDegMfmh9QaUPuSu1odowQqmB2FeDByF5EqvB1ev00=; b=eN0u5jVT/Oi9Gp/2gW7LzS4/Xp0V7vR8XAkSznq/SgL0al86EueRVAsVlJmbJ+Bp5K W+PZPNRAF/IY+nXgaSGhZESLVIQISLcehyEf35fKwJFTQTMtVlbFzBVoAc1r2iQHTE0w KDlYjjDDR+e+geGNHxT+w7JM80klPqPQojCtqm86gw+vpBFJv5Ox7WuD2Wii0p1nVpZK EUWqhK+s/CasgWfzflmahTDjGTJLIMIVJ8MwEpOsRWydcXY7iBcPkIspEZ5NEFcTibPx WpFc6Qp7/IR4UQWbmbywkyRediDeHA65wC819DbQR1EBr5tp+KuSPGUtrw+ZHDGgl+8u z8Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type; bh=CzDegMfmh9QaUPuSu1odowQqmB2FeDByF5EqvB1ev00=; b=mjMVm6wvrvYOIOvgsbcwLPnlMlJgycv1K/YqQ4mQgS5mluAxaDmTxX8ZJ/a7XyYa+u jBOmtH13+ZOftexjsfk2LcCd8cHkxXGggM/OmNqN7WLArAO0wHN3wJrbhws8DMU/ypqp VeY1k/yXvvSKaGglDOAfZZsZFu9c+niOzQPtUX/OijjeqJuN7ZO/TdypCemKR7UY/aqR QdG/s98IoAtcrMHPhLVJeu9dvtEJcKOmQzJaeA4v2+fNdupOIHptbm3YwEyvjn7BYYZz Gwd1YX5iAeJihybvVpXEa5YOAFm9KiZe+Fq4eOXFgZOc7VyhPsrDw9Bdgm9BRkjynMAC jlew== X-Gm-Message-State: AG10YOSniYywYYdG+SN8K1UNP9QmhsO/pf0y+8fJlnbI0/XUiD0kyG+ze8+zwVgP6QfQbg== X-Received: by 10.194.104.6 with SMTP id ga6mr17372696wjb.17.1454737414409; Fri, 05 Feb 2016 21:43:34 -0800 (PST) Original-Received: from keima.localdomain (x2f2f9ad.dyn.telefonica.de. [2.242.249.173]) by smtp.gmail.com with ESMTPSA id v22sm1659037wmv.12.2016.02.05.21.43.33 for (version=TLSv1/SSLv3 cipher=OTHER); Fri, 05 Feb 2016 21:43:33 -0800 (PST) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: <68007A53-9BE0-4BEE-A6B9-BCAFAEDC70EE@uva.nl> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:93616 Archived-At: This is a multi-part message in MIME format. --===============4722791058188722989== Content-Type: multipart/alternative; boundary="------------000502030104070504010003" This is a multi-part message in MIME format. --------------000502030104070504010003 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > Meer, Hans van der > 5. Februar 2016 um 20:34 > I am struggling with the following problem: > > Collect a number of boxes with: > \global\setbox\placexcontent=\hbox{% > \box\placexcontent% collection of previous boxes > \box\placexbox% next box affixed to previous onse > \hskip\placexdistanceskip% spearation, replacing by \hfill does not > solve problem > }% > Thus the incoming \placexbox'es are strung together separated by a skip. > Later they are typeset centered as a whole with: > \hbox to\textwidth{%% will be wider than the sum of the original box > collection > \hss > \box\placexcontent% or \unhbox, doesn't look different > \unskip% unskip removes the last (extra) \hskip > \hss% should succumb to \hskip 0pt plus1fill > }% > > The problem is the following: > (1) \placexdistanceskip=10ptboxes are separated neatly > (2) \placexdistanceskip=0pt plus1fillBOXES DO NOT SPREAD OUT AS I > EXPECTED THEM TO DO > The flexible component does sadly not carry over to the final box, > apparently. > > Clearly my misunderstanding of working with boxes. > Can this be solved easily? It will really help when you send complete working examples and not only code snippets. Maybe you're looking for the \spreadhbox command. \starttext \setbox\scratchbox\emptyhbox \setbox\scratchbox\hbox{First box} \setbox\scratchbox\hbox{\box\scratchbox\hbox{Second box}} \setbox\scratchbox\hbox{\box\scratchbox\hbox{Third box}} \maxaligned{\spreadhbox\scratchbox} \stoptext Wolfgang --------------000502030104070504010003 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
5. Februar 2016 um 20:34
I am struggling with the following problem:

Collect a number of boxes with:
\global\setbox\placexcontent=\hbox{%
\box\placexcontent % collection of previous boxes
\box\placexbox % next box affixed to previous onse
\hskip\placexdistanceskip % spearation, replacing by \hfill does not solve problem
}%
Thus the incoming \placexbox'es are strung together separated by a skip.
Later they are typeset centered as a whole with:
\hbox to\textwidth{% % will be wider than the sum of the original box collection
\hss
\box\placexcontent % or \unhbox, doesn't look different
\unskip % unskip removes the last (extra) \hskip
\hss % should succumb to \hskip 0pt plus1fill
}%

The problem is the following:
(1) \placexdistanceskip=10pt boxes are separated neatly
(2) \placexdistanceskip=0pt plus1fill BOXES DO NOT SPREAD OUT AS I EXPECTED THEM TO DO
The flexible component does sadly not carry over to the final box, apparently.

Clearly my misunderstanding of working with boxes.
Can this be solved easily?
It will really help when you send complete working examples and not only code snippets.

Maybe you’re looking for the \spreadhbox command.

\starttext

\setbox\scratchbox\emptyhbox

\setbox\scratchbox\hbox{First box}
\setbox\scratchbox\hbox{\box\scratchbox\hbox{Second box}}
\setbox\scratchbox\hbox{\box\scratchbox\hbox{Third box}}

\maxaligned{\spreadhbox\scratchbox}

\stoptext

Wolfgang
--------------000502030104070504010003-- --===============4722791058188722989== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============4722791058188722989==--