From: Lars Huttar <lars_huttar@sil.org>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: a way to implement \testcolumn in mixedcolumns
Date: Tue, 03 Dec 2013 09:10:43 -0500 [thread overview]
Message-ID: <529DE663.50603@sil.org> (raw)
In-Reply-To: <52978CBA.3030109@wxs.nl>
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
___________________________________________________________________________________
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 14:10 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 [this message]
2013-12-03 21:40 ` Hans Hagen
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=529DE663.50603@sil.org \
--to=lars_huttar@sil.org \
--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).