* [NTG-context] context / auctex problem? @ 2024-06-17 12:15 Jürgen Hanneder via ntg-context 2024-06-17 17:23 ` [NTG-context] " Henning Hraban Ramm 2024-06-18 5:34 ` [NTG-context] " Lizardo Reyna via ntg-context 0 siblings, 2 replies; 9+ messages in thread From: Jürgen Hanneder via ntg-context @ 2024-06-17 12:15 UTC (permalink / raw) To: ntg-context; +Cc: hanneder Apologies for this question, which is probably an auctex problem. I have a new install of everything (LinuX, emacs, texlive) and the latest (?) context (ConTeXt ver: 2024.05.27 18:16 LMTX) installed in a separate directory. Running context from the commandline works fine, so I guess I did not misspell the path, but when running "Context All" from emacs, the error is: ----- Running `ConTeXt' on `context-test' with ``context --once --nonstop context-test.tex'' /bin/sh: Zeile 1: context: Kommando nicht gefunden. TeX Output exited abnormally with code 127 at Mon Jun 17 14:03:03 ------ I don't think the .emacs is at fault, it worked before the reinstall and contains, for instance: (setq-default TeX-master t) (setq TeX-parse-self t) (setq TeX-auto-save t) (setq ConTeXt-Mark-version "IV") Any ideas welcome, Jürgen --- Prof. Dr. Juergen Hanneder Philipps-Universitaet Marburg FG Indologie u. Tibetologie Deutschhausstr.12 35032 Marburg Germany Tel. 0049-6421-28-24930 hanneder@staff.uni-marburg.de ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 9+ messages in thread
* [NTG-context] Re: context / auctex problem? 2024-06-17 12:15 [NTG-context] context / auctex problem? Jürgen Hanneder via ntg-context @ 2024-06-17 17:23 ` Henning Hraban Ramm 2024-06-17 17:41 ` seyal zavira 2024-06-18 5:34 ` [NTG-context] " Lizardo Reyna via ntg-context 1 sibling, 1 reply; 9+ messages in thread From: Henning Hraban Ramm @ 2024-06-17 17:23 UTC (permalink / raw) To: ntg-context Am 17.06.24 um 14:15 schrieb Jürgen Hanneder via ntg-context: > > Apologies for this question, which is probably an auctex problem. I have > a new install of everything > (LinuX, emacs, texlive) and the latest (?) context (ConTeXt ver: > 2024.05.27 18:16 LMTX) Latest ist today’s, but that’s not the problem. > installed in > a separate directory. > > Running context from the commandline works fine, so I guess I did not > misspell the path, > but when running "Context All" from emacs, the error is: > > ----- > Running `ConTeXt' on `context-test' with ``context --once --nonstop > context-test.tex'' > /bin/sh: Zeile 1: context: Kommando nicht gefunden. > > TeX Output exited abnormally with code 127 at Mon Jun 17 14:03:03 > ------ Apparently, your Emacs doesn’t use the same PATH as your terminal. The error message is from /bin/sh, I guess you usually run bash, zsh or the like, and that gets its PATH from .bashrc or something like that. Check how Emacs calls that script, and if you can define a PATH. Hraban ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 9+ messages in thread
* [NTG-context] Re: context / auctex problem? 2024-06-17 17:23 ` [NTG-context] " Henning Hraban Ramm @ 2024-06-17 17:41 ` seyal zavira 2024-06-17 17:55 ` Joaquín Ataz López 0 siblings, 1 reply; 9+ messages in thread From: seyal zavira @ 2024-06-17 17:41 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 2134 bytes --] In Emacs, I prefer use pure ConTeXt. I have attached my Emacs init file. This setup is so satisfying. You can compile your documents with just C-c c and view them with C-c v. Also, you don't need to close the PDF after every compile (Evince will restart the contents after compilation). In GNOME, you can simply switch between windows using Alt+Tab. I hope this is helpful! On Mon, Jun 17, 2024 at 1:36 PM Henning Hraban Ramm <texml@fiee.net> wrote: > Am 17.06.24 um 14:15 schrieb Jürgen Hanneder via ntg-context: > > > > Apologies for this question, which is probably an auctex problem. I have > > a new install of everything > > (LinuX, emacs, texlive) and the latest (?) context (ConTeXt ver: > > 2024.05.27 18:16 LMTX) > > Latest ist today’s, but that’s not the problem. > > > installed in > > a separate directory. > > > > Running context from the commandline works fine, so I guess I did not > > misspell the path, > > but when running "Context All" from emacs, the error is: > > > > ----- > > Running `ConTeXt' on `context-test' with ``context --once --nonstop > > context-test.tex'' > > /bin/sh: Zeile 1: context: Kommando nicht gefunden. > > > > TeX Output exited abnormally with code 127 at Mon Jun 17 14:03:03 > > ------ > > Apparently, your Emacs doesn’t use the same PATH as your terminal. > > The error message is from /bin/sh, I guess you usually run bash, zsh or > the like, and that gets its PATH from .bashrc or something like that. > > Check how Emacs calls that script, and if you can define a PATH. > > Hraban > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > ___________________________________________________________________________________ > [-- Attachment #1.2: Type: text/html, Size: 3061 bytes --] [-- Attachment #2: .emacs --] [-- Type: application/octet-stream, Size: 2022 bytes --] (use-package auctex :disabled) (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(custom-safe-themes '("603a831e0f2e466480cdc633ba37a0b1ae3c3e9a4e90183833bc4def3421a961" default)) '(package-selected-packages '(dracula-theme))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) (setq-default scroll-bar-width 7) (setq-default tab-width 4) (add-to-list 'auto-mode-alist '("\\.ctx\\'" . plain-tex-mode)) (setq compilation-ask-about-save nil) (global-set-key (kbd "C-c b") 'windmove-left) (global-set-key (kbd "C-c f") 'windmove-right) (global-set-key (kbd "C-c p") 'windmove-up) (global-set-key (kbd "C-c n") 'windmove-down) (global-set-key (kbd "C-\"") (lambda () (interactive) (insert "\""))) ;; backspace behavior (defun ryanmarcus/backward-kill-word () "Remove all whitespace if the character behind the cursor is whitespace, otherwise remove a word." (interactive) (if (looking-back "[ \n]") ;; delete horizontal space before us and then check to see if we ;; are looking at a newline (progn (delete-horizontal-space 't) (while (looking-back "[ \n]") (backward-delete-char 1))) ;; otherwise, just do the normal kill word. (backward-kill-word 1))) (defun compile-context-file () (interactive) (compile (concat "context '" (file-name-nondirectory (buffer-file-name)) "'")) ) (global-set-key (kbd "C-c c") 'compile-context-file) (defun view-context-file () (interactive) (async-shell-command (format "evince %s.pdf" (file-name-sans-extension (file-name-nondirectory (buffer-file-name))))) ) (global-set-key (kbd "C-c v") 'view-context-file) [-- Attachment #3: Type: text/plain, Size: 511 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 9+ messages in thread
* [NTG-context] Re: context / auctex problem? 2024-06-17 17:41 ` seyal zavira @ 2024-06-17 17:55 ` Joaquín Ataz López 2024-06-17 19:04 ` Peter Münster 0 siblings, 1 reply; 9+ messages in thread From: Joaquín Ataz López @ 2024-06-17 17:55 UTC (permalink / raw) To: ntg-context [-- Attachment #1.1: Type: text/plain, Size: 5032 bytes --] Thank you very much for sharing the configuration needed to compile with ConTeXt from Emacs. The standard AucTeX configuration does not allow to compile with the latest version of LMTX. And the information in AucTeX on how to change that is frankly deficient. To the point that I, who am an Emacs user for almost everything, when I write in ConTeXt I prefer to use Vim. Maybe on the Wiki, someone who knows how to configure AucTeX to work with ConTeX, could share the information. And I also think it would be a good idea to include there the definition and key bindings that Seyal Zavira has shared. El 17/6/24 a las 19:41, seyal zavira escribió: > In Emacs, I prefer use pure ConTeXt. > I have attached my Emacs init file. This setup is so satisfying. > You can compile your documents with just C-c c and view them with C-c v. > Also, you don't need to close the PDF after every compile (Evince will > restart the contents after compilation). > In GNOME, you can simply switch between windows using Alt+Tab. > I hope this is helpful! > > On Mon, Jun 17, 2024 at 1:36 PM Henning Hraban Ramm <texml@fiee.net> > wrote: > > Am 17.06.24 um 14:15 schrieb Jürgen Hanneder via ntg-context: > > > > Apologies for this question, which is probably an auctex > problem. I have > > a new install of everything > > (LinuX, emacs, texlive) and the latest (?) context (ConTeXt ver: > > 2024.05.27 18:16 LMTX) > > Latest ist today’s, but that’s not the problem. > > > installed in > > a separate directory. > > > > Running context from the commandline works fine, so I guess I > did not > > misspell the path, > > but when running "Context All" from emacs, the error is: > > > > ----- > > Running `ConTeXt' on `context-test' with ``context --once > --nonstop > > context-test.tex'' > > /bin/sh: Zeile 1: context: Kommando nicht gefunden. > > > > TeX Output exited abnormally with code 127 at Mon Jun 17 14:03:03 > > ------ > > Apparently, your Emacs doesn’t use the same PATH as your terminal. > > The error message is from /bin/sh, I guess you usually run bash, > zsh or > the like, and that gets its PATH from .bashrc or something like that. > > Check how Emacs calls that script, and if you can define a PATH. > > Hraban > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an > entry to the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > <https://urldefense.com/v3/__https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl__;!!D9dNQwwGXtA!VVy65bsBpjvgVTeW-XGw9skW3lEpoklqvIqB6SqX0RxZU_EnR0CGPTBCTO4AavTMjxoXr7RqaLIywNcD$> > webpage : https://www.pragma-ade.nl > <https://urldefense.com/v3/__https://www.pragma-ade.nl__;!!D9dNQwwGXtA!VVy65bsBpjvgVTeW-XGw9skW3lEpoklqvIqB6SqX0RxZU_EnR0CGPTBCTO4AavTMjxoXr7RqaIICi8OX$> > / https://context.aanhet.net > <https://urldefense.com/v3/__https://context.aanhet.net__;!!D9dNQwwGXtA!VVy65bsBpjvgVTeW-XGw9skW3lEpoklqvIqB6SqX0RxZU_EnR0CGPTBCTO4AavTMjxoXr7RqaD7Vsslq$> > (mirror) > archive : https://github.com/contextgarden/context > <https://urldefense.com/v3/__https://github.com/contextgarden/context__;!!D9dNQwwGXtA!VVy65bsBpjvgVTeW-XGw9skW3lEpoklqvIqB6SqX0RxZU_EnR0CGPTBCTO4AavTMjxoXr7RqaBElf__0$> > wiki : https://wiki.contextgarden.net > <https://urldefense.com/v3/__https://wiki.contextgarden.net__;!!D9dNQwwGXtA!VVy65bsBpjvgVTeW-XGw9skW3lEpoklqvIqB6SqX0RxZU_EnR0CGPTBCTO4AavTMjxoXr7RqaD0w4BJv$> > ___________________________________________________________________________________ > > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to the Wiki! > > maillist :ntg-context@ntg.nl /https://urldefense.com/v3/__https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl__;!!D9dNQwwGXtA!VVy65bsBpjvgVTeW-XGw9skW3lEpoklqvIqB6SqX0RxZU_EnR0CGPTBCTO4AavTMjxoXr7RqaLIywNcD$ > webpage :https://urldefense.com/v3/__https://www.pragma-ade.nl__;!!D9dNQwwGXtA!VVy65bsBpjvgVTeW-XGw9skW3lEpoklqvIqB6SqX0RxZU_EnR0CGPTBCTO4AavTMjxoXr7RqaIICi8OX$ /https://urldefense.com/v3/__https://context.aanhet.net__;!!D9dNQwwGXtA!VVy65bsBpjvgVTeW-XGw9skW3lEpoklqvIqB6SqX0RxZU_EnR0CGPTBCTO4AavTMjxoXr7RqaD7Vsslq$ (mirror) > archive :https://urldefense.com/v3/__https://github.com/contextgarden/context__;!!D9dNQwwGXtA!VVy65bsBpjvgVTeW-XGw9skW3lEpoklqvIqB6SqX0RxZU_EnR0CGPTBCTO4AavTMjxoXr7RqaBElf__0$ > wiki :https://urldefense.com/v3/__https://wiki.contextgarden.net__;!!D9dNQwwGXtA!VVy65bsBpjvgVTeW-XGw9skW3lEpoklqvIqB6SqX0RxZU_EnR0CGPTBCTO4AavTMjxoXr7RqaD0w4BJv$ > ___________________________________________________________________________________ -- Joaquín Ataz López Departamento de Derecho civil Universidad de Murcia [-- Attachment #1.2: Type: text/html, Size: 8019 bytes --] [-- Attachment #2: Type: text/plain, Size: 511 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 9+ messages in thread
* [NTG-context] Re: context / auctex problem? 2024-06-17 17:55 ` Joaquín Ataz López @ 2024-06-17 19:04 ` Peter Münster 0 siblings, 0 replies; 9+ messages in thread From: Peter Münster @ 2024-06-17 19:04 UTC (permalink / raw) To: ntg-context On Mon, Jun 17 2024, Joaquín Ataz López wrote: > The standard AucTeX configuration does not allow to compile with the > latest version of LMTX. Hi, What is the issue please? (I’m using the latest ConTeXt and the latest AucTeX and don’t have any problem.) TIA, -- Peter ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 9+ messages in thread
* [NTG-context] context / auctex problem? 2024-06-17 12:15 [NTG-context] context / auctex problem? Jürgen Hanneder via ntg-context 2024-06-17 17:23 ` [NTG-context] " Henning Hraban Ramm @ 2024-06-18 5:34 ` Lizardo Reyna via ntg-context 2024-06-18 9:23 ` [NTG-context] " Jürgen Hanneder via ntg-context 2024-06-18 14:12 ` [NTG-context] Re: context / auctex problem? half-solved Jürgen Hanneder via ntg-context 1 sibling, 2 replies; 9+ messages in thread From: Lizardo Reyna via ntg-context @ 2024-06-18 5:34 UTC (permalink / raw) To: ntg-context; +Cc: Lizardo Reyna [-- Attachment #1.1: Type: text/plain, Size: 861 bytes --] Hi, You can update the command for ConTeXt as follows: Graphically: M-x customize-variable *↵* TeX-command-list *↵* find the appropriate section for ConTeXt commands and change it with (e.g.) "context --purgeall %t" (see attached image). Apply and save. ----------------------------- Using the init.el you can also create your own commands: (custom-set-variables '(ConTeXt-Mark-version "lmtx") '(ConTeXt-engine "lmtx")) (eval-after-load "context" '(setq TeX-command-list (append '( ("context" "context --purgeall %t" TeX-run-command t :help "Run context (lmtx)") ("luametatex" "context --purgeall %t" TeX-run-command t :help "Run context (lmtx)") ) TeX-command-list ) ) ) I hope this helps. Lizardo R. [-- Attachment #1.2: Type: text/html, Size: 2874 bytes --] [-- Attachment #2: emacs_auctex.png --] [-- Type: image/png, Size: 57524 bytes --] [-- Attachment #3: Type: text/plain, Size: 511 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 9+ messages in thread
* [NTG-context] Re: context / auctex problem? 2024-06-18 5:34 ` [NTG-context] " Lizardo Reyna via ntg-context @ 2024-06-18 9:23 ` Jürgen Hanneder via ntg-context 2024-06-19 13:43 ` Jim 2024-06-18 14:12 ` [NTG-context] Re: context / auctex problem? half-solved Jürgen Hanneder via ntg-context 1 sibling, 1 reply; 9+ messages in thread From: Jürgen Hanneder via ntg-context @ 2024-06-18 9:23 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: hanneder 1. This sounded like a good solution: Despite the contextgarden wiki page, which says: > ;; AUCTeX defaults to mkii; change to iv for iv and lmtx > (ConTeXt-Mark-version "IV") this seemed like a good idea, > (custom-set-variables > '(ConTeXt-Mark-version "lmtx") > '(ConTeXt-engine "lmtx")) but on my system the error just changes: Running `ConTeXt Full' on `context-test' with ``texexec --engine=lmtx --nonstop context-test.tex'' /usr/bin/texexec: Zeile 2: mtxrun: Kommando nicht gefunden. auctex apparently stops using the command "context" directly, but via texexec. 2. > Apparently, your Emacs doesn’t use the same PATH as your terminal. > The error message is from /bin/sh, I guess you usually run bash, zsh > or the like, and that gets its PATH from .bashrc or something like > that. > Check how Emacs calls that script, and if you can define a PATH. I tried the method from https://www.emacswiki.org/emacs/ExecPath and set explicitly a path as (setq exec-path (append exec-path '("-Path as in Bashrc-"))) Does not work. 3. > And the information in AucTeX on how to change that is frankly deficient. Exactly. It is a little absurd that it should be so difficult to tell auctex anything. > To the point that I, who > am an Emacs user for almost everything, when I write in ConTeXt I > prefer to use Vim. I started using emacs in the nineties on a college mainframe, so I am not (yet) ready for vim:) Thanks a lot for your tips, I shall write if and when I find a solution. Jürgen --- Prof. Dr. Juergen Hanneder Philipps-Universitaet Marburg FG Indologie u. Tibetologie Deutschhausstr.12 35032 Marburg Germany Tel. 0049-6421-28-24930 hanneder@staff.uni-marburg.de ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 9+ messages in thread
* [NTG-context] Re: context / auctex problem? 2024-06-18 9:23 ` [NTG-context] " Jürgen Hanneder via ntg-context @ 2024-06-19 13:43 ` Jim 0 siblings, 0 replies; 9+ messages in thread From: Jim @ 2024-06-19 13:43 UTC (permalink / raw) To: mailing list for ConTeXt users Hi Jürgen (and other auctex users)... On Tue, Jun 18, 2024 at 11:23 (+0200), Jürgen Hanneder via ntg-context wrote: > 1. This sounded like a good solution: > Despite the contextgarden wiki page, which says: >> ;; AUCTeX defaults to mkii; change to iv for iv and lmtx >> (ConTeXt-Mark-version "IV") > this seemed like a good idea, I think the contextgarden wiki page is very out of date on that point. I was using auctex 13.x.y and updated to 14.0.4 a while back, and never had to customize (or otherwise set) any variables to use the executable "context", as opposed to the (I assume) Mk II "texexec". >> (custom-set-variables >> '(ConTeXt-Mark-version "lmtx") >> '(ConTeXt-engine "lmtx")) > but on my system the error just changes: > Running `ConTeXt Full' on `context-test' with ``texexec --engine=lmtx > --nonstop context-test.tex'' > /usr/bin/texexec: Zeile 2: mtxrun: Kommando nicht gefunden. > auctex apparently stops using the command "context" directly, but via texexec. Not on my system. Are you by any chance running an "ancient" version of auctex? > 2. >> Apparently, your Emacs doesn’t use the same PATH as your terminal. >> The error message is from /bin/sh, I guess you usually run bash, zsh or >> the like, and that gets its PATH from .bashrc or something like that. >> Check how Emacs calls that script, and if you can define a PATH. > I tried the method from https://www.emacswiki.org/emacs/ExecPath > and set explicitly a path as > (setq exec-path (append exec-path '("-Path as in Bashrc-"))) > Does not work. I've been using emacs for over thirty years, and have managed to never need to explicitly setq exec-path. How are you starting emacs? If you start it from a terminal session, it should inherit the PATH from your shell, which presumably has the directory where your context executable is found. If you are starting emacs by clicking on some window manager (or desktop environment) button / icon / widget / ... (or 'accelerator key') then evidently your window manager doesn't have the same PATH as your shell. Without knowing what window manager / desktop environment you use, and how you are starting emacs, I can't suggest a specific solution. In my opinion, the Right Thing to do is to ensure your window manager is started with the correct PATH. But depending on your system that could be easy or tricky. More pragmatically, if you created a .desktop file to run emacs, and have a line in that file like Exec=emacs you might replace it with Exec=env PATH=<your path> emacs where <your path> is what you have when you echo $PATH from a terminal session. > 3. >> And the information in AucTeX on how to change that is frankly deficient. > Exactly. It is a little absurd that it should be so difficult to tell auctex > anything. I recently filed an auctex bug report and one of the auctex developers updated the context.el file (to be put in the next release). I was told that none of the auctex developers use ConTeXt (imagine!!) and that they were happy to have some reports from ConTeXt users. But before you consider contacting them, I strongly advise you to upgrade to the newest auctex release. >> To the point that I, who >> am an Emacs user for almost everything, when I write in ConTeXt I prefer >> to use Vim. "The horror, the horror." - Marlon Brando On Tue, Jun 18, 2024 at 16:12 (+0200), Jürgen Hanneder via ntg-context wrote: > Here just an inelegant half-solution: > I added the whole program path to the 'TeX-command-list and it works, but > this is hardly satisfying. > At least it suggests that nothing else is wrong except that emacs 29.3 and > auctex 14.0.5 together decide > not to find a path, which is in .bashrc and works fine when called from a > shell (not from eshell though). Again, I suspect your window manager is not started with the complete PATH that you have set up in your shell init file(s). If you wish to dig into this further, I'd be happy to try to help you with it. Cheers Jim ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 9+ messages in thread
* [NTG-context] Re: context / auctex problem? half-solved 2024-06-18 5:34 ` [NTG-context] " Lizardo Reyna via ntg-context 2024-06-18 9:23 ` [NTG-context] " Jürgen Hanneder via ntg-context @ 2024-06-18 14:12 ` Jürgen Hanneder via ntg-context 1 sibling, 0 replies; 9+ messages in thread From: Jürgen Hanneder via ntg-context @ 2024-06-18 14:12 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: hanneder Here just an inelegant half-solution: I added the whole program path to the 'TeX-command-list and it works, but this is hardly satisfying. At least it suggests that nothing else is wrong except that emacs 29.3 and auctex 14.0.5 together decide not to find a path, which is in .bashrc and works fine when called from a shell (not from eshell though). Thanks again for the tips, Jürgen ----- Nachricht von Lizardo Reyna via ntg-context <ntg-context@ntg.nl> --------- Datum: Tue, 18 Jun 2024 00:34:32 -0500 Von: Lizardo Reyna via ntg-context <ntg-context@ntg.nl> Antwort an: mailing list for ConTeXt users <ntg-context@ntg.nl> Betreff: [NTG-context] context / auctex problem? An: ntg-context@ntg.nl Cc: Lizardo Reyna <farliz@disroot.org> > Hi, > > You can update the command for ConTeXt as follows: > > Graphically: > > M-x customize-variable *↵* > > TeX-command-list *↵* > > find the appropriate section for ConTeXt commands and change it with > (e.g.) "context --purgeall %t" (see attached image). > > Apply and save. > > ----------------------------- > > Using the init.el you can also create your own commands: > > > (custom-set-variables > '(ConTeXt-Mark-version "lmtx") > '(ConTeXt-engine "lmtx")) > > > (eval-after-load "context" > '(setq TeX-command-list > (append > '( > ("context" > "context --purgeall %t" > TeX-run-command t :help "Run context (lmtx)") > ("luametatex" > "context --purgeall %t" > TeX-run-command t :help "Run context (lmtx)") > ) TeX-command-list > ) > ) > ) > > I hope this helps. > > > Lizardo R. ----- Ende der Nachricht von Lizardo Reyna via ntg-context <ntg-context@ntg.nl> ----- --- Prof. Dr. Juergen Hanneder Philipps-Universitaet Marburg FG Indologie u. Tibetologie Deutschhausstr.12 35032 Marburg Germany Tel. 0049-6421-28-24930 hanneder@staff.uni-marburg.de ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2024-06-19 13:43 UTC | newest] Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2024-06-17 12:15 [NTG-context] context / auctex problem? Jürgen Hanneder via ntg-context 2024-06-17 17:23 ` [NTG-context] " Henning Hraban Ramm 2024-06-17 17:41 ` seyal zavira 2024-06-17 17:55 ` Joaquín Ataz López 2024-06-17 19:04 ` Peter Münster 2024-06-18 5:34 ` [NTG-context] " Lizardo Reyna via ntg-context 2024-06-18 9:23 ` [NTG-context] " Jürgen Hanneder via ntg-context 2024-06-19 13:43 ` Jim 2024-06-18 14:12 ` [NTG-context] Re: context / auctex problem? half-solved Jürgen Hanneder 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).