ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Rik Kabel <ConTeXt@rik.users.panix.com>
Cc: "Xavier B." <somenxavier@posteo.net>
Subject: [NTG-context] Re: Very strange error:
Date: Mon, 14 Aug 2023 19:07:09 +0200	[thread overview]
Message-ID: <36c0a40c-5dca-2c26-ce66-12dbe754bad0@gmail.com> (raw)
In-Reply-To: <0e82d93c-39e9-46b3-9b1a-5a3f9977fa23@rik.users.panix.com>

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

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

  parent reply	other threads:[~2023-08-14 17:09 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-14 15:41 [NTG-context] " Xavier B.
2023-08-14 15:49 ` [NTG-context] " Wolfgang Schuster
2023-08-14 21:26   ` Xavier B.
2023-08-15 14:45     ` Aditya Mahajan
2023-08-14 16:42 ` Rik Kabel
2023-08-14 16:49   ` Rik Kabel
2023-08-14 17:07   ` Wolfgang Schuster [this message]
2023-08-14 21:50     ` Xavier B.
2023-08-14 22:03     ` Xavier B.
2023-08-15  3:55       ` Wolfgang Schuster
2023-08-14 21:24   ` Xavier B.
2023-08-14 22:25     ` Hans Hagen via ntg-context
2023-08-15 18:58     ` Wolfgang Schuster

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=36c0a40c-5dca-2c26-ce66-12dbe754bad0@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=ConTeXt@rik.users.panix.com \
    --cc=ntg-context@ntg.nl \
    --cc=somenxavier@posteo.net \
    /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).