summaryrefslogtreecommitdiff
path: root/doc/context/sources/general/manuals/luametatex
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2021-08-22 12:15:53 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2021-08-22 12:15:53 +0200
commit4d2f305f0f00e1d6d6c03443596a830bfb9da69c (patch)
treeaa049c7577e473819cf14b8950304fd4079eee1a /doc/context/sources/general/manuals/luametatex
parentaf60125ab3fa9e482720f0f46c2143fa08512113 (diff)
downloadcontext-4d2f305f0f00e1d6d6c03443596a830bfb9da69c.tar.gz
2021-08-22 11:53:00
Diffstat (limited to 'doc/context/sources/general/manuals/luametatex')
-rw-r--r--doc/context/sources/general/manuals/luametatex/luametatex-lua.tex24
1 files changed, 11 insertions, 13 deletions
diff --git a/doc/context/sources/general/manuals/luametatex/luametatex-lua.tex b/doc/context/sources/general/manuals/luametatex/luametatex-lua.tex
index c48ad822f..81bcf40a3 100644
--- a/doc/context/sources/general/manuals/luametatex/luametatex-lua.tex
+++ b/doc/context/sources/general/manuals/luametatex/luametatex-lua.tex
@@ -15,17 +15,13 @@
Although \LUAMETATEX\ is primarily meant as a \TEX\ engine, it can also serve as
a stand alone \LUA\ interpreter. There are two ways to make \LUAMETATEX\ behave
-like a standalone \LUA\ interpreter:
-
-\startitemize[packed]
-\startitem
- if a \type {--luaonly} option is given on the commandline, or
-\stopitem
-\startitem
- if the only non|-|option argument (file) on the commandline has the extension
- \type {lua} or \type {luc}.
-\stopitem
-\stopitemize
+like a standalone \LUA\ interpreter. The first method uses the command line
+option \type {--luaonly} followed by a filename. The second is more automatic: if
+the only non|-|option argument (file) on the commandline has the extension \type
+{lmt} or \type {lua}. The \type {luc} extension has been dropped because bytecode
+compiled files are not portable and one can always load indirect. The \type {lmt}
+suffix is more \CONTEXT\ specific and makes it possible to have files for
+\LUATEX\ and \LUAMETATEX\ alongside.
In this mode, it will set \LUA's \type {arg[0]} to the found script name, pushing
preceding options in negative values and the rest of the command line in the
@@ -39,8 +35,10 @@ possible below the 3MB which is okay for a script engine.
When no argument is given, \LUAMETATEX\ will look for a \LUA\ file with the same
name as the binary and run that one when present. This makes it possible to use
the engine as a stub. For instance, in \CONTEXT\ a symlink from \type {mtxrun} to
-type {luametatex} will run the \type {mtxrun.lua} script when present in the same
-path as the binary itself
+type {luametatex} will run the \type {mtxrun.lmt} or \type {mtxrun.lua} script
+when present in the same path as the binary itself. As mentioned before first
+checking for (\CONTEXT) \type {lmt} files permits different files for different
+engines in the same path.
\stopsubsection