* format error with latest 2020-11-16 19:40 with mkiv (luatex)
@ 2020-11-17 2:06 Adam Reviczky
2020-11-17 8:54 ` Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Adam Reviczky @ 2020-11-17 2:06 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2533 bytes --]
Hi,
I am getting the following error message trying to generate the formats
(context --make) with the latest version (latest 2020-11-16 19:40) with
luatex 1.13.0 7385 (not lmtx).
loading > ConTeXt Typesetting Macros / Triggering Actions
resolvers > lua > loading file
'/usr/share/texmf/tex/context/base/mkiv/typo-inj.lua' succeeded
tex error > tex error on line 49 in file
/usr/share/texmf/tex/context/base/mkiv/typo-inj.mkiv: ! Parameters must be
numbered consecutively
<to be read again>
*
l.49 \permanent\tolerant\protected\def\checkinjector [#1]#*
[#2]{\clf_checkinjector{#1}{#2}}
39 %D \placeregister[index][criterium=text]
40 %D \page
41 %D \startsection[title=Alpha] first \index{first} \stopsection
42 %D \startsection[title=Beta] second \index{second} \stopsection
43 %D \startsection[title=Gamma] third \index{third} \stopsection
44 %D \startsection[title=Delta] fourth \index{fourth} \stopsection
45 %D \stoptext
46
47 \permanent \protected\def\resetinjector
[#1]{\clf_resetinjector{#1}}
48 \permanent \protected\def\markinjector
[#1]{\dontleavehmode\clf_markinjector{#1}}
49 >> \permanent\tolerant\protected\def\checkinjector
[#1]#*[#2]{\clf_checkinjector{#1}{#2}}
50 \permanent \protected\def\checknextinjector
[#1]{\clf_checkinjector{#1}{\v!next}}
51 \permanent \protected\def\checkpreviousinjector
[#1]{\clf_checkinjector{#1}{\v!previous}}
52 %permanent \protected\def\checknextinjector
[#1]{\clf_checknextinjector{#1}}
53 %permanent \protected\def\checkpreviousinjector
[#1]{\clf_checkpreviousinjector{#1}}
54 \permanent\tolerant\protected\def\setinjector
[#1]#*[#2]#*[#3]{\clf_setinjector{#1}{#2}{#3}}
55 \permanent\tolerant\protected\def\showinjector
[#1]{\clf_showinjector{#1}}
56
57 \permanent\protected\def\domarkinjector#1#2% called at the lua end
58 {\dontleavehmode\llap{\infofont\ifcase#1\else\red\fi<#2>\quad}}
59
Swapping typo-inj.mkxl with typo-inj.mkiv makes it work though, changing
\permanent\tolerant\protected\def\checkinjector [#1]#*[#2]{\clf
_checkinjector{#1}{#2}}
\permanent\tolerant\protected\def\setinjector [#1]#*[#2]#*[#3]{\clf
_setinjector{#1}{#2}{#3}}
back to
\unexpanded\def\docheckinjector [#1][#2]{\clf_checkinjector{#1}{#2}}
\unexpanded\def\dosetinjector [#1][#2][#3]{\clf_setinjector{#1}{#2}{#3}}
Were the files mixed up?
Shouldn't the former be for mkxl (lmtx) and the latter for mkiv?
Adam
[-- Attachment #1.2: Type: text/html, Size: 4461 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: format error with latest 2020-11-16 19:40 with mkiv (luatex)
2020-11-17 2:06 format error with latest 2020-11-16 19:40 with mkiv (luatex) Adam Reviczky
@ 2020-11-17 8:54 ` Hans Hagen
2020-11-17 14:11 ` Adam Reviczky
0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2020-11-17 8:54 UTC (permalink / raw)
To: mailing list for ConTeXt users, Adam Reviczky
On 11/17/2020 3:06 AM, Adam Reviczky wrote:
> Hi,
>
> I am getting the following error message trying to generate the formats
> (context --make) with the latest version (latest 2020-11-16 19:40) with
> luatex 1.13.0 7385 (not lmtx).
>
> loading > ConTeXt Typesetting Macros / Triggering Actions
> resolvers > lua > loading file
> '/usr/share/texmf/tex/context/base/mkiv/typo-inj.lua' succeeded
>
> tex error > tex error on line 49 in file
> /usr/share/texmf/tex/context/base/mkiv/typo-inj.mkiv: ! Parameters must
> be numbered consecutively
>
> <to be read again>
> *
> l.49 \permanent\tolerant\protected\def\checkinjector [#1]#*
>
> [#2]{\clf_checkinjector{#1}{#2}}
I'll upload a fixed zip.
\permanent\tolerant\protected\def\checkinjector[#1]#*[#2]{...}
is lmtx speak for pick up [#1], skip spaces, pickup [#2] but don't bark
when these are missing (be \tolerant). And, prevent the user from
overloading this macro {\permanent).
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: format error with latest 2020-11-16 19:40 with mkiv (luatex)
2020-11-17 8:54 ` Hans Hagen
@ 2020-11-17 14:11 ` Adam Reviczky
0 siblings, 0 replies; 3+ messages in thread
From: Adam Reviczky @ 2020-11-17 14:11 UTC (permalink / raw)
To: Hans Hagen; +Cc: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1485 bytes --]
Thank you Hans, all fine now again!
Adam
On Tue, Nov 17, 2020 at 8:54 AM Hans Hagen <j.hagen@xs4all.nl> wrote:
> On 11/17/2020 3:06 AM, Adam Reviczky wrote:
> > Hi,
> >
> > I am getting the following error message trying to generate the formats
> > (context --make) with the latest version (latest 2020-11-16 19:40) with
> > luatex 1.13.0 7385 (not lmtx).
> >
> > loading > ConTeXt Typesetting Macros / Triggering Actions
> > resolvers > lua > loading file
> > '/usr/share/texmf/tex/context/base/mkiv/typo-inj.lua' succeeded
> >
> > tex error > tex error on line 49 in file
> > /usr/share/texmf/tex/context/base/mkiv/typo-inj.mkiv: ! Parameters must
> > be numbered consecutively
> >
> > <to be read again>
> > *
> > l.49 \permanent\tolerant\protected\def\checkinjector [#1]#*
> >
> > [#2]{\clf_checkinjector{#1}{#2}}
> I'll upload a fixed zip.
>
> \permanent\tolerant\protected\def\checkinjector[#1]#*[#2]{...}
>
> is lmtx speak for pick up [#1], skip spaces, pickup [#2] but don't bark
> when these are missing (be \tolerant). And, prevent the user from
> overloading this macro {\permanent).
>
> 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
> -----------------------------------------------------------------
>
[-- Attachment #1.2: Type: text/html, Size: 2309 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-11-17 14:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-17 2:06 format error with latest 2020-11-16 19:40 with mkiv (luatex) Adam Reviczky
2020-11-17 8:54 ` Hans Hagen
2020-11-17 14:11 ` Adam Reviczky
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).