[NTG-context] Emacs24 + AucTeX + ConTeXt

Michael Eidenbenz eidenbenz at arch.ethz.ch
Sun Oct 30 02:36:26 CEST 2016


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 <fabrice1.couvreur at gmail.com> 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 at debian:~$ which context
> /home/fab/bin/context
> fab at debian:~$ source context/tex/setuptex
> Setting "/home/fab/context/tex" as ConTeXt root.
> fab at debian:~$ which context
> /home/fab/context/tex/texmf-linux-64/bin/context
> fab at 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 <eidenbenz at arch.ethz.ch>:
> 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 at 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 at 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
> ___________________________________________________________________________________



More information about the ntg-context mailing list