Thomas A. Schmitz schrieb am 20.11.2020 um 22:57:
On 11/20/20 10:52 PM, Wolfgang Schuster wrote:
Optional arguments (e.g. plus/minus values for \hskip) for commands
are handled different in LMTX but it was always recommended to add
\relax after the last value.
Thank you Wolfgang, that makes the file indeed compile again! Any
explanation for the strange behavior of the error?
In LMTX the order of the plus and minus values of \hskip can be written
in any order and it's even possible to set them multiple times (try the
example below with LuaTeX and LMTX).
To check whether a stretch or shrink value is set LMTX takes a look at
the next character (p, P, m or M) before it makes a decision, when you
have now a word after \hskip which start with one of these characters
(e.g. Materiam) you trigger the scanner which fails because it didn't
find a keyword. To avoid such problems always add \relax after the last
value of \hskip, this is even explained in one of the exercises in the
TeXbook.
\starttext
a\hskip 1cm plus 5mm minus 5mm b
a\hskip 1cm minus 5mm plus 5mm b
a\hskip 1cm pLuS 5mm MiNuS 5mm b
a\hskip 1cm plus 5mm minus 5mm plus 1cm b
\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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________