I upgraded today my OBSD to 7.3 and… realized too late that texlive
binaries were on the compile farm, but not the lmtx ones. That was the
opportunity to learn self-install, though.
I compiled the binary, but I am stuck with the next step
What I did:
- rm -rf /usr/local/context/* (now I suspect I should have first updated
my 7.2 installation and then, after upgrading to 7.3, compiled the
- download https://www.pragma-ade.nl/context/latest/cont-tmf.zip
- unpacked it into /usr/local/context (unzip cont-tmf.zip -d
- cd /usr/local/context/source/luametatex
- ./build.sh --native
Compilation succeeded, looks like the binary lies in
What's the next step?
There was this message:
resources like public fonts : tex/texmf/....
the context macro package : tex/texmf-context/....
the luametatex binary : tex/texmf-native/bin/...
optional third party modules : tex/texmf-context/....
fonts installed by the user : tex/texmf-fonts/fonts/data/....
styles made by the user : tex/texmf-projects/tex/context/user/....
tex/texmf-<your platform>/bin/luametatex : the compiled binary (some
tex/texmf-<your platform>/bin/mtxrun : copy of or link to
tex/texmf-<your platform>/bin/context : copy of or link to
tex/texmf-<your platform>/bin/mtxrun.lua : copy of
tex/texmf-<your platform>/bin/context.lua : copy of
mtxrun --generate : create file database
mtxrun --script fonts --reload : create font database
mtxrun --autogenerate context ... : run tex file (e.g. from editor)
The tex/texmf/ folder does not exist yet.
Does this mean I have to create that part of the tree by hand (which
means should I have unpacked the zip at /usr/local/context/tex/texmf
rather than /usr/local/context)?I’d bet copying anything(copying mtxrun
Should I run install.sh – which I not did, assuming maybe wrongly that
it would fail, and if so, which options?
Thank you for your time,
As I was testing circuitikz, I realized that the following don't work:
In phys-dim.lmt, we need to change line 467:
v = "volt",
V = "volt",
and perhaps add (not sure if lua allows utf variable names)
Ω = "ohm",
I wanted to define a custom math function (similar to log etc.) for
argmax. However, I wanted to have a small space between "arg" and "max"
and limits should work properly. I am using a up-to-date LMTX installation.
Without the first constraint it's easy:
> % old way:
> % new way, discoverd by looking into math-def.mkxl
However, both methods do not work if I want to have "arg\,max" printed
(error about \endcsname missing). With mkiv the first method works and
can also be found in the wiki.
What's the current way to define such a custom math function?
I have just updated to current latest (2023.04.27 17:04).
I always delete cache with "mtxrun --generate" after an update.
When I try to create the format file with "context --make --all", I get
the following error message:
lua error > lua error on line 645 in file context.mkxl:
token call, execute: ...ext/base/mkxl/cldf-pos.lmt:18: attempt to index
a nil value (global 'posit') stack traceback:
...ext/base/mkxl/cldf-pos.lmt:18: in local 'code'
...ext/base/mkiv/util-lua.lua:96: in field 'loadedluacode'
...ext/base/mkiv/luat-env.lua:108: in field 'luafilechunk'
...ext/base/mkxl/luat-cod.lmt:82: in function 'lua.registercode'
[ctxlua]:1: in main chunk
A number should have been here; I inserted '0'. (If you can't figure out
why I needed to see a number, look up 'weird error' in the index to The
Could anyone confirm the issue?
Many thanks for your help,