From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: a way to implement \testcolumn in mixedcolumns
Date: Tue, 03 Dec 2013 22:40:02 +0100 [thread overview]
Message-ID: <529E4FB2.40903@wxs.nl> (raw)
In-Reply-To: <529DE663.50603@sil.org>
On 12/3/2013 3:10 PM, Lars Huttar wrote:
> 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).
i'll fix that
> What does this slack value do? Does it mean that the minimum amount of
> space left in the column is 10 lines minus 1pt?
indeed
> 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.
no, more to making section breaks working better in columns (i forgot to
rename a variable)
> 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.
fyi: i'll not patch the stable version
new beta
> Lars
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>
--
-----------------------------------------------------------------
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
___________________________________________________________________________________
next prev parent reply other threads:[~2013-12-03 21:40 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-20 21:47 Lars Huttar
2013-11-20 22:12 ` Lars Huttar
2013-11-22 21:59 ` Hans Hagen
2013-11-22 22:37 ` Lars Huttar
2013-11-23 11:49 ` Hans Hagen
2013-11-26 19:37 ` Lars Huttar
2013-11-28 18:34 ` Hans Hagen
2013-11-29 11:26 ` Lars Huttar (SIL gmail)
2013-11-29 11:46 ` Hans Hagen
2013-12-03 14:10 ` Lars Huttar
2013-12-03 21:40 ` Hans Hagen [this message]
2013-12-05 13:45 ` Lars Huttar (SIL gmail)
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=529E4FB2.40903@wxs.nl \
--to=pragma@wxs.nl \
--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).