Thanks, Wolfgang. Just changed my source and checked. Now columns come out correctly when using \textwidth as a size parameter. As always I assume this correction will go into the next beta.

Hans van der Meer



On 24 feb. 2013, at 23:04, Wolfgang Schuster <wolfgang.schuster@gmail.com> wrote:


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
___________________________________________________________________________________