[NTG-context] Re: Very strange error:

2023-08-15 Thread Wolfgang Schuster

Xavier B. schrieb am 14.08.2023 um 23:24:

Thanks, Rik, for the comment. You're right.
Note that I've never been aware of such requirement because always in MKIV I 
use \head without \par.


You have empty lines in your document which have the same effect as \par.

Commands (e.g. descriptions) which end with the end of the paragraph had 
always been problematic and it's better to use the alternative environment.



@all, please comment it out this behaviour in somewhere. The weak point of 
context is documentation: wiki is too bit not updated and reference manual are 
outdated. As a simple user, it could cause nightmares, overall in transition to 
one major version to another.


All of the changes I mentioned are things which have been changed/added 
a long time ago and you're just a decade too late ;)


Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Re: Very strange error:

2023-08-15 Thread Aditya Mahajan
On Mon, 14 Aug 2023, Xavier B. wrote:
> > Can you show the text (and commands) which appears on line 540 (plus a 
> > few lines before/after line 540) of your document.
> > 
> I attach the dev.log and dev-error.log. Is it enough?

You should show a *complete* context source document that generates the error. 
See 

https://tex.meta.stackexchange.com/questions/228/ive-just-been-asked-to-write-a-minimal-working-example-mwe-what-is-that

(Most of the advice here is latex specific, but the idea is the same for 
context).

Aditya
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Re: Very strange error:

2023-08-14 Thread Wolfgang Schuster

Xavier B. schrieb am 15.08.2023 um 00:03:

Now


      - \startexercici[]{}  -->
\startexercici[reference=...,title=...]


with LMTX this

\startitemize
\sym{\in[REFERENCE]}
\stopitemize

does not work.


You have to provide a example for the error because it works for me.

\starttext

\startsection [reference=foo,title=Foo]

\startitemize
\sym{\in[foo]} xxx
\stopitemize

\stopsection

\stoptext

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: Very strange error:

2023-08-14 Thread Hans Hagen via ntg-context

On 8/14/2023 11:24 PM, Xavier B. wrote:

Thanks, Rik, for the comment. You're right.
Note that I've never been aware of such requirement because always in MKIV I 
use \head without \par.

@all, please comment it out this behaviour in somewhere. The weak point of 
context is documentation: wiki is too bit not updated and reference manual are 
outdated. As a simple user, it could cause nightmares, overall in transition to 
one major version to another.

the only things that really changed are

- input encodings, still supported but we assume utf8
- font encodings, font features etc that make for different specifications
- some fuzzy argument handling that made sense 25 years ago but not today
- some low level fatures that were never to be used at the user level
- improvements to mechanism that are now possible
- more was added than removed (and believe me: i'd like to remove some)
- if something fails also keep in mind that maybe it was never supossed 
to work but tex is just rather tolerant


take for instance math: we adapt to possibilities, unicode developments 
etc. but overall interfaces are kept (we eventually dropped $$ mkiv 
because it is hard to get spacing right otherwise, een with some nasty 
tricks)


\head is one of these "best use arguments" and les sknown is that we 
also dropped par delimited \section and such (the head one currently can 
be enabled with \autoparagraphmode4)


the main drive is 'better rendering' and 'less complicated coding'

you use for for instance \bigskip which is never going to guarantee good 
spacing as it doesn't cooperate with \blank and friends (it is sort of 
dangerous to mix what oen sees outside context with context commands 
like like loading that lua module, which actually is in none of the 
manuals)


if one wants to get an idea of coding context documents the 'source sof 
manuals' can show some


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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Re: Very strange error:

2023-08-14 Thread Xavier B.
Now 

> 
>      - \startexercici[]{}  --> 
> \startexercici[reference=...,title=...]
> 

with LMTX this

\startitemize
\sym{\in[REFERENCE]}
\stopitemize

does not work.

Some change here too?

Thanks,



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Re: Very strange error:

2023-08-14 Thread Xavier B.
Thanks, Wolfgang, for pointing this replacements.
I will try to change that but it's a lot of work.

Appreciate
Xavier

On Mon, 14 Aug 2023 19:07:09 +0200
Wolfgang Schuster  ha escrit:
> >
> 
> You're correct, \head is the cause of the error and it's better to 
> replace it with
> 
>      \starthead {...}
>          ...
>      \stophead
> 
> but there are more things which can be changed to use modern syntax (in 
> many cases part of ConTeXt since nearly a decade).
> 
> 
> A few examples:
> 
>      - \startexercici[]{}  --> 
> \startexercici[reference=...,title=...]
> 
>      - \placetable[][]{}{...} -->  
> \startplacetable[reference=...,location=...,title=...] ... \stopplacetable
> 
>      - Llimones \hfill 6  -->  Llimones \filler[symbol] 6
> 
>      - \bigskip  -->  \blank[big]
> 
> 
> Wolfgang
> 
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Re: Very strange error:

