Re: [NTG-context] bug in latest beta?

2017-11-01 Thread Pablo Rodriguez
On 11/01/2017 02:18 PM, Pablo Rodriguez wrote:
> [...]
> $ ./first-setup.sh --modules=all
> receiving incremental file list
> 
> sent 29 bytes  received 155 bytes  122.67 bytes/sec
> total size is 8,660,630  speedup is 47,068.64
> ./bin/mtxrun:5878: attempt to call local 'ln' (a nil value)

Hans,

many thanks for your fast fix.

After the newer beta I get another bug:

  $ mtxrunjit --generate
  ~/ctxbeta/tex/texmf-linux/bin/mtxrun:633: attempt to index local
'searchers' (a nil value)

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] bug in latest beta (2017.08.02 18:59)

2017-08-03 Thread Pablo Rodriguez
On 08/03/2017 08:50 AM, Hans Hagen wrote:
> On 8/3/2017 7:49 AM, Pablo Rodriguez wrote:
>> Hans,
>>
>> since it seems you don’t reproduce the bug, I wonder whether this might
>> be caused by Linux 32bit luatex binaries being version 1.0.5 and Windows
>> 64bt has version 1.0.6.x.
> no, it's more that i always have a newer luatex so older stuff has to be 
> simulated

Many thanks for the explanation and for the fix, Hans.

Beta from 2017.08.03 11:02 works perfectly fine with the two texts I
checked.

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] bug in latest beta (2017.08.02 18:59)

2017-08-03 Thread Hans Hagen

On 8/3/2017 7:49 AM, Pablo Rodriguez wrote:

On 08/03/2017 07:13 AM, Pablo Rodriguez wrote:

On 08/02/2017 11:08 PM, Hans Hagen wrote:

ok i uploaded a new beta (but with some experimental font stuff so who
knows what happens now)


I’m afraid I get a new crash with the same source (the log contains it):
[...]
lua error   > lua error on line 1 in file tex-bug.tex:

...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:965: You
cannot set field glue_sign in a node of type glue_spec
stack traceback:
[C]: in function 'setfield'
...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:965: in
function 'setboxglue'
...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:131: in
function <...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:64>

1 >>  \setupnote[footnote]
2 [align={hanging}]


Hans,

since it seems you don’t reproduce the bug, I wonder whether this might
be caused by Linux 32bit luatex binaries being version 1.0.5 and Windows
64bt has version 1.0.6.x.
no, it's more that i always have a newer luatex so older stuff has to be 
simulated


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] bug in latest beta (2017.08.02 18:59)

2017-08-02 Thread Pablo Rodriguez
On 08/03/2017 07:13 AM, Pablo Rodriguez wrote:
> On 08/02/2017 11:08 PM, Hans Hagen wrote:
>> ok i uploaded a new beta (but with some experimental font stuff so who 
>> knows what happens now)
> 
> I’m afraid I get a new crash with the same source (the log contains it):
> [...]
> lua error   > lua error on line 1 in file tex-bug.tex:
> 
> ...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:965: You
> cannot set field glue_sign in a node of type glue_spec
> stack traceback:
>   [C]: in function 'setfield'
>   ...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:965: in
> function 'setboxglue'
>   ...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:131: in
> function <...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:64>
> 
> 1 >>  \setupnote[footnote]
> 2 [align={hanging}]

Hans,

since it seems you don’t reproduce the bug, I wonder whether this might
be caused by Linux 32bit luatex binaries being version 1.0.5 and Windows
64bt has version 1.0.6.x.

Just in case it helps,

Pablo
-- 
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] bug in latest beta (2017.08.02 18:59)

2017-08-02 Thread Pablo Rodriguez
On 08/02/2017 11:08 PM, Hans Hagen wrote:
> ok i uploaded a new beta (but with some experimental font stuff so who 
> knows what happens now)

Hans,

I’m afraid I get a new crash with the same source (the log contains it):

open source > level 1, order 1, name
'/home/ousia/ctxbeta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
system  >
system  > ConTeXt  ver: 2017.08.02 23:00 MKIV beta  fmt:
2017.8.3  int: english/english
system  >
system  > 'cont-new.mkiv' loaded
open source > level 2, order 2, name
'/home/ousia/ctxbeta/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
close source> level 2, order 2, name
'/home/ousia/ctxbeta/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > files > jobname 'tex-bug', input './tex-bug.xml',
result 'tex-bug'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 2, order 3, name 'tex-bug.tex'
fonts   > beware: no fonts are loaded yet, using 'lm mono' in box
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
open source > level 3, order 4, name
'/home/ousia/ctxbeta/tex/texmf-context/tex/context/sample/common/knuth.tex'
close source> level 3, order 4, name
'/home/ousia/ctxbeta/tex/texmf-context/tex/context/sample/common/knuth.tex'

lua error   > lua error on line 1 in file tex-bug.tex:

...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:965: You
cannot set field glue_sign in a node of type glue_spec
stack traceback:
[C]: in function 'setfield'
...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:965: in
function 'setboxglue'
...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:131: in
function <...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:64>

1 >>  \setupnote[footnote]
2 [align={hanging}]
3
4 \starttext
5 a\footnote{\input knuth}
6 \stoptext
7


?

lua error   > lua error on line 1 in file tex-bug.tex:

...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:965: You
cannot set field glue_sign in a node of type glue_spec
stack traceback:
[C]: in function 'setfield'
...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:965: in
function 'setboxglue'
...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:131: in
function <...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:64>

