Dear ConTeXt users, I'm wondering what kind of typesetting system / syntax highlighting / completion you're using. I've been using myself the simple_Context package for SublimeText which I scavenged a while ago before it was made unavailable (I wanted to attach but it's too big for the list). But it's sort of a dead-end. Open to anything from vim/neovim to emacs or more exotic. Maybe it would be nice to show the config. (And yes I've seen the Wiki page https://wiki.contextgarden.net/Text_Editors but I've the feeling some content is outdated.) Thanks in advance, Alex
Every user has his or her own preferred test editor. Over years I have used Emacs for just about everything except the kitchen sink, but not, as it happens, for ConTeXt. For what it's worth here is what I use: (1) TeXworks. All one has to do is indicate the correct path to ConText in the setup for this program, depending on your OS and where you have installed it, e.g. home/yourname/bin/context/tex/texmf-linux-64/bin if you are using Linux and have installed it in \bin. Then choose ConTeXt (LuaTeX) as the processing tool. (2) But to make things a lot easier, I also use Federico's text expander Espanso https://duckduckgo.com/?q=espanso+site:espanso.org&t=lm&atb=v353-1https://espanso.org https://espanso.org/. This just saves so much time, especially for so many \start...\stop sequences. For example, in espanso I might have: # blockquote - trigger: ":bq" replace: | \startblockquote $|$ \stopblockquote And this means all I have to do is type :bq and as you can sense from the example above, I have the \start and \stop and intervening space all ready to work with. Hope it helps! Julian On 26/3/23 19:22, Alexandre Christe via ntg-context wrote:
Dear ConTeXt users,
I'm wondering what kind of typesetting system / syntax highlighting / completion you're using.
I've been using myself the simple_Context package for SublimeText which I scavenged a while ago before it was made unavailable (I wanted to attach but it's too big for the list). But it's sort of a dead-end.
Open to anything from vim/neovim to emacs or more exotic. Maybe it would be nice to show the config. (And yes I've seen the Wiki page https://wiki.contextgarden.net/Text_Editorsbut I've the feeling some content is outdated.)
Thanks in advance, Alex
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist :ntg-context@ntg.nl /https://www.ntg.nl/mailman/listinfo/ntg-context webpage :https://www.pragma-ade.nl /http://context.aanhet.net archive :https://bitbucket.org/phg/context-mirror/commits/ wiki :https://contextgarden.net ___________________________________________________________________________________
Hi! Le 26/03/2023 à 10:39, jbf via ntg-context a écrit :
Every user has his or her own preferred test editor. Over years I have used Emacs for just about everything except the kitchen sink, but not, as it happens, for ConTeXt.
For what it's worth here is what I use:
(1) TeXworks. All one has to do is indicate the correct path to ConText in the setup for this program, depending on your OS and where you have installed it, e.g. home/yourname/bin/context/tex/texmf-linux-64/bin if you are using Linux and have installed it in \bin. Then choose ConTeXt (LuaTeX) as the processing tool.
(2) But to make things a lot easier, I also use Federico's text expander Espanso https://duckduckgo.com/?q=espanso+site:espanso.org&t=lm&atb=v353-1https://espanso.org https://espanso.org/. This just saves so much time, especially for so many \start...\stop sequences. For example, in espanso I might have:
You can do the same inside TeXworks. There are completion files in the folder C:\Users\yourname\AppData\Roaming\TUG\TeXworks\completion. It is not yet completed for Context, but it should not be difficult to do that. But thanks Julian, this is an interesting information Alain
Julian
On 26/3/23 19:22, Alexandre Christe via ntg-context wrote:
Dear ConTeXt users,
I'm wondering what kind of typesetting system / syntax highlighting / completion you're using.
I've been using myself the simple_Context package for SublimeText which I scavenged a while ago before it was made unavailable (I wanted to attach but it's too big for the list). But it's sort of a dead-end.
Open to anything from vim/neovim to emacs or more exotic. Maybe it would be nice to show the config. (And yes I've seen the Wiki page https://wiki.contextgarden.net/Text_Editorsbut I've the feeling some content is outdated.)
Thanks in advance, Alex
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist :ntg-context@ntg.nl /https://www.ntg.nl/mailman/listinfo/ntg-context webpage :https://www.pragma-ade.nl /http://context.aanhet.net archive :https://bitbucket.org/phg/context-mirror/commits/ wiki :https://contextgarden.net ___________________________________________________________________________________
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist :ntg-context@ntg.nl /https://www.ntg.nl/mailman/listinfo/ntg-context webpage :https://www.pragma-ade.nl /http://context.aanhet.net archive :https://bitbucket.org/phg/context-mirror/commits/ wiki :https://contextgarden.net ___________________________________________________________________________________
On 2023-03-26, Alexandre Christe via ntg-context
Dear ConTeXt users,
I'm wondering what kind of typesetting system / syntax highlighting / completion you're using. [...] Open to anything from vim/neovim to emacs or more exotic. Maybe it would be nice to show the config. (And yes I've seen the Wiki page https://wiki.contextgarden.net/Text_Editors but I've the feeling some content is outdated.)
Vim offers good support for ConTeXt and MetaPost out of the box (I maintain those filetypes). The Vim page in ConTeXt Garden is up to date, afaict, but of course it is always better to check Vim's help file for the most up-to-date information (`:help ft-context`). Syntax highlighting is based on files generated by mtxrun: the help file explains how to regenerating them if necessary, so you may stay in sync with your ConTeXt installation. Completion is kind of an orthogonal matter: there are quite a lot of plugins for Vim if the built-in methods do not satisfy you. Again, the wiki page has some suggestions (those may be a bit outdated, as new completion plugins pop up all the time). Fwiw, I use MUcomplete. Hope this helps! Nicola
Am 26.03.23 um 10:22 schrieb Alexandre Christe via ntg-context:
I'm wondering what kind of typesetting system / syntax highlighting / completion you're using.
Active development happens for Visual Studio Code; I use VSCodium besides Atom. Usable support for ConTeXt in Atom is available at https://codeberg.org/fiee/language-context It’s a bit unkempt, since I stopped working on it when Atom was discontinued. I didn’t try the fork Pulsar yet (https://pulsar-edit.dev). Atom’s git client is better than VSC’s, and I like its search bar better. Also there’s COW: https://context-on-web.eu Hraban
HI! I’ve been using emacs and played around with configuration and finally found a good and very useful setup using LMTX installation. Also I’ve customized with help from YAsnippet my own snippets så it goes very fast. Below I have a setup on my macos that uses - ConTeXt LMTX - emacs-lisp setting in ~/.emacs.d/init.el - customized setting for preview with Skim pdf reader - YASnippet snippets on my dropbox cloudstoring so I can use it on several computers and has a macro syntax easy to learn. - Bind-keys for fast build and preview on two pane "side by side editor and previewer" in "TeXshop style”. C-å Build document and C-c C-v for fast preview in Skim Something to start playing with below to put in your init.el file ;; This is for getting preferred position and size of the emacs editor frame (add-to-list 'default-frame-alist '(top . 25)) (add-to-list 'default-frame-alist '(left . 1)) (add-to-list 'default-frame-alist '(height . 56)) (add-to-list 'default-frame-alist '(width . 120)) ;; For solving path issues install: do M-x package-install RET exec-path-from-shel RETl (when (memq window-system '(mac ns x)) (exec-path-from-shell-initialize)) ;; For configuring context (add-to-list 'auto-mode-alist '("\\.tex\\'" . context-mode)) (eval-after-load 'tex '(add-to-list 'TeX-command-list '("LuaMetaTeX" "mtxrun --autogenerate --script context %t" TeX-run-command nil (context-mode) :help "Run LuaMetaTeX"))) (defun myctx () "Saves the current buffer and runs ConTeXt, all with no prompts or further interaction." (interactive) (save-buffer) (TeX-command "LuaMetaTeX" 'TeX-master-file -1)) ;; (add-hook 'ConTeXt-mode-hook 'turn-on-smartparens-strict-mode) (add-hook 'ConTeXt-mode-hook (lambda () (define-key ConTeXt-mode-map (kbd "C-å") 'myctx))) (setq TeX-output-view-style '("^pdf$" "." "open -a Skim.app %o")) (setq TeX-view-program-list '(("Skim" "open -a Skim.app %o") )) (add-hook 'ConTeXt-mode-hook (lambda () (setq TeX-view-program-selection '((output-pdf "Skim"))))) ;; YASnippet config (use-package yasnippet :config (setq yas-snippet-dirs '("~/Dropbox/filer/system/emacsgrejer/snippets")) (yas-global-mode 1) (setq yas/triggers-in-field t)) Hope this helps and gives some inspiration to get started if you choose emacs /Jan-Erik
26 mars 2023 kl. 10:22 skrev Alexandre Christe via ntg-context
: Dear ConTeXt users,
I'm wondering what kind of typesetting system / syntax highlighting / completion you're using.
I've been using myself the simple_Context package for SublimeText which I scavenged a while ago before it was made unavailable (I wanted to attach but it's too big for the list). But it's sort of a dead-end.
Open to anything from vim/neovim to emacs or more exotic. Maybe it would be nice to show the config. (And yes I've seen the Wiki page https://wiki.contextgarden.net/Text_Editors but I've the feeling some content is outdated.)
Thanks in advance, Alex ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________
participants (6)
-
Alain Delmotte
-
Alexandre Christe
-
Henning Hraban Ramm
-
Jan-Erik Hägglöf
-
jbf
-
Nicola