On 3/20/2013 10:28 AM, Wolfgang Schuster wrote:

Am 19.03.2013 um 20:50 schrieb Xan <dxpubl...@telefonica.net>:

Can you modify it for working? By the user perspective it's an annoying bug. A 
clean command should not produce that, isn't it?

I have to agree that the current situation with the \column command isn’t 
perfect but each solution has it’s own problems.

The example below uses three different definitions for the \column command, the 
first and third result in a empty column when there is to much text in the 
first column while the second definition ignores the command and balances the 
text of both columns.

<example>
\starttext \showframe

% Default method

\blank[force,12cm]

\startcolumns
\dorecurse{16}{a\par}
\column
b
\stopcolumns

\page

% Method 1

\unprotected\installcolumnbreakmethod \s!multicolumn \v!yes
  {\scratchdimen\dimexpr\pagegoal/2\relax
   \vskip \scratchdimen
   \penalty-200 % we can mark and intercept this
   \vskip-\scratchdimen}

\blank[force,12cm]

\startcolumns
\dorecurse{16}{a\par}
\column
b
\stopcolumns

\page

% Method 2

\unprotected\installcolumnbreakmethod \s!multicolumn \v!yes
  {\scratchdimen\dimexpr\pagegoal/2+\lineheight\relax
   \vskip \scratchdimen
   \penalty-200 % we can mark and intercept this
   \vskip-\scratchdimen}

\blank[force,12cm]

\startcolumns
\dorecurse{16}{a\par}
\column
b
\stopcolumns

\stoptext
</example>

For Wolfgangs eyes only:

\installcolumnbreakmethod \s!multicolumn \v!yes
  {\penalty\c_page_mix_break_forced\relax}

Maybe that one works ok.

Hans


--

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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 via email to