ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Idris Samawi Hamid" <ishamid@colostate.edu>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: spread box contents [trying again]
Date: Wed, 07 Mar 2007 09:47:34 -0700	[thread overview]
Message-ID: <op.totvlk2knx1yh1@walayah-main> (raw)

Hi gang,

Did not get any feedback, I'll try again:
==================================
Date: 2007-03-02 07:34 -700

Hmm, no reply yet, maybe the following is more interesting:

On Thu, 01 Mar 2007 12:30:42 -0700, Idris Samawi Hamid
<ishamid.at.remove.this.colostate.edu> wrote:

> How can I evenly spread the contents of a box or column-row? In PlainTeX
> there is
>
> \hbox{Here\hfill is\hfill an\hfill evenly\hfill spread\hfill line.}
>
> but there must be a better (read "ConTeXt-") way. I looked into thisyears
> ago and may have found the answer; but I've forgotten it...

===================================
\starttext

\defineparagraphs[TwoColumns][n=2,distance=2cm]
\setupparagraphs[TwoColumns][each][width=5cm,tolerance=stretch]
\setupframedtexts[frame=off]
      \startframedtext[middle]
      \startalignment[middle]
      \startTwoColumns
      \hbox spread \textwidth{Here is the first line 1a}
      \TwoColumns
      Here \hfill is \hfill the \hfill first \hfill line \hfill 1b
      \stopTwoColumns
      \startTwoColumns
      Here \hfill is \hfill the \hfill second \hfill line \hfill 2a
      \TwoColumns
      Here \hfill is \hfill the \hfill second \hfill line \hfill 2b
      \stopTwoColumns
      \stopalignment
      \stopframedtext

\stoptext
==============================

How can I get the first column right? Note that, according to the manual,
\textwidth gives the width of a column but in this case it apparently
gives a full \hsize.

RELATED QUESTION: How can I control the distance between rows? I do not
want any extra whitespace between rows (i.e., except the normal
interparagraph space).

Please advise!

Best
Idris

-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

             reply	other threads:[~2007-03-07 16:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-07 16:47 Idris Samawi Hamid [this message]
2007-03-07 17:38 ` Sanjoy Mahajan
2007-03-07 19:43   ` Idris Samawi Hamid
2007-03-07 20:41     ` Sanjoy Mahajan
2007-03-07 22:10 ` Willi Egger
2007-03-08  2:14   ` Idris Samawi Hamid

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=op.totvlk2knx1yh1@walayah-main \
    --to=ishamid@colostate.edu \
    --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).