On 30/11/2015, Ludovic Courtès <l...@gnu.org> wrote: > Alex Vong <alexvong1...@gmail.com> skribis: > >> Yesterday, I try to use compile some document with context, so I >> install texlive in guix. However, when I run "context --version", I >> get the following error: >> >> mtxrun | unknown script 'context.lua' or 'mtx-context.lua' >> >> After doing some searching, I find out that the following works: >> >> $ TEXMF=`guix build texlive-texmf` context --version >> >> What should I add to native-search-path to set the TEXMF variable to >> the output path? > > It ‘TEXMF’ really a search path, or is it rather a variable that should > point to a single directory? > I think it is a search path since both `TEXMF=/gnu/store/gb4y83bvcpkvdmz0dvi9rp507kbdbr5x-texlive-texmf-2015 context --version` and `TEXMF=/gnu/store/gb4y83bvcpkvdmz0dvi9rp507kbdbr5x-texlive-texmf-2015/share context --version` works. But otherwise, I don't know how environment variables in texlive works. I see there are other environmental variables as well. For instance, TEXINPUTS, TEXMFLOCAL and TEXMFHOME. But only TEXMF and TEXMFHOME works.
> If the issue is limited to the ‘context’ program, then we may be better > off wrapping ‘context’ such that ‘TEXMF’ is always set appropriately. > > Thoughts? Andreas? > > Ludo’. >