On 11/28/2013 1:34 PM, Hans Hagen wrote:
That macro was never meant for mixed columns. I made a variant that works ok in mixed columns which will be in the next beta.
\setuptolerance[verytolerant]
\starttext
\startmixedcolumns
\dorecurse{4}{\input ward \par}
\testcolumn[10][-1pt] % 10 lines - 1pt slack
\dorecurse{2}{\input ward \par}
\stopmixedcolumns
\stoptext
Ok. It looks like the second parameter to \testcolumn is now required (it didn't used to be). What does this slack value do? Does it mean that the minimum amount of space left in the column is 10 lines minus 1pt? Also, in the Dec. 2 beta (current version: 2013.12.02 15:22), the \column command now causes an error when we come to the \stopmixedcolumns. I don't know if it's connected with the above change, or something else. MWE: change the \testcolumn command above to \column. I get the following error output: ! LuaTeX error C:/context/tex/texmf-context/tex/context/base/page-mix.lua:474 : attempt to compare number with nil stack traceback: C:/context/tex/texmf-context/tex/context/base/page-mix.lua :474: in function 'process_penalty' C:/context/tex/texmf-context/tex/context/base/page-mix.lua :572: in function 'setsplit' C:/context/tex/texmf-context/tex/context/base/page-mix.lua :687: in function 'setsplit' C:/context/tex/texmf-context/tex/context/base/page-mix.lua :819: in function 'mixsetsplit' [string "\directlua "]:1: in main chunk. system > tex > error on line 14 in file C:/Users/Huttar/Documents/work/tex/test-beta-testcolumn.tex: LuaTeX error ... 4 5 \startmixedcolumns 6 7 \dorecurse{4}{\input ward \par} 8 9 %\testcolumn[10][-1pt] % 10 lines - 1pt slack 10 \column 11 12 \dorecurse{2}{\input ward \par} 13 14 >> \stopmixedcolumns 15 16 \stoptext 17 \ctxcommand #1 -\directlua {commands.#1} \page_mix_routine_construct ...\else false\fi , }} \deadcycles \zerocount \page_mix_routine_continue ...ine_construct \v!no \page_mix_routine_package ... \page_otr_command_routine ...mix_routine_continue \or \page_mix_routine_bala... \page_otr_triggered_output_routine ...and_routine \fi <output> ...eforeoutput \page_otr_triggered_output_routine \relax \the \everyafterout... ... l.14 \stopmixedcolumns ? X Thanks again for your work on this. We're continually reevaluating whether we can use the beta or need to stick with the stable version. At the moment, it looks like we'll be sticking with the stable version. But we'd like to use the beta, if the problems can be ironed out. Lars