2023-08-14 Thread Xavier B.
On Mon, 14 Aug 2023 17:49:48 +0200
Wolfgang Schuster  ha escrit:

> Xavier B. schrieb am 14.08.2023 um 17:41:
> > After I run context (LMTX version) to my document (attached) I get this 
> > error:
> >
> > tex error   > tex error on line 540 in file ./dev.tex: The file ended 
> > when scanning an argument.
> >
> > I don't know how to start...
> > Can anyone help me?
> >
> > Thanks,
> > Xavier
> >
> > PS: I receive this error after upgrading to MKIV to LMTX. Before with MKIV 
> > I get no errors.
> 
> Can you show the text (and commands) which appears on line 540 (plus a 
> few lines before/after line 540) of your document.
> 
> Wolfgang
> 

I attach the dev.log and dev-error.log. Is it enough?

Xavier
system  > 
system  > ConTeXt  ver: 2023.08.10 02:59 LMTX  fmt: 2023.8.14  int: 
english/english
system  > 
system  > 'cont-new.mkxl' loaded
open source > level 1, order 1, name 
'/home/xan/bin/context-current/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 1, order 1, name 
'/home/xan/bin/context-current/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > files > jobname './dev', input './dev.tex', result './dev'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 1, order 2, name './dev.tex'
modules > 'pgfrcs' is not found
modules > 'pgfmat' is not found
modules > 'tikz' is loaded
open source > level 2, order 3, name 
'/home/xan/bin/context-current/tex/texmf-context/tex/context/modules/mkxl/m-tikz.mkxl'
open source > level 3, order 4, name 'pgfutil-common.tex'
close source> level 3, order 4, name 'pgfutil-common.tex'
open source > level 3, order 5, name 'pgfutil-context.def'
close source> level 3, order 5, name 'pgfutil-context.def'
open source > level 3, order 6, name 'pgfrcs.code.tex'
open source > level 4, order 7, name 'pgf.revision.tex'
close source> level 4, order 7, name 'pgf.revision.tex'
close source> level 3, order 7, name 'pgfrcs.code.tex'
open source > level 3, order 8, name 'pgfsys.code.tex'
open source > level 4, order 9, name 'pgfkeys.code.tex'
open source > level 5, order 10, name 'pgfkeyslibraryfiltered.code.tex'
close source> level 5, order 10, name 'pgfkeyslibraryfiltered.code.tex'
close source> level 4, order 10, name 'pgfkeys.code.tex'
cld > stack > 
cld > stack > use : slot = context.functions.register(f)
cld > stack > and : context.functions.unregister(slot)
cld > stack > 
open source > level 4, order 11, name 'pgf.cfg'
close source> level 4, order 11, name 'pgf.cfg'
Driver file for pgf: pgfsys-luatex.def

open source > level 4, order 12, name 'pgfsys-luatex.def'
open source > level 5, order 13, name 'pgfsys-common-pdf.def'
close source> level 5, order 13, name 'pgfsys-common-pdf.def'
close source> level 4, order 13, name 'pgfsys-luatex.def'
open source > level 4, order 14, name 'dev.pgf'
close source> level 4, order 14, name 'dev.pgf'
close source> level 3, order 14, name 'pgfsys.code.tex'
open source > level 3, order 15, name 'pgfkeys.code.tex'
close source> level 3, order 15, name 'pgfkeys.code.tex'
open source > level 3, order 16, name 'pgfsyssoftpath.code.tex'
close source> level 3, order 16, name 'pgfsyssoftpath.code.tex'
open source > level 3, order 17, name 'pgfsysprotocol.code.tex'
close source> level 3, order 17, name 'pgfsysprotocol.code.tex'
open source > level 3, order 18, name 'pgfcore.code.tex'
open source > level 4, order 19, name 'pgfmath.code.tex'
open source > level 5, order 20, name 'pgfmathutil.code.tex'
close source> level 5, order 20, name 'pgfmathutil.code.tex'
open source > level 5, order 21, name 'pgfmathparser.code.tex'
close source> level 5, order 21, name 'pgfmathparser.code.tex'
open source > level 5, order 22, name 'pgfmathfunctions.code.tex'
close source> level 5, order 22, name 'pgfmathfunctions.code.tex'
open source > level 5, order 23, name 'pgfmathfunctions.basic.code.tex'
close source> level 5, order 23, name 'pgfmathfunctions.basic.code.tex'
open source > level 5, order 24, name 
'pgfmathfunctions.trigonometric.code.tex'
close source> level 5, order 24, name 
'pgfmathfunctions.trigonometric.code.tex'
open source > level 5, order 25, name 'pgfmathfunctions.random.code.tex'
close source> level 5, order 25, name 'pgfmathfunctions.random.code.tex'
open source > level 5, order 26, name 'pgfmathfunctions.comparison.code.tex'
close source> level 5, order 26, name 'pgfmathfunctions.comparison.code.tex'
open source > level 5, order 27, name 'pgfmathfunctions.base.code.tex'
close source> level 5, order 27, name 'pgfmathfunctions.base.code.tex'
open source > level 5, order 28, 

