[NTG-context] Restarting with different engine fails

Henri Menke henrimenke at gmail.com
Fri Feb 1 22:30:50 CET 2019


Dear list,

ConTeXt allows to select the engine in the preamble with a “magic
comment”.  The preamble is parsed and the engine restarted with new
options.  The following MWE fails in the latest beta

% engine=luajittex
\starttext
Fail
\stoptext

with the error message

texmf-context/scripts/context/lua/mtx-context.lua:427: attempt to call a
nil value (global 'restart')

If I uncomment the restart function and its helpers around line 110 it
works.

Please fix.

Cheers, Henri


More information about the ntg-context mailing list