From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: box'es do not spread out
Date: Sat, 06 Feb 2016 06:43:31 +0100 [thread overview]
Message-ID: <56B58803.8030601@gmail.com> (raw)
In-Reply-To: <68007A53-9BE0-4BEE-A6B9-BCAFAEDC70EE@uva.nl>
[-- Attachment #1.1: Type: text/plain, Size: 1511 bytes --]
> Meer, Hans van der <mailto:H.vanderMeer@uva.nl>
> 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
[-- Attachment #1.2: Type: text/html, Size: 5273 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2016-02-06 5:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-05 19:34 Meer, Hans van der
2016-02-06 5:43 ` Wolfgang Schuster [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56B58803.8030601@gmail.com \
--to=schuster.wolfgang@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).