* Re: Custom engine settings in AUCTEX
@ 2022-07-02 21:08 Lizardo Reyna via ntg-context
2022-07-03 10:33 ` Hans Hagen via ntg-context
0 siblings, 1 reply; 8+ messages in thread
From: Lizardo Reyna via ntg-context @ 2022-07-02 21:08 UTC (permalink / raw)
To: ntg-context; +Cc: Lizardo Reyna
[-- Attachment #1.1: Type: text/plain, Size: 405 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 2618 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Custom engine settings in AUCTEX
2022-07-02 21:08 Custom engine settings in AUCTEX Lizardo Reyna via ntg-context
@ 2022-07-03 10:33 ` Hans Hagen via ntg-context
0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen via ntg-context @ 2022-07-03 10:33 UTC (permalink / raw)
To: Lizardo Reyna via ntg-context; +Cc: Hans Hagen
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Custom engine settings in AUCTEX
2022-07-01 13:50 Mauricio Reyna via ntg-context
@ 2022-07-02 7:54 ` Jan-Erik Hägglöf via ntg-context
0 siblings, 0 replies; 8+ messages in thread
From: Jan-Erik Hägglöf via ntg-context @ 2022-07-02 7:54 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Jan-Erik Hägglöf
[-- Attachment #1.1: Type: text/plain, Size: 2755 bytes --]
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 <ntg-context@ntg.nl>:
>
> 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 <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 <mailto:ntg-context@ntg.nl> / http://www.ntg.nl/mailman/listinfo/ntg-context <http://www.ntg.nl/mailman/listinfo/ntg-context>
> webpage : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / http://context.aanhet.net <http://context.aanhet.net/>
> archive : https://bitbucket.org/phg/context-mirror/commits/ <https://bitbucket.org/phg/context-mirror/commits/>
> wiki : http://contextgarden.net <http://contextgarden.net/>
> ___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 18937 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Custom engine settings in AUCTEX
@ 2022-07-01 13:56 Mauricio Reyna via ntg-context
0 siblings, 0 replies; 8+ messages in thread
From: Mauricio Reyna via ntg-context @ 2022-07-01 13:56 UTC (permalink / raw)
To: ntg-context; +Cc: Mauricio Reyna
[-- Attachment #1.1: Type: text/plain, Size: 132 bytes --]
You can add the path with the following line
(add-to-list 'exec-path "/opt/lmtx/tex/texmf-linux-64/bin")
--
Mauricio
[-- Attachment #1.2: Type: text/html, Size: 2744 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Custom engine settings in AUCTEX
@ 2022-07-01 13:50 Mauricio Reyna via ntg-context
2022-07-02 7:54 ` Jan-Erik Hägglöf via ntg-context
0 siblings, 1 reply; 8+ messages in thread
From: Mauricio Reyna via ntg-context @ 2022-07-01 13:50 UTC (permalink / raw)
To: ntg-context; +Cc: Mauricio Reyna
[-- Attachment #1.1: Type: text/plain, Size: 1303 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 4250 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Custom engine settings in AUCTEX
2022-06-14 22:45 ` fv leung via ntg-context
@ 2022-06-17 14:26 ` skrantajanneman via ntg-context
0 siblings, 0 replies; 8+ messages in thread
From: skrantajanneman via ntg-context @ 2022-06-17 14:26 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: skrantajanneman
[-- Attachment #1.1: Type: text/plain, Size: 1555 bytes --]
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 <ntg-context@ntg.nl> Datum: 2022-06-15 00:46 (GMT+01:00) Till: mailing list for ConTeXt users <ntg-context@ntg.nl> Kopia: fv leung <fvleung@gmail.com> Ä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 <ntg-context@ntg.nl> 於 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
___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 2957 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Custom engine settings in AUCTEX
2022-06-14 21:36 Jan-Erik Hägglöf via ntg-context
@ 2022-06-14 22:45 ` fv leung via ntg-context
2022-06-17 14:26 ` skrantajanneman via ntg-context
0 siblings, 1 reply; 8+ messages in thread
From: fv leung via ntg-context @ 2022-06-14 22:45 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: fv leung
[-- Attachment #1.1: Type: text/plain, Size: 1675 bytes --]
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 <ntg-context@ntg.nl> 於 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
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 2624 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Custom engine settings in AUCTEX
@ 2022-06-14 21:36 Jan-Erik Hägglöf via ntg-context
2022-06-14 22:45 ` fv leung via ntg-context
0 siblings, 1 reply; 8+ messages in thread
From: Jan-Erik Hägglöf via ntg-context @ 2022-06-14 21:36 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Jan-Erik Hägglöf
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-07-03 10:33 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-02 21:08 Custom engine settings in AUCTEX Lizardo Reyna via ntg-context
2022-07-03 10:33 ` Hans Hagen via ntg-context
-- strict thread matches above, loose matches on Subject: below --
2022-07-01 13:56 Mauricio Reyna via ntg-context
2022-07-01 13:50 Mauricio Reyna via ntg-context
2022-07-02 7:54 ` Jan-Erik Hägglöf via ntg-context
2022-06-14 21:36 Jan-Erik Hägglöf via ntg-context
2022-06-14 22:45 ` fv leung via ntg-context
2022-06-17 14:26 ` skrantajanneman via ntg-context
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).