1 >>  \setupnote[footnote]
2 [align={hanging}]
3
4 \starttext
5 a\footnote{\input knuth}
6 \stoptext
7

End of file on the terminal!

Many thanks for your help
-- 
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] bug in latest beta (2017.08.02 18:59)

2017-08-02 Thread Hans Hagen

On 8/2/2017 10:53 PM, Pablo Rodriguez wrote:


lua error   > lua error on line 1 in file /home/ousia/tex-bug.tex:

...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:962: attempt
to call global 'setfield' (a nil value)
stack traceback:
...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:962: in
function 'setboxglue'
...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:131: in
function <...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:64>

1 >>  \setupnote[footnote]
2 [align={hanging}]
3
4 \starttext
5 a\footnote{\input knuth}
6 \stoptext
7

End of file on the terminal!

Many thanks for your help,
ok i uploaded a new beta (but with some experimental font stuff so who 
knows what happens now)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] bug in latest beta (2017.08.02 18:59)

2017-08-02 Thread Pablo Rodriguez
On 08/02/2017 10:43 PM, Hans Hagen wrote:
> On 8/2/2017 9:58 PM, Pablo Rodriguez wrote:
>> Hans,
>>
>> I’m afraid latest beta (2017.08.02 18:59) crashes with this source:
>> [...]
> crashes with what message?
Hans,

here you have the log contents:

open source > level 1, order 1, name
'/home/ousia/ctxbeta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
system  >
system  > ConTeXt  ver: 2017.08.02 18:59 MKIV beta  fmt:
2017.8.2  int: english/english
system  >
system  > 'cont-new.mkiv' loaded
open source > level 2, order 2, name
'/home/ousia/ctxbeta/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
close source> level 2, order 2, name
'/home/ousia/ctxbeta/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > files > jobname 'tex-bug', input './tex-bug', result
'tex-bug'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 2, order 3, name '/home/ousia/tex-bug.tex'
fonts   > beware: no fonts are loaded yet, using 'lm mono' in box
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
open source > level 3, order 4, name
'/home/ousia/ctxbeta/tex/texmf-context/tex/context/sample/common/knuth.tex'
close source> level 3, order 4, name
'/home/ousia/ctxbeta/tex/texmf-context/tex/context/sample/common/knuth.tex'

lua error   > lua error on line 1 in file /home/ousia/tex-bug.tex:

...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:962: attempt
to call global 'setfield' (a nil value)
stack traceback:
...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:962: in
function 'setboxglue'
...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:131: in
function <...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:64>

1 >>  \setupnote[footnote]
2 [align={hanging}]
3
4 \starttext
5 a\footnote{\input knuth}
6 \stoptext
7


?

lua error   > lua error on line 1 in file /home/ousia/tex-bug.tex:

...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:962: attempt
to call global 'setfield' (a nil value)
stack traceback:
...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:962: in
function 'setboxglue'
...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:131: in
function <...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:64>

1 >>  \setupnote[footnote]
2 [align={hanging}]
3
4 \starttext
5 a\footnote{\input knuth}
6 \stoptext
7

End of file on the terminal!

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] bug in latest beta (2017.08.02 18:59)

2017-08-02 Thread Hans Hagen

On 8/2/2017 9:58 PM, Pablo Rodriguez wrote:

Hans,

I’m afraid latest beta (2017.08.02 18:59) crashes with this source:

 \setupnote[footnote]
 [align={hanging}]

 \starttext
 a\footnote{\input knuth}
 \stoptext

I’m afraid it might be a bug.

crashes with what message?


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bug in latest beta, shifted metapost (possibly with drawarrow)

2016-11-04 Thread Hans Hagen

On 11/3/2016 5:09 PM, Mikael P. Sundqvist wrote:

Dear list,

the example below has shifted axes. I updated to the latest standalone
earlier today. The problem was not present some weeks ago.

In particular look at the red line that should start from the origin...

\starttext
\startMPpage
ut:=1.0cm;
ux:=0.6cm;

vardef diffp(expr riktn) =
 ((-1,0)--(1,0)) rotatedaround (origin,angle(ut,riktn*ux))
enddef;

path taxel,xaxel;
taxel:=((-1.4,0)--(5.4,0));
xaxel:=((0,-1.4)--(0,4.6));
drawarrow taxel xyscaled(ut,ux);
drawarrow xaxel xyscaled(ut,ux);

label.bot("$t$", (point length(taxel) of taxel) xyscaled(ut,ux));
label.lft("$P$", (point length(xaxel) of xaxel) xyscaled(ut,ux));

draw image(
 vardef fun(expr t, x) = x*(3-x) enddef;
 for i=-1 step 0.5 until 5 :
  for j=-1 step 0.5 until 4 :
ii:=i;
jj:=j;
draw diffp(fun(ii,jj)) scaled 2bp shifted (ii*ut,jj*ux);
  endfor;
 endfor;

draw function (2, "x", "3/(1+2*exp(-3*x))" ,-1, 5, 1/5) xyscaled (ut,ux);

draw (0,0)--(3,3) xyscaled(ut,ux) withcolor darkred;

);
\stopMPpage
\stoptext


I'll fix it. Alan: we really need this one then:

vardef image@#(text t) =
save currentpicture ;
picture currentpicture ;
currentpicture := nullpicture ;
t ;
currentpicture
if str @# <> "" :
shifted (
  mfun_labxf@#   * lrcorner currentpicture
 + mfun_labyf@#  * ulcorner currentpicture
 + (1-mfun_labxf@#-mfun_labyf@#) * llcorner currentpicture
)
fi
enddef ;




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] bug in latest beta?

