ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: makeupwidth in columns
Date: Sun, 24 Feb 2013 23:04:03 +0100	[thread overview]
Message-ID: <94A00BB2-E20A-4814-8DD7-C95CDDB8A52B@gmail.com> (raw)
In-Reply-To: <831642AA-ECFB-4955-B1F9-79B0163E4210@uva.nl>


Am 24.02.2013 um 16:36 schrieb "Meer, H. van der" <H.vanderMeer@uva.nl>:

> The contextrefmanual tells me in table 3.2 the following on the behaviour of the variables denoting the width of texts:
> 
> <Untitled.jpg>
> 
> But the claim that \textwidth gives the width of a column is false. See the following minimal example, the first picture is set with 0.45\makeupwidth, the second with 0.9\textwidth.
> It is clear that \textwidth does not follow the claim.


There is a local setting for the text width missing in the mliv version of the code.

% page-mul.mkiv

\unexpanded\def\page_mul_command_set_hsize % beware, this one is available for use in macros
  {\setbox\scratchbox\hbox{\page_mul_between_columns}%
   \d_page_mul_distance\wd\scratchbox
   \d_page_mul_available_width\dimexpr
      \makeupwidth
     -\d_page_mul_leftskip
     -\d_page_mul_rightskip
     -\nofcolumns\d_page_mul_distance
     +\d_page_mul_distance
   \relax
   \d_page_mul_used_width\dimexpr
      \d_page_mul_available_width/\nofcolumns
     -\d_page_mul_offset*\plustwo
   \relax
+  \textwidth\d_page_mul_used_width
   \hsize\d_page_mul_used_width}

% page-mix.mkiv

\unexpanded\def\page_mix_command_set_hsize
- {\hsize\d_page_mix_column_width}
+ {\textwidth\d_page_mix_column_width
+  \hsize\d_page_mix_column_width}

Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________


  reply	other threads:[~2013-02-24 22:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-24 15:36 Meer, H. van der
2013-02-24 22:04 ` Wolfgang Schuster [this message]
2013-02-24 22:21   ` Meer, H. van der

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=94A00BB2-E20A-4814-8DD7-C95CDDB8A52B@gmail.com \
    --to=wolfgang.schuster@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).