Re: [NTG-context] Custom engine settings in AUCTEX

2022-07-03 Thread Hans Hagen via ntg-context

On 7/2/2022 11:08 PM, Lizardo Reyna via ntg-context wrote:

You can try adding a TeX-command with this:

(eval-after-load "context"

   '(setq TeX-command-list

     (append

   '(

     ("context"

"context --purgeall %t"

   TeX-run-command t :help "Run context (MarkIV)")

     ("luametatex"

"context --purgeall %t"

   TeX-run-command t :help "Run context (LMTX)")

   ) TeX-command-list

     )

   )

   )

--
Assuming that the runner (mtxrun or context) is an alias to luametatex, 
you can do:


context foo.tex   : lmtx
context --luatex foo.tex  : mkiv

an lmtx installation assume this. So, luametatex, iven when not used is 
the assumed runner for luatex then.


ps. On some platforms mtxrun/context is a small independent stub but 
that will change for this model. The same for shebang'd launching: we 
always assume a binary stub.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] Custom engine settings in AUCTEX

2022-07-02 Thread Lizardo Reyna via ntg-context
You can try adding a TeX-command with this:


(eval-after-load "context"
  '(setq TeX-command-list
(append
  '(
("context"
"context --purgeall %t"
  TeX-run-command t :help "Run context (MarkIV)")
("luametatex"
"context --purgeall %t"
  TeX-run-command t :help "Run context (LMTX)")
  ) TeX-command-list
)
  )
  )

--
Mauricio Reyna


___
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
___


Re: [NTG-context] Custom engine settings in AUCTEX

2022-07-02 Thread Jan-Erik Hägglöf via ntg-context
It seems to use the old texexec with your configuration example

Running `ConTeXt Full' on `rutor' with ``texexec  --engine=luametatex 
--interface=en --nonstop rutor.tex''
/bin/sh: texexec: command not found

TeX Output exited abnormally with code 127 at Sat Jul  2 09:50:33

> 1 juli 2022 kl. 15:50 skrev Mauricio Reyna via ntg-context 
> :
> 
> This is my emacs setup for AUCTEX with ConTeXt.
>  
> ;; Install straight.el
> (defvar bootstrap-version)
> (let ((bootstrap-file
>(expand-file-name "straight/repos/straight.el/bootstrap.el" 
> user-emacs-directory))
>   (bootstrap-version 5))
>   (unless (file-exists-p bootstrap-file)
> (with-current-buffer
> (url-retrieve-synchronously
>  
> "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el 
> "
>  'silent 'inhibit-cookies)
>   (goto-char (point-max))
>   (eval-print-last-sexp)))
>   (load bootstrap-file nil 'nomessage))
>  
>  
>  
> ;; Install use-package
> (straight-use-package 'use-package)
>  
>  
> ;; Configure use-package to use straight.el by default
> (use-package straight
>  :custom (straight-use-package-by-default t))
>  
>  
>  
>  
> (use-package yasnippet)
>  
> ;;; Auctex
>  
>  
> (defun my-context-setup ()
>   (custom-set-variables
>'(ConTeXt-Mark-version "LMTX")
>'(ConTeXt-engine "lutametatex")))
>  
> 
>  
> (straight-use-package 'auctex)
>  
>  
> (add-hook 'ConTeXt-mode-hook
>   (lambda ()
> (reftex-mode 1)
> (flyspell-mode 1)
> (auto-fill-mode 1)
> ;(relative-line-numbers-mode 1)
> ;(abbrev-mode 1)
> (my-context-setup)
> (yas-minor-mode)
> (yas-reload-all)))
>  
>  
> I hope this help you
>  
> Mauricio
> ___
> 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
___


Re: [NTG-context] Custom engine settings in AUCTEX

2022-06-17 Thread skrantajanneman via ntg-context
It worked as expected.Thank you very much for your help./Jan-Erik mvh Jan-Erik 
Hägglöf 
 Originalmeddelande Från: fv leung via ntg-context 
 Datum: 2022-06-15  00:46  (GMT+01:00) Till: mailing list 
for ConTeXt users  Kopia: fv leung  
Ämne: Re: [NTG-context] Custom engine settings in AUCTEX I changed the value 
for ConTeXt-Mark-version from "II" to "IV" in context.el file.There are more 
than one such entry.In the Windows platform, I added the following to the 
.emacs "gmail_quote">Jan-Erik Hägglöf via ntg-context  於 
2022年6月15日 週三 清晨5:36寫道:HI!

I’ve been trying out Doom-Emacs and when I open a ConTeXt file i want the 
engine point to my LMTX installation.

/Users/jan-erikhagglof/context/context-osx-64/tex/texmf-osx-64/bin/ is the path 
to my install on my Macos Monterey.

How can this been customized?

Its a bit confusing reading the AUCTEX manual so maybe someone has a working 
config already?

Thanks in advance

Jan-Erik
___
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
___


Re: [NTG-context] Custom engine settings in AUCTEX

2022-06-14 Thread fv leung via ntg-context
I changed the value for ConTeXt-Mark-version from "II" to "IV" in
context.el file.
There are more than one such entry.

In the Windows platform, I added the following to the .emacs file:
(load "context.el" nil t t)
(add-to-list 'auto-mode-alist '("\\.tex\\'" . context-mode))
(eval-after-load 'tex
'(add-to-list
 'TeX-command-list
 '("LuaMetaTeX"
"C:\\Users\\Leung\\AppData\\Local\\Programs\\ConTeXt\\tex\\texmf-win64\\bin\\mtxrun.exe
--autogenerate --script context --autopdf %t"
   TeX-run-command nil (context-mode) :help "Run LuaMetaTeX")))

Maybe it's similar in the OSX platform.

Jan-Erik Hägglöf via ntg-context  於 2022年6月15日 週三
清晨5:36寫道:

> HI!
>
> I’ve been trying out Doom-Emacs and when I open a ConTeXt file i want the
> engine point to my LMTX installation.
>
> /Users/jan-erikhagglof/context/context-osx-64/tex/texmf-osx-64/bin/ is the
> path to my install on my Macos Monterey.
>
> How can this been customized?
>
> Its a bit confusing reading the AUCTEX manual so maybe someone has a
> working config already?
>
> Thanks in advance
>
> Jan-Erik
>
> ___
> 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
___