2016-09-05 Thread Pablo Rodriguez
On 09/05/2016 05:10 PM, Pablo Rodriguez wrote:
> [...]
> I’m afraid that the typo is present in the newer beta from today
> (2016.09.05 10:28).

The issue has been fixed in latest beta (2016.09.06 00:28).

Hans, many thanks for the fix.


Pablo
-- 
http://www.ousia.tk
___
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
___

Re: [NTG-context] bug in latest beta?

2016-09-05 Thread Pablo Rodriguez
On 09/05/2016 04:44 PM, luigi scarso wrote:
> On Mon, Sep 5, 2016 at 4:33 PM, Pablo Rodriguez wrote:
>> [...]
>> Luigi, would it be possible that all platforms have the latest LuaTeX
>> version included?
> 
> experimental is, well, experimental, so not trunk and not even a tag
> (i.e. a new version).
> But you can easily compile it from svn, it's a matter of
> ./build.sh --parallel --jit

Sorry for the noise, Luigi.

I have corrected the variable (as described in
https://mailman.ntg.nl/pipermail/ntg-context/2016/086761.html) and it
works fine.

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk
___
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
___

Re: [NTG-context] bug in latest beta?

2016-09-05 Thread Pablo Rodriguez
On 09/05/2016 08:36 AM, josephcan...@gmail.com wrote:
> Dear all,
> 
> Sounds like  a typo in file
> tex/texmf-context/tex/context/base/mkiv/node-nut.lua line 238
> 
> find_tail should be findtail I think.

Hi Joseph,

sorry for overlooking your message.

Of course, you are right. (I cannot code, but defining a local variable
in line 233 and using it with an underscore in line 238 doesn’t make
sense even to me.)

I’m afraid that the typo is present in the newer beta from today
(2016.09.05 10:28).

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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
___

Re: [NTG-context] bug in latest beta?

2016-09-05 Thread luigi scarso
On Mon, Sep 5, 2016 at 4:33 PM, Pablo Rodriguez  wrote:
> On 09/05/2016 10:39 AM, Akira Kakuto wrote:
>>> the following sample gives a Lua error with latest beta (2016.09.04 13:46):
>>
>> Compilation is fine in the latest luatex 0.98.4 with
>> mtx-context | current version: 2016.09.04 13:46.
>>
>
> Hi Akira,
>
> it seems that luatex-0.98.4 has been released for Windows today.
>
> I will wait for the release in the Linux 32bit platform.
>
> Luigi, would it be possible that all platforms have the latest LuaTeX
> version included?

experimental is, well, experimental, so not trunk and not even a tag
(i.e. a new version).
But you can easily compile it from svn, it's a matter of
./build.sh --parallel --jit


-- 
luigi
___
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
___

Re: [NTG-context] bug in latest beta?

2016-09-05 Thread Pablo Rodriguez
On 09/05/2016 10:39 AM, Akira Kakuto wrote:
>> the following sample gives a Lua error with latest beta (2016.09.04 13:46):
> 
> Compilation is fine in the latest luatex 0.98.4 with
> mtx-context | current version: 2016.09.04 13:46.
> 

Hi Akira,

it seems that luatex-0.98.4 has been released for Windows today.

I will wait for the release in the Linux 32bit platform.

Luigi, would it be possible that all platforms have the latest LuaTeX
version included?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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
___

Re: [NTG-context] bug in latest beta?

2016-09-05 Thread josephcanedo
Dear all,

Sounds like  a typo in file 
tex/texmf-context/tex/context/base/mkiv/node-nut.lua line 238

find_tail should be findtail I think.

BTW this new rangedimension function is helpful.

Joseph

De : Pablo Rodriguez___
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
___

Re: [NTG-context] bug in latest beta?

2015-06-01 Thread Otared Kavian
Hi Pablo,

Indeed the document I was talking about has been typeset with various versions 
of mkiv, but now I observe that sometimes the pagebreaks are made in a very 
strange way. Since I can’t make a minimal example, I put on the following link 
an excerpt of the PDF document where the bad pagebreaks can be seen: 

https://dl.dropboxusercontent.com/u/4316076/bad-pagebreak.pdf

(Please see pages 19 and 32). It seems that this happens, sometimes, but as far 
as I can say from my experiments the bad pagebreak happens always before a « 
proclaim » which is defined as follows:

\defineenumeration[proclaim]
[text=,
before={\blank\startbackground[frame=off,leftframe=on,
rulethickness=2pt,framecolor=darkred,
background=color,
backgroundcolor=screen]},
after={\stopbackground\blank},
style=slanted,
title=yes,
titleleft=,
titleright={.},
alternative=hanging,
width=fit,
right={~},
way=bysection,
prefix=yes,
prefixsegments={chapter:section}]

Actually I found a workaround for this by changing the above definition into:

\defineenumeration[proclaim]
[text=,
before={\blank\startmarginrule[rulethickness=1pt,rulecolor=darkred]},
after={\stopmarginrule},
style=slanted,
title=yes,
titleleft=,
titleright={.},
alternative=hanging,
width=fit,
right={~},
way=bysection,
prefix=yes,
prefixsegments={chapter:section}]

However it would be better to understand why the first definition does not work 
properly, in a rather random way.

Best regards: OK


 On 01 Jun 2015, at 00:16, Hans Hagen pra...@wxs.nl wrote:
 
 On 5/31/2015 1:56 PM, Pablo Rodriguez wrote:
 On 05/28/2015 07:10 PM, Hans Hagen wrote:
 On 5/27/2015 10:38 PM, Pablo Rodriguez wrote:
 [...]
 Compiling it with beta from 2015.03.25 22:13, page break is fine.
 
 But with latest beta from 2015.05.24 12:42 (or even with beta from
 2015.05.15 11:42 includes a wrong page break. The setups for widow and
 orphan lines move the two last lines to the next page.
 
 Could anyone confirm this bug?
 
 i wonder if it's a bug or just tex's decision ... you can use
 
 \showmakeup[penalty]
 
 and see what penalties get injected
 
 are the linebreaks identical, i.e. same hyphenation?
 
 Many thanks for your reply, Hans.
 
 Hyphenation is the same in both documents.
 
 btw, brokenpenalty 1 gives a different result
 
 Page break is wrong when any of the three values (brokenpenalty,
 widowpenalty or clubpenalty) is 0 or above .
 
 I replacing \subsection with \section gives the right page break:
 
 \showframe\showgrid
 \setuplayout[setups=*lessstrict]
 \startsetups[*lessstrict]
 \setup[reset]
 \widowpenalty=1
 \clubpenalty=1
 \brokenpenalty=0
 \stopsetups
 \setupbodyfont[pagella, 12.6pt]
 \starttext
 \chapter{Quotes}
 \section{Zapf}
 \dorecurse{4}{\input zapf\par}
 \section{Knuth}
 \input knuth
 \stoptext
 
 Why does \subsection cause a different page break than \section?
 
 because there are penalties related to (sub)sections in a way that keeps them 
 together but at the same time still permits breaks in case of too many 
 successive ones .. and penalties determine the way the page is broken
 
 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
 ___

___
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
___

Re: [NTG-context] bug in latest beta?

2015-06-01 Thread Pablo Rodriguez
On 06/01/2015 08:45 AM, Otared Kavian wrote:
 Hi Pablo,
 
 Indeed the document I was talking about has been typeset with
 various versions of mkiv, but now I observe that sometimes the
 pagebreaks are made in a very strange way. Since I can’t make a
 minimal example, I put on the following link an excerpt of the PDF
 document where the bad pagebreaks can be seen:
 
   https://dl.dropboxusercontent.com/u/4316076/bad-pagebreak.pdf
 
 (Please see pages 19 and 32). It seems that this happens, sometimes,
 but as far as I can say from my experiments the bad pagebreak happens
 always before a « proclaim » which is defined as follows:
 [...]
 However it would be better to understand why the first definition
 does not work properly, in a rather random way.

Hi Otared,

having only three theorems my guess will be probably wrong, but I’ll try it.

The theorem that doesn’t cause a wrong pagebreak is preceeded by a
single line paragraph.

In order to confirm whether this is the pattern, I would remove some
words from the last paragraph on page 19, so that there has only one
line. And I would add some words to the pagraph before theorem 2.3.2 on
page 31, so this pargraph contains two lines.

Could you check this?


Pablo
-- 
http://www.ousia.tk
___
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
___

Re: [NTG-context] bug in latest beta?

2015-06-01 Thread Otared Kavian

 On 01 Jun 2015, at 09:28, Pablo Rodriguez oi...@gmx.es wrote:
 
 […]
 Hi Otared,
 
 having only three theorems my guess will be probably wrong, but I’ll try it.
 
 The theorem that doesn’t cause a wrong pagebreak is preceeded by a
 single line paragraph.
 
 In order to confirm whether this is the pattern, I would remove some
 words from the last paragraph on page 19, so that there has only one
 line. And I would add some words to the pagraph before theorem 2.3.2 on
 page 31, so this pargraph contains two lines.
 
 Could you check this?
 
 
 Pablo
 -- 
 http://www.ousia.tk

Hi Pablo,

Actually I have done what you suggest by adding or removing text, but at the 
end when the document changes all of a sudden the bad pagebreaks appear or 
disappear.
The second definition of « proclaim » I sent you suppresses the bad pagebreaks, 
but in some other situations still I have other bad pagebreaks… Until I have 
not made a rela minimal example the problem cannot be understood and 
permanently solved.

Best regards: OK
___
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
___

Re: [NTG-context] bug in latest beta?

2015-05-31 Thread Hans Hagen

On 5/31/2015 1:56 PM, Pablo Rodriguez wrote:

On 05/28/2015 07:10 PM, Hans Hagen wrote:

On 5/27/2015 10:38 PM, Pablo Rodriguez wrote:

[...]
Compiling it with beta from 2015.03.25 22:13, page break is fine.

But with latest beta from 2015.05.24 12:42 (or even with beta from
2015.05.15 11:42 includes a wrong page break. The setups for widow and
orphan lines move the two last lines to the next page.

Could anyone confirm this bug?


i wonder if it's a bug or just tex's decision ... you can use

\showmakeup[penalty]

and see what penalties get injected

are the linebreaks identical, i.e. same hyphenation?


Many thanks for your reply, Hans.

Hyphenation is the same in both documents.


btw, brokenpenalty 1 gives a different result


Page break is wrong when any of the three values (brokenpenalty,
widowpenalty or clubpenalty) is 0 or above .

I replacing \subsection with \section gives the right page break:

 \showframe\showgrid
 \setuplayout[setups=*lessstrict]
 \startsetups[*lessstrict]
 \setup[reset]
 \widowpenalty=1
 \clubpenalty=1
 \brokenpenalty=0
 \stopsetups
 \setupbodyfont[pagella, 12.6pt]
 \starttext
 \chapter{Quotes}
 \section{Zapf}
 \dorecurse{4}{\input zapf\par}
 \section{Knuth}
 \input knuth
 \stoptext

Why does \subsection cause a different page break than \section?


because there are penalties related to (sub)sections in a way that keeps 
them together but at the same time still permits breaks in case of too 
many successive ones .. and penalties determine the way the page is broken


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
___

Re: [NTG-context] bug in latest beta?

2015-05-31 Thread Pablo Rodriguez
On 05/28/2015 04:59 PM, Otared Kavian wrote:
 Hi Pablo,
 
 I tested your sample with
 
   ConTeXt ver: 2014.05.21 22:04 MKIV beta fmt: 2015.3.31 int: english/english
 
 (which is from TeXLIve 2014) and also with
 
   ConTeXt ver: 2015.05.21 13:39 MKIV beta fmt: 2015.5.21 int: english/english
 
 and I get exactly the same result, with the last two line of page 1
 pushed to the second page.
 
 However with mmkii, thta is
 
   ConTeXt ver: 2013.06.07 17:34 MKII fmt: 2015.5.21 int: english/english
 
 the penalties act correctly and page one has all the lines expected,
 while page 2 begins with a new section.
 
 Actually I hav enoticed that recent versions of mkiv create strange page
 breaks in some of documents containing maths, but up to now I have not
 succeeded to reproduce this bad behavior in a short (and minimal) example.

Many thanks for your testing, Otared.

It seems that different MkIV betas may give different results.

I noticed it by compiling the same source with different MkIV betas.

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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
___

Re: [NTG-context] bug in latest beta?

2015-05-31 Thread Pablo Rodriguez
On 05/28/2015 07:10 PM, Hans Hagen wrote:
 On 5/27/2015 10:38 PM, Pablo Rodriguez wrote:
 [...]
 Compiling it with beta from 2015.03.25 22:13, page break is fine.

 But with latest beta from 2015.05.24 12:42 (or even with beta from
 2015.05.15 11:42 includes a wrong page break. The setups for widow and
 orphan lines move the two last lines to the next page.

 Could anyone confirm this bug?
 
 i wonder if it's a bug or just tex's decision ... you can use
 
 \showmakeup[penalty]
 
 and see what penalties get injected
 
 are the linebreaks identical, i.e. same hyphenation?

Many thanks for your reply, Hans.

Hyphenation is the same in both documents.

 btw, brokenpenalty 1 gives a different result

Page break is wrong when any of the three values (brokenpenalty,
widowpenalty or clubpenalty) is 0 or above .

I replacing \subsection with \section gives the right page break:

\showframe\showgrid
\setuplayout[setups=*lessstrict]
\startsetups[*lessstrict]
\setup[reset]
\widowpenalty=1
\clubpenalty=1
\brokenpenalty=0
\stopsetups
\setupbodyfont[pagella, 12.6pt]
\starttext
\chapter{Quotes}
\section{Zapf}
\dorecurse{4}{\input zapf\par}
\section{Knuth}
\input knuth
\stoptext

Why does \subsection cause a different page break than \section?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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
___

Re: [NTG-context] bug in latest beta?

2015-05-28 Thread Hans Hagen

On 5/27/2015 10:38 PM, Pablo Rodriguez wrote:

Dear list,

I have the following sample:

 \showframe\showgrid
 \setuplayout[setups=*lessstrict]
 \startsetups[*lessstrict]
 \setup[reset]
 \widowpenalty=1
 \clubpenalty=1
 \brokenpenalty=0
 \stopsetups
 \setupbodyfont[pagella, 12.6pt]
 \starttext
 \chapter{Quotes}
 \section{Zapf}
 \dorecurse{4}{\input zapf\par}
 \subsection{Knuth}
 \input knuth
 \stoptext

Compiling it with beta from 2015.03.25 22:13, page break is fine.

But with latest beta from 2015.05.24 12:42 (or even with beta from
2015.05.15 11:42 includes a wrong page break. The setups for widow and
orphan lines move the two last lines to the next page.

Could anyone confirm this bug?


i wonder if it's a bug or just tex's decision ... you can use

\showmakeup[penalty]

and see what penalties get injected

are the linebreaks identical, i.e. same hyphenation?

btw, brokenpenalty 1 gives a different result

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
___

Re: [NTG-context] bug in latest beta?

2015-05-28 Thread Otared Kavian
Hi Pablo,

I tested your sample with

ConTeXt  ver: 2014.05.21 22:04 MKIV beta  fmt: 2015.3.31  int: 
english/english

(which is from TeXLIve 2014) and also with

ConTeXt ver: 2015.05.21 13:39 MKIV beta fmt: 2015.5.21 int: 
english/english

and I get exactly the same result, with the last two line of page 1 pusged to 
the second page.

However with mmkii, thta is

ConTeXt ver: 2013.06.07 17:34 MKII fmt: 2015.5.21 int: english/english

the penalties act correctly and page one has all the lines expected, while page 
2 begins with a new section.

Actually I hav enoticed that recent versions of mkiv create strange page breaks 
in some of documents containing maths, but up to now I have not succeeded to 
reproduce this bad behavior in a short (and minimal) example.

Best regards: OK



 On 27 May 2015, at 22:38, Pablo Rodriguez oi...@gmx.es wrote:
 
 Dear list,
 
 I have the following sample:
 
\showframe\showgrid
\setuplayout[setups=*lessstrict]
\startsetups[*lessstrict]
\setup[reset]
\widowpenalty=1
\clubpenalty=1
\brokenpenalty=0
\stopsetups
\setupbodyfont[pagella, 12.6pt]
\starttext
\chapter{Quotes}
\section{Zapf}
\dorecurse{4}{\input zapf\par}
\subsection{Knuth}
\input knuth
\stoptext
 
 Compiling it with beta from 2015.03.25 22:13, page break is fine.
 
 But with latest beta from 2015.05.24 12:42 (or even with beta from
 2015.05.15 11:42 includes a wrong page break. The setups for widow and
 orphan lines move the two last lines to the next page.
 
 Could anyone confirm this bug?
 
 Many thanks for your help,
 
 
 Pablo
 -- 
 http://www.ousia.tk
 ___
 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
 ___

___
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
___

Re: [NTG-context] bug in latest beta?

2015-05-14 Thread Pablo Rodriguez
On 05/14/2015 10:46 PM, Pablo Rodriguez wrote:
 Hans,
 
 after upgrading to beta from 2015.05.13 23:52, the compilation of most
 of my documents crashes.
 
 I get two different errors depending on the document:
 
 error: .../ctxbeta/tex/texmf-context/tex/context/base/typo-itc.lua:148:
 attempt to call global 'setfield' (a nil value)

Hans,

here you have a sample that triggers the error in that line:

\definefontfeature
[default]
[default]
[script=latn,
 itlc=yes]

\setupitaliccorrection
[always]

\definefontfamily
[mainface]
[serif]
[TeX Gyre Pagella]

\starttext
\it a
\stoptext

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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
___

Re: [NTG-context] Bug in latest beta: behavior of \text in StepCharts

2015-04-16 Thread Alan BRASLAU
On Thu, 16 Apr 2015 09:04:46 +0200
Otared Kavian ota...@gmail.com wrote:

 It seems that with the latest beta there is a bug in the way how the
 command \text is handled in step charts (plesae see the attached
 PDF). This bug is absent from mkii, and absent from previous versions
 of mkiv (up to a weak ago, I believe).
 
 This is a minimal example which shows that the font used in each cell
 of \text changes randomly (there are four instances of \text, and
 each time a different font is used…):
 
  begin random-text-size.tex
 \usemodule[steps]
 
 \starttext
 \input knuth.tex
 
 \placefigure[none][-]{}{
 \startSTEPtable 
     \cell {$(f\circ u)(x_{*} + o(1)) = $} \text{definition of
 $f\circ u$} \cell {$f\left(u\left(x_{*} + o(1)\right)\right) = $}
 \text {$u$ is continuous} \cell {$f\left(u(x_{*}) + o(1)\right) = $}
 \text {$f$ is continuous} \cell {$f\left(u(x_{*})\right) + o(1) =$}
 \text {definition of $f\circ u$} \cell {$(f\circ u)(x_{*}) + o(1)$.} 
 \stopSTEPtable}
 
 \stoptext
  begin random-text-size.tex

This bug arises from low-level changes in the handling text from
MetaPost. I have reported this to Hans (in the context of graphs),
although I have not understood how to fix it.

The result is kind of fun: like something that many people produced at
the time of the introduction of the Apple MacIntosh!

Alan
___
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
___

Re: [NTG-context] bug in latest beta?

2014-12-10 Thread Hans Hagen

On 12/10/2014 7:51 PM, Pablo Rodriguez wrote:

Hans,

after updating to latest beta I get an error when compiling the sample
bellow with beta from 2014.12.09 13:03:

\setupitaliccorrection[global,always]
\definefontfamily[mainface][serif][TeX Gyre Pagella]
\setupbodyfont[mainface,15pt]

\def\ConTeXt{Con\-\TeX{}t}

\starttext
\itc The Book on \ConTeXt
\medskip
\tfa\setupinterlinespace[2.6ex] {\sc The Author}
\par
\currentdate
\stoptext

Beta from 2014.11.26 21:43 compiles it without problems.

Is this a bug or am I missing something?


It's a bug (I updated some discretionary related code so ther might be a 
few more border cases not handled well). I'll make a new beta.


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
___

Re: [NTG-context] bug in latest beta?

2014-12-10 Thread Pablo Rodriguez
On 12/10/2014 08:14 PM, Hans Hagen wrote:
 On 12/10/2014 7:51 PM, Pablo Rodriguez wrote:
 Hans,

 after updating to latest beta I get an error when compiling the sample
 bellow with beta from 2014.12.09 13:03:

 \setupitaliccorrection[global,always]
 \definefontfamily[mainface][serif][TeX Gyre Pagella]
 \setupbodyfont[mainface,15pt]

 \def\ConTeXt{Con\-\TeX{}t}

 \starttext
 \itc The Book on \ConTeXt
 \medskip
 \tfa\setupinterlinespace[2.6ex] {\sc The Author}
 \par
 \currentdate
 \stoptext

 Beta from 2014.11.26 21:43 compiles it without problems.

 Is this a bug or am I missing something?
 
 It's a bug (I updated some discretionary related code so ther might be a 
 few more border cases not handled well). I'll make a new beta.

Many thanks for the fast fix, Hans.


Pablo
-- 
http://www.ousia.tk
___
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
___

Re: [NTG-context] bug in latest beta (2014-05-30 18:07)

2014-05-31 Thread Pablo Rodriguez
On 05/31/2014 12:28 AM, Hans Hagen wrote:
 On 5/30/2014 7:33 PM, Pablo Rodriguez wrote:
 Hans,

 I’m afraid that the latest beta contains a bug that prevents the
 compilation of any document.

 Error is the following (complete log available at
 http://www.ousia.tk/nocache.log):

 Ouch---my internal constants have been clobbered! ---case 1
 mtx-context | fatal error: return code: 1

 Could you fix it?
 
 hm, weird, works here ... anyway, i added some extra safeguards, so 
 check the next beta

Many thanks for the fix, Hans. It works fine now.

BTW, may I remind you of this already reported bug:
http://www.ntg.nl/pipermail/ntg-context/2014/077280.html?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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
___


Re: [NTG-context] bug in latest beta (2014-05-30 18:07)

2014-05-30 Thread Hans Hagen

On 5/30/2014 7:33 PM, Pablo Rodriguez wrote:

Hans,

I’m afraid that the latest beta contains a bug that prevents the
compilation of any document.

Error is the following (complete log available at
http://www.ousia.tk/nocache.log):

Ouch---my internal constants have been clobbered! ---case 1
mtx-context | fatal error: return code: 1

Could you fix it?


hm, weird, works here ... anyway, i added some extra safeguards, so 
check the next beta


-
  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
___


Re: [NTG-context] bug in latest beta?

2014-05-26 Thread Pablo Rodriguez
On 05/26/2014 10:24 AM, Hans Hagen wrote:
 On 5/26/2014 7:47 AM, Pablo Rodriguez wrote:
 [...]
 Page break is wrong if \section is enabled (or I am missing something
 extremely basic).

 I guess it might be worth fixing it also for ConTeXt in TeX Live 2014.

 Many thanks for your help,
 
 It has to do with trying to improve the 'keep together' successive 
 head/text 'without deadlock' issue; I'll try to improve that bit but for 
 a while it will be somewhat experimental (it's one of the things I'm 
 trying to improve).

Many thanks for the fix, Hans.

I have another wrong page break, but I’m afraid I need some time to
elaborate the sample.

Many thanks again for your help,


Pablo
-- 
http://www.ousia.tk
___
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
___


Re: [NTG-context] bug in latest beta?

2014-03-18 Thread Wolfgang Schuster

Am 18.03.2014 um 18:30 schrieb Pablo Rodriguez oi...@gmx.es:

 Dear list,
 
 I cannot compile the following sample with latest beta:
 
 \definefontfamily[mainface][serif][TeX Gyre Pagella]
 \setupbodyfont[mainface,14pt]
 
 \starttext
 \startitemize
 
 \item First item.
 
 \item Second item.
 
 \stopitemize
 
 \stoptext
 
 
 This worked fine with previous beta. Isn’t it a bug?

You have to load a math font because the bullets for the items are taken by 
default from the math font.

BTW: When you have a font related bug check first if it happens also with 
\definetypeface.

\definetypeface[mainface][rm][serif][pagella][default]
\definetypeface[mainface][mm][math] [pagella][default] % comment to get the 
error

\setupbodyfont[mainface]

\starttext
\symbol[bullet]
\stoptext

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
___


Re: [NTG-context] bug in latest beta?

2014-03-18 Thread Pablo Rodriguez
On 03/18/2014 06:39 PM, Wolfgang Schuster wrote:
 Am 18.03.2014 um 18:30 schrieb Pablo Rodriguez:
 Dear list,

 I cannot compile the following sample with latest beta:

 \definefontfamily[mainface][serif][TeX Gyre Pagella]
 \setupbodyfont[mainface,14pt]

 \starttext
 \startitemize

 \item First item.

 \item Second item.

 \stopitemize

 \stoptext


 This worked fine with previous beta. Isn’t it a bug?
 
 You have to load a math font because the bullets for the items are
 taken by default from the math font.

Many thanks for your help, Wolfgang.

It works fine now.


Pablo
-- 
http://www.ousia.tk
___
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
___


Re: [NTG-context] bug in latest beta

2012-07-05 Thread Hans Hagen

On 5-7-2012 04:28, JIN Xiao-Yong wrote:

I got the following error in the minimal example (which is all shown in the
output below)

system   tex  error on line 4 in file simpl.tex: Undefined
control sequence ...


you can try (in page-mul)

\installcolumnbreakmethod \s!multicolumn \v!yes
  {\par
   \begingroup
   \normaloffinterlineskip
   \normalpenalty\plustenthousand
   \vbox to \textheight{}%
   \endgroup
   \penalty-200
   \vskip-\textheight}



-
  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
___


Re: [NTG-context] bug in latest beta

2012-07-05 Thread Xiao-Yong Jin

On Jul 5, 2012, at 5:02 PM, Hans Hagen wrote:

 On 5-7-2012 04:28, JIN Xiao-Yong wrote:
 I got the following error in the minimal example (which is all shown in the
 output below)
 
 system   tex  error on line 4 in file simpl.tex: Undefined
 control sequence ...
 
 you can try (in page-mul)
 
 \installcolumnbreakmethod \s!multicolumn \v!yes
  {\par
   \begingroup
   \normaloffinterlineskip
   \normalpenalty\plustenthousand
   \vbox to \textheight{}%
   \endgroup
   \penalty-200
   \vskip-\textheight}

It compiles then, but the first section is moved to the second column, which is 
not the intention.
___
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
___


Re: [NTG-context] Bug in latest beta

2011-10-20 Thread Hans Hagen

On 20-10-2011 10:46, Andreas Harder wrote:

\starttext
$f'(x)$
\stoptext


Fixed (a definition order issue).

The prime handling is somewhat weird as it does some look ahead for 
superscripts (1) because there can b emultiple primes and (2) because 
traditional tex fonts have large prime that needs to be superscripts. 
The current setup works ok with proper opentype math fonts as well as 
virtual lm (which has the big prime). Multiple primes are collapsed onto 
\doubleprime and \tripleprime.


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
___


Re: [NTG-context] bug in latest beta

2011-10-14 Thread luigi scarso
On Thu, Oct 13, 2011 at 9:46 PM, Hans Hagen pra...@wxs.nl wrote:

 On 13-10-2011 09:37, luigi scarso wrote:

  Please type another input file name:


 A new beta ... better check mp code as I've split all mkii/mkiv mp related
 code (i.e. metafun ii is frozen and metafun iv will be mainstream). I might
 have messed when cleaning up the code.

 it's ok
-- 
luigi
___
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
___

Re: [NTG-context] bug in latest beta

2011-10-14 Thread Andreas Harder

On 13.10.2011, at 21:46, Hans Hagen wrote:

 On 13-10-2011 09:37, luigi scarso wrote:
 
 Please type another input file name:
 
 A new beta ... better check mp code as I've split all mkii/mkiv mp related 
 code (i.e. metafun ii is frozen and metafun iv will be mainstream). I might 
 have messed when cleaning up the code.


The compilation of

\startMPpage[offset=1ex]
  draw function (1,x,sin(x),0,2*pi,.001) scaled 20 ;
\stopMPpage

ends with ! Improper `addto'. …

Greeting
Andreas
___
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
___


Re: [NTG-context] bug in latest beta

2011-10-14 Thread Hans Hagen

On 14-10-2011 12:26, Andreas Harder wrote:

\startMPpage[offset=1ex]
   draw function (1,x,sin(x),0,2*pi,.001) scaled 20 ;
\stopMPpage


fixed in next beta

-
  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
___


Re: [NTG-context] bug in latest beta

2011-10-13 Thread Hans Hagen

On 13-10-2011 09:37, luigi scarso wrote:


l.40 input mp-char.mpii
 ;
Please type another input file name:


you can rename mp-flow to mp-char ... I'll do a new upload later today

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
___


Re: [NTG-context] bug in latest beta

2011-10-13 Thread luigi scarso
On Thu, Oct 13, 2011 at 12:49 PM, Hans Hagen pra...@wxs.nl wrote:

 On 13-10-2011 09:37, luigi scarso wrote:

  l.40 input mp-char.mpii
 ;
 Please type another input file name:


 you can rename mp-flow to mp-char ... I'll do a new upload later today

 hm, there is not *mp-flow* in my suite


-- 
luigi
___
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
___

Re: [NTG-context] bug in latest beta

2011-10-13 Thread Hans Hagen

On 13-10-2011 09:37, luigi scarso wrote:


Please type another input file name:


A new beta ... better check mp code as I've split all mkii/mkiv mp 
related code (i.e. metafun ii is frozen and metafun iv will be 
mainstream). I might have messed when cleaning up the code.


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
___


Re: [NTG-context] bug in latest beta?

2008-11-10 Thread Hans Hagen
Chen Shen wrote:
 Hi all,
 
 the following code used to work, but broke in the latest beta. \at
 works well, but \in appears as a math member of set symbol ( ∈ ).
 
 
 \starttext
 \placefigure[here][abc]{xyz}{123}
 
 abc \at[abc].
 abc \in[abc].
 
 \stoptext
 

fixed in current beta

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bug in latest beta?

2008-11-10 Thread Chen Shen
Thanks a lot for the insights. I reverted to the 2008.10.31 version
for the moment.

shenchen

On Mon, Nov 10, 2008 at 7:59 PM, Wolfgang Schuster
[EMAIL PROTECTED] wrote:

 Am 10.11.2008 um 10:55 schrieb Chen Shen:

 Hi all,

 the following code used to work, but broke in the latest beta. \at
 works well, but \in appears as a math member of set symbol ( ∈ ).

 You could use the last stable for the moment.

 
 \starttext
 \placefigure[here][abc]{xyz}{123}

 abc \at[abc].
 abc \in[abc].

 \stoptext
 


 If you still want to use the last beta use the following patch,
 Hans removed a few lines of code from enco-ini.mkiv and this
 breaks the \in command because it is redefined later in the core
 from the math commands.

 \def\definecommand#1 #2 %
   {\setvalue{\string#1}{\dohandlecommand{#1}}%
\setvalue{\characterencoding\string#1}{#2}}

 \def\dohandlecommand#1%
{\csname
   \ifcsname\characterencoding#1\endcsname
 \characterencoding
   \else
 \nocharacterencoding
   \fi
 #1\endcsname}

 \definecommand in{\doinatreference\currenttextreference}

 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bug in latest beta?

2008-11-10 Thread Wolfgang Schuster

Am 10.11.2008 um 10:55 schrieb Chen Shen:

 Hi all,

 the following code used to work, but broke in the latest beta. \at
 works well, but \in appears as a math member of set symbol ( ∈ ).

You could use the last stable for the moment.

 
 \starttext
 \placefigure[here][abc]{xyz}{123}

 abc \at[abc].
 abc \in[abc].

 \stoptext
 


If you still want to use the last beta use the following patch,
Hans removed a few lines of code from enco-ini.mkiv and this
breaks the \in command because it is redefined later in the core
from the math commands.

\def\definecommand#1 #2 %
   {\setvalue{\string#1}{\dohandlecommand{#1}}%
\setvalue{\characterencoding\string#1}{#2}}

\def\dohandlecommand#1%
{\csname
   \ifcsname\characterencoding#1\endcsname
 \characterencoding
   \else
 \nocharacterencoding
   \fi
 #1\endcsname}

\definecommand in{\doinatreference\currenttextreference}

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___