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.
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
On Mon, 14 Aug 2023 17:49:48 +0200
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
I attach the dev.log and dev-error.log. Is it enough? Xavier
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-writ... (Most of the advice here is latex specific, but the idea is the same for context). Aditya
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
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
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[<REFRENCE>]{<TITLE>} --> \startexercici[reference=...,title=...] - \placetable[<PLACEMENT>][<REFERENCE>]{<TITLE>}{...} --> \startplacetable[reference=...,location=...,title=...] ... \stopplacetable - Llimones........ \hfill 6 --> Llimones \filler[symbol] 6 - \bigskip --> \blank[big] Wolfgang
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
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[<REFRENCE>]{<TITLE>} --> \startexercici[reference=...,title=...]
- \placetable[<PLACEMENT>][<REFERENCE>]{<TITLE>}{...} --> \startplacetable[reference=...,location=...,title=...] ... \stopplacetable
- Llimones........ \hfill 6 --> Llimones \filler[symbol] 6
- \bigskip --> \blank[big]
Wolfgang
Xavier B. schrieb am 15.08.2023 um 00:03:
Now
- \startexercici[<REFRENCE>]{<TITLE>} --> \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
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
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
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.
On 8/14/2023 11:24 PM, Xavier B. wrote: 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 -----------------------------------------------------------------
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
participants (6)
-
Aditya Mahajan
-
Hans Hagen
-
Rik Kabel
-
Rik Kabel
-
Wolfgang Schuster
-
Xavier B.