​Hi Michael, ​ Thank you for your help but it does not work, maybe a problem with the Emacs shell. Running `ConTeXt' on `ntg32' with ``context --once --texutil --nonstop ntg32.tex'' resolvers | trees | analyzing 'home:texmf' mtx-context | run 1: luatex --fmt="/home/fab/texlive/2016/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en" --interaction="nonstopmode" --jobname="ntg32" --lua="/home/fab/texlive/2016/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.lui" --no-parse-first-line --c:currentrun=1 --c:fulljobname="./ntg32.tex" --c:input="./ntg32.tex" --c:kindofrun=3 --c:maxnofruns=1 --c:nonstopmode --c:once --c:texutil "cont-yes.mkiv" This is LuaTeX, Version 0.95.0 (TeX Live 2016) system commands enabled. resolvers > trees > analyzing 'home:texmf' open source > 1 > 1 > /home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv ConTeXt ver: 2016.05.17 19:20 MKIV current fmt: 2016.10.29 int: english/english system > 'cont-new.mkiv' loaded open source > 2 > 2 > /home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/cont-new.mkiv close source > 2 > 2 > /home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/cont-new.mkiv system > files > jobname 'ntg32', input './ntg32', result 'ntg32' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > 2 > 3 > /home/fab/ntg32.tex fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded backend > xmp > using file '/home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1 close source > 2 > 3 > /home/fab/ntg32.tex close source > 1 > 3 > /home/fab/texlive/2016/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv mkiv lua stats > used config file: selfautoparent:/texmfcnf.lua;selfautoparent:/texmf-dist/web2c/texmfcnf.lua mkiv lua stats > used cache path: /home/fab/texlive/2016/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9 mkiv lua stats > resource resolver: loadtime 0.104 seconds, 1 scans with scantime 0.021 seconds, 0 shared scans, 9 found files, scanned paths: /home/fab/texmf mkiv lua stats > stored bytecode data: 387 modules (0.366 sec), 82 tables (0.011 sec), 469 chunks (0.377 sec) mkiv lua stats > traced context: maxstack: 1176, freed: 1, unreachable: 1175 mkiv lua stats > cleaned up reserved nodes: 47 nodes, 9 lists of 444 mkiv lua stats > node memory usage: 15 glue, 2 penalty, 22 attribute, 38 glue_spec, 8 attribute_list, 2 temp mkiv lua stats > node list callback tasks: 6 unique task lists, 5 instances (re)created, 32 calls mkiv lua stats > used backend: pdf (backend for directly generating pdf output)mkiv lua stats > jobdata time: 0.001 seconds saving, 0.001 seconds loading mkiv lua stats > callbacks: 136 direct, 245 indirect, 381 total mkiv lua stats > randomizer: resumed with value 0.17602822472156 mkiv lua stats > positions: 13 collected, 8 regulars, 5 regions, 0 unresolved regions mkiv lua stats > loaded patterns: en::2, load time: 0.000 mkiv lua stats > result saved in file: ntg32.pdf, compresslevel 3, objectcompresslevel 3 mkiv lua stats > loaded fonts: 2 files: latinmodern-math.otf, lmroman12-regular.otf mkiv lua stats > font engine: otf 3.020, afm 1.512, tfm 1.000, 4 instances, load time 0.161 seconds mkiv lua stats > used platform: linux-64, type: unix, binary subtree: bin mkiv lua stats > luatex banner: this is luatex, version 0.95.0 (tex live 2016)mkiv lua stats > control sequences: 43813 of 65536 + 100000 mkiv lua stats > lua properties: engine: lua, used memory: 78 MB (ctx: 77 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ) mkiv lua stats > runtime: 0.587 seconds, 1 processed pages, 1 shipped pages, 1.704 pages/second system | total runtime: 0.831 seconds TeX Output finished at Sun Oct 30 10:09:20 ​Fabrice​ 2016-10-30 2:36 GMT+02:00 Michael Eidenbenz : > the command should be: > > (eval-after-load "tex" > '(add-to-list 'TeX-command-list > '("context" > "source /home/fab/context/tex/setuptex && context" > TeX-run-TeX > nil > (context-mode) > :help "Run ConTeXt") t)) > > > > > > > On 29 Oct 2016, at 23:41, Fabrice Couvreur > wrote: > > > > Hi, > > @Tobias > > > > If I add this to my .emacs I get > > > > (setenv "PATH"/Users/fab/tex/texmf-linux-64/bin/ ":$PATH" t) > > (add-to-list 'load-path "/home/fab/context/tex/texmf- > linux-64/bin/context") > > > > Warning (initialization): An error occurred while loading > `/home/fab/.emacs': > > > > Symbol's value as variable is void: /Users/fab/tex/texmf-linux-64/bin > > > > > > @Michael > > > > fab@debian:~$ which context > > /home/fab/bin/context > > fab@debian:~$ source context/tex/setuptex > > Setting "/home/fab/context/tex" as ConTeXt root. > > fab@debian:~$ which context > > /home/fab/context/tex/texmf-linux-64/bin/context > > fab@debian:~$ > > > > If I add this to my .emacs is always texlive 2016 is invoked when I > compile > > > > (eval-after-load "tex" > > '(add-to-list 'TeX-command-list > > '("context" > > "(/home/fab/context)/setuptex&&context" > > TeX-run-TeX > > nil > > (context-mode) > > :help "Run ConTeXt") t)) > > > > > > Thanks, > > Fabrice > > > > > > 2016-10-29 12:50 GMT+02:00 Michael Eidenbenz : > > sorry that should be: > > > > (path to textree)/setuptex && context ..... > > > > > >> > >> cd (path to textree) && setuptex && context etc... > > > > > > ____________________________________________________________ > _______________________ > > If your question is of interest to others as well, please add an entry > to the Wiki! > > > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/ > listinfo/ntg-context > > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > > archive : https://bitbucket.org/phg/context-mirror/commits/ > > wiki : http://contextgarden.net > > ____________________________________________________________ > _______________________ > > > > ____________________________________________________________ > _______________________ > > If your question is of interest to others as well, please add an entry > to the Wiki! > > > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/ > listinfo/ntg-context > > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > > archive : https://bitbucket.org/phg/context-mirror/commits/ > > wiki : http://contextgarden.net > > ____________________________________________________________ > _______________________ > > ____________________________________________________________ > _______________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/ > listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ____________________________________________________________ > _______________________ >