Re: [NTG-context] a question about ConTeXt + AUCTeX
![](https://secure.gravatar.com/avatar/4c28fd6d330a40622831da8ace027a0f.jpg?s=120&d=mm&r=g)
Dear Thomas, Thank you for your reply. XeTeX+ ConTeXt is working after adding a command as you said. (customize-variaable) But Lua + ConTeXt is not working. If I do "mtxrun --script context ...", then it complains. %%%%%%% Running `Other' on `test-lua' with ``mtxrun --script context %t'' MtxRun | unknown script: context %%%%%%%%%%%%%%%%% If I changed the command "texmfstart texexec --lua %t", then I got the following. Running `LuaConTeXt' on `test-lua' with ``texmfstart texexec --lua test-lua.tex'' TeXExec | processing document 'test-lua.tex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file test-lua.top TeXExec | using randomseed 828 TeXExec | tex engine: luatex TeXExec | tex format: cont-en LuaTools | using format name /Users/dalyoung/luatex-cache/context/ 5759d5068ca15ba6658b2e6454390744/formats/cont-en.fmt LuaTools | no luc/lua with name /Users/dalyoung/luatex-cache/context/ 5759d5068ca15ba6658b2e6454390744/formats/cont-en LuaTools | LuaTools | runtime: 0.023 seconds TeXUtil | parsing file test-lua.tui TeXUtil | shortcuts : 169 TeXUtil | expansions: 308 TeXUtil | reductions: 0 TeXUtil | divisions : 0 TeXUtil | loaded files: 1 TeXUtil | temporary files: 0 TeXUtil | commands: 21 TeXUtil | programs: 0 TeXUtil | tuo file saved TeXExec | runtime: 0.891602 LuaConTeXt finished at Sat May 17 16:14:24 However, the same command worked well in a terminal. Maybe the system setup of yours is different from mine. Usually I run "source .luatex" first before running luatex. So my guess is that emacs couldn't know the luatex path even though it is known in another program "terminal". Am I correct? If so, how to apply environment .luatex to global condition? Otherwise, what are wrong in my setup? Thank you. Best regards, Dalyoung Jeong
![](https://secure.gravatar.com/avatar/5ac56d5e4e2c07726085feb096e2f449.jpg?s=120&d=mm&r=g)
Le 17 mai à 10:11:13 Dalyoung Jeong
| Maybe the system setup of yours is different from mine. | Usually I run "source .luatex" first before running luatex. | So my guess is that emacs couldn't know the luatex path even though it | is known in another program "terminal".
| Am I correct? If so, how to apply environment .luatex to global | condition? Otherwise, what are wrong in my setup? Yes I think you are correct; if you start emacs *from this terminal from which you issued "source .luatex"* you will probably see that emacs knows luatex; this is what I had on my system, before I found how to have all my emacs know the proper environment. I am on linux and I believe you are on mac, so I'm not sure my experience can be extended to you? If needed I will be more specific. hth -- Jean
![](https://secure.gravatar.com/avatar/d0e94fb08d4620cfbd2f8f59a7868637.jpg?s=120&d=mm&r=g)
On May 17, 2008, at 10:53 AM, Jean Magnan de Bornier wrote:
Le 17 mai à 10:11:13 Dalyoung Jeong
écrit notamment: | However, the same command worked well in a terminal.
| Maybe the system setup of yours is different from mine. | Usually I run "source .luatex" first before running luatex. | So my guess is that emacs couldn't know the luatex path even though it | is known in another program "terminal".
| Am I correct? If so, how to apply environment .luatex to global | condition? Otherwise, what are wrong in my setup?
Yes I think you are correct; if you start emacs *from this terminal from which you issued "source .luatex"* you will probably see that emacs knows luatex; this is what I had on my system, before I found how to have all my emacs know the proper environment. I am on linux and I believe you are on mac, so I'm not sure my experience can be extended to you?
If needed I will be more specific.
hth
Yes, you're both right. What I do (and what I find the easiest way): start emacs from the same terminal where you have issued "source .luatex" with the command "open -a emacs". That way, emacs should know about path variables. Thomas
![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
Thomas A. Schmitz wrote:
Yes, you're both right. What I do (and what I find the easiest way): start emacs from the same terminal where you have issued "source .luatex" with the command "open -a emacs". That way, emacs should know about path variables.
Emacs has a setenv command, so you could "do" the whole setuptex in elisp with commands like this in your emacs startup script: (setenv "TEXMF" "{$TEXMFOS,$TEXMFPROJECT,$TEXMFFONTS,$TEXMFLOCAL,$TEXMFEXTRA,!!$TEXMFMAIN}") Maybe that is an idea? Cheers, Taco
![](https://secure.gravatar.com/avatar/d0e94fb08d4620cfbd2f8f59a7868637.jpg?s=120&d=mm&r=g)
On May 17, 2008, at 11:28 AM, Taco Hoekwater wrote:
Emacs has a setenv command, so you could "do" the whole setuptex in elisp with commands like this in your emacs startup script:
(setenv "TEXMF" "{$TEXMFOS,$TEXMFPROJECT,$TEXMFFONTS,$TEXMFLOCAL,$TEXMFEXTRA,!! $TEXMFMAIN}")
Maybe that is an idea?
Cheers, Taco
Yes, that would be possible (but you would also have to set the PATH variable). Another idea on Mac OS X is the use of an environment.plist which will set variables for all GUI applications. I'm not very much in favor of that, though, because it has created problems in the past with Geben Wierda's TeX installer. Since I spend much of my time in a terminal window anyway, I find it easiest to start emacs and/or gvim from there. Best Thomas
participants (4)
-
Dalyoung Jeong
-
Jean Magnan de Bornier
-
Taco Hoekwater
-
Thomas A. Schmitz