[NTG-context] Re: Very strange error:

2023-08-14 Thread Xavier B.
Thanks, Rik, for the comment. You're right.
Note that I've never been aware of such requirement because always in MKIV I 
use \head without \par.

@all, please comment it out this behaviour in somewhere. The weak point of 
context is documentation: wiki is too bit not updated and reference manual are 
outdated. As a simple user, it could cause nightmares, overall in transition to 
one major version to another.

Thanks another time,
Xavier

On Mon, 14 Aug 2023 12:42:59 -0400
Rik Kabel  ha escrit:

> 
> On 8/14/2023 11:41 AM, Xavier B. wrote:
> > After I run context (LMTX version) to my document (attached) I get this 
> > error:
> >
> > tex error   > tex error on line 540 in file ./dev.tex: The file ended 
> > when scanning an argument.
> >
> > I don't know how to start...
> > Can anyone help me?
> >
> > Thanks,
> > Xavier
> >
> > PS: I receive this error after upgrading to MKIV to LMTX. Before with MKIV 
> > I get no errors.
> >
> I suspect that LMTX is a bit more strict about parsing. You have omitted 
> the required \par for each \head.
> 
> -- 
> Rik
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Re: Very strange error:

2023-08-14 Thread Wolfgang Schuster

Rik Kabel schrieb am 14.08.2023 um 18:42:



On 8/14/2023 11:41 AM, Xavier B. wrote:

After I run context (LMTX version) to my document (attached) I get this error:

tex error   > tex error on line 540 in file ./dev.tex: The file ended when 
scanning an argument.

I don't know how to start...
Can anyone help me?

Thanks,
Xavier

PS: I receive this error after upgrading to MKIV to LMTX. Before with MKIV I 
get no errors.


I suspect that LMTX is a bit more strict about parsing. You have 
omitted the required \par for each \head.




You're correct, \head is the cause of the error and it's better to 
replace it with


    \starthead {...}
        ...
    \stophead

but there are more things which can be changed to use modern syntax (in 
many cases part of ConTeXt since nearly a decade).



A few examples:

    - \startexercici[]{}  --> 
\startexercici[reference=...,title=...]


    - \placetable[][]{}{...} -->  
\startplacetable[reference=...,location=...,title=...] ... \stopplacetable


    - Llimones \hfill 6  -->  Llimones \filler[symbol] 6

    - \bigskip  -->  \blank[big]


Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: Very strange error:

2023-08-14 Thread Rik Kabel


On 8/14/2023 12:42 PM, Rik Kabel wrote:



On 8/14/2023 11:41 AM, Xavier B. wrote:

After I run context (LMTX version) to my document (attached) I get this error:

tex error   > tex error on line 540 in file ./dev.tex: The file ended when 
scanning an argument.

I don't know how to start...
Can anyone help me?

Thanks,
Xavier

PS: I receive this error after upgrading to MKIV to LMTX. Before with MKIV I 
get no errors.

I suspect that LMTX is a bit more strict about parsing. You have 
omitted the required \par for each \head.




Perhaps the mtxrun check script (https://wiki.contextgarden.net/Mtxrun) 
could be enhanced to pick this up.


--
Rik
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: Very strange error:

2023-08-14 Thread Rik Kabel


On 8/14/2023 11:41 AM, Xavier B. wrote:

After I run context (LMTX version) to my document (attached) I get this error:

tex error   > tex error on line 540 in file ./dev.tex: The file ended when 
scanning an argument.

I don't know how to start...
Can anyone help me?

Thanks,
Xavier

PS: I receive this error after upgrading to MKIV to LMTX. Before with MKIV I 
get no errors.

I suspect that LMTX is a bit more strict about parsing. You have omitted 
the required \par for each \head.


--
Rik
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: Very strange error:

2023-08-14 Thread Wolfgang Schuster

Xavier B. schrieb am 14.08.2023 um 17:41:

After I run context (LMTX version) to my document (attached) I get this error:

tex error   > tex error on line 540 in file ./dev.tex: The file ended when 
scanning an argument.

I don't know how to start...
Can anyone help me?

Thanks,
Xavier

PS: I receive this error after upgrading to MKIV to LMTX. Before with MKIV I 
get no errors.


Can you show the text (and commands) which appears on line 540 (plus a 
few lines before/after line 540) of your document.


Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___