ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Setting up macvim in mac os catalina to work with LMTX
@ 2020-04-21 20:51 Jan-Erik Hägglöf
  2020-04-22 14:49 ` Nicola
  0 siblings, 1 reply; 9+ messages in thread
From: Jan-Erik Hägglöf @ 2020-04-21 20:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 961 bytes --]

Hi !

I am curious about testing macvim and it seems doing fine in edit mode. But how do i set up the typesetting engine?

As far as I understand, there is, the command :ConteXt with guidance from the wiki https://wiki.contextgarden.net/Vim <https://wiki.contextgarden.net/Vim>

But I do not understand how to customize it to be directed to the path to my engine

I’ve installed the LMTX in /Users/janneman/context-osx-64/



The installation works fine in TeXshop but still an error shows up in macvim and the message dissappears very quick so there is not much time to read the cause of error.

I have created the subdirectory .vim/ftplugin/ and put the context.vim file there
also the corresponding in .vim/compiler/context.vim 

which is copied from the program located in /usr/local/Cellar/macvim/8.2-163/MacVim.app/Contents/Resources/vim/runtime

So, how do I get this up and running?

Thanks in advance

Regards

/Janne




[-- Attachment #1.2: Type: text/html, Size: 2714 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] 9+ messages in thread

* Re: Setting up macvim in mac os catalina to work with LMTX
  2020-04-21 20:51 Setting up macvim in mac os catalina to work with LMTX Jan-Erik Hägglöf
@ 2020-04-22 14:49 ` Nicola
  2020-04-22 15:22   ` janerik.hagglof
  2020-04-22 19:48   ` Jan-Erik Hägglöf
  0 siblings, 2 replies; 9+ messages in thread
From: Nicola @ 2020-04-22 14:49 UTC (permalink / raw)
  To: ntg-context

On 2020-04-21, Jan-Erik Hägglöf <janerik.hagglof@bahnhof.se> wrote:
> Hi !
>
> I am curious about testing macvim and it seems doing fine in edit
> mode. But how do i set up the typesetting engine?
>
> As far as I understand, there is, the command :ConteXt with guidance
> from the wiki https://wiki.contextgarden.net/Vim
> <https://wiki.contextgarden.net/Vim>
>
> But I do not understand how to customize it to be directed to the path
> to my engine
>
> I’ve installed the LMTX in /Users/janneman/context-osx-64/

I haven't tried LMTX yet, but you may configure the path to the ConTeXt
executable you want to use by setting `g:context_mtxrun`, e.g.:

    :let g:context_mtxrun='/path/to/context/mtxrun'

Then, executing :ConTeXt will run the configured command. You may also
define shell enviroment variables, if needed. For instance, I have
configured Vim to use my installation of ConTeXt Beta as follows:

   :let g:context_mtxrun='PATH=$HOME/path/to/context-beta/tex/texmf-osx-64/bin:$PATH mtxrun'

> The installation works fine in TeXshop but still an error shows up in
> macvim and the message dissappears very quick so there is not much
> time to read the cause of error.

You may show a log of Vim messages by typing :messages.
If you post the error message, I may better diagnose your issue.

> I have created the subdirectory .vim/ftplugin/ and put the context.vim file there
> also the corresponding in .vim/compiler/context.vim
>
> which is copied from the program located in
> /usr/local/Cellar/macvim/8.2-163/MacVim.app/Contents/Resources/vim/runtime

That's unnecessary. MacVim's runtime path is searched by default.
I recommend that you remove the files that you have copied into ~/.vim.
ConTeXt in Vim works out of the box.

Nicola


___________________________________________________________________________________
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] 9+ messages in thread

* Re: Setting up macvim in mac os catalina to work with LMTX
  2020-04-22 14:49 ` Nicola
@ 2020-04-22 15:22   ` janerik.hagglof
  2020-04-22 16:47     ` Jan-Erik Hägglöf
  2020-04-22 16:55     ` Jan-Erik Hägglöf
  2020-04-22 19:48   ` Jan-Erik Hägglöf
  1 sibling, 2 replies; 9+ messages in thread
From: janerik.hagglof @ 2020-04-22 15:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2544 bytes --]

In what file do I put the path setting and which location?Thanks and regardsMed Vänlig Hälsning Jan-Erik Hägglöf
-------- Originalmeddelande --------Från: Nicola <nvitacolonna@gmail.com> Datum: 2020-04-22  16:51  (GMT+01:00) Till: ntg-context@ntg.nl Ämne: Re: [NTG-context] Setting up macvim in mac os catalina to work with
  LMTX On 2020-04-21, Jan-Erik Hägglöf <janerik.hagglof@bahnhof.se> wrote:> Hi !>> I am curious about testing macvim and it seems doing fine in edit> mode. But how do i set up the typesetting engine?>> As far as I understand, there is, the command :ConteXt with guidance> from the wiki https://wiki.contextgarden.net/Vim> <https://wiki.contextgarden.net/Vim>>> But I do not understand how to customize it to be directed to the path> to my engine>> I’ve installed the LMTX in /Users/janneman/context-osx-64/I haven't tried LMTX yet, but you may configure the path to the ConTeXtexecutable you want to use by setting `g:context_mtxrun`, e.g.:    :let g:context_mtxrun='/path/to/context/mtxrun'Then, executing :ConTeXt will run the configured command. You may alsodefine shell enviroment variables, if needed. For instance, I haveconfigured Vim to use my installation of ConTeXt Beta as follows:   :let g:context_mtxrun='PATH=$HOME/path/to/context-beta/tex/texmf-osx-64/bin:$PATH mtxrun'> The installation works fine in TeXshop but still an error shows up in> macvim and the message dissappears very quick so there is not much> time to read the cause of error.You may show a log of Vim messages by typing :messages.If you post the error message, I may better diagnose your issue.> I have created the subdirectory .vim/ftplugin/ and put the context.vim file there> also the corresponding in .vim/compiler/context.vim>> which is copied from the program located in> /usr/local/Cellar/macvim/8.2-163/MacVim.app/Contents/Resources/vim/runtimeThat's unnecessary. MacVim's runtime path is searched by default.I recommend that you remove the files that you have copied into ~/.vim.ConTeXt in Vim works out of the box.Nicola___________________________________________________________________________________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-contextwebpage  : http://www.pragma-ade.nl / http://context.aanhet.netarchive  : https://bitbucket.org/phg/context-mirror/commits/wiki     : http://contextgarden.net___________________________________________________________________________________

[-- Attachment #1.2: Type: text/html, Size: 3542 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] 9+ messages in thread

* Re: Setting up macvim in mac os catalina to work with LMTX
  2020-04-22 15:22   ` janerik.hagglof
@ 2020-04-22 16:47     ` Jan-Erik Hägglöf
  2020-04-22 16:55     ` Jan-Erik Hägglöf
  1 sibling, 0 replies; 9+ messages in thread
From: Jan-Erik Hägglöf @ 2020-04-22 16:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 4954 bytes --]

Here is my log

Last login: Wed Apr 22 18:37:07 on console

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
Jan-Eriks-Air:~ janneman$ nvim

resolvers       | resolving | using suffix based filetype 'scripts'
resolvers       | resolving | remembering file 'mtx-contexts.lua' using hash 'lu
a::mtx-contexts.lua'
resolvers       | resolving | remembered file 'mtx-context.lua'
resolvers       | resolving | using suffix based filetype 'scripts'
resolvers       | resolving | remembering file 'mtx-t-context.lua' using hash 'l
ua::mtx-t-context.lua'
resolvers       | resolving | using suffix based filetype 'scripts'
resolvers       | resolving | remembering file 'mtx-t-contexts.lua' using hash '
lua::mtx-t-contexts.lua'
resolvers       | resolving | remembered file 'mtx-t-context.lua'
resolvers       | resolving | using suffix based filetype 'scripts'
resolvers       | resolving | remembering file 'context.lua' using hash 'lua::co
ntext.lua'
mtxrun          | unknown script 'context.lua' or 'mtx-context.lua'
skal returnerade 1
I’m using neovim here and the same error appeared but now it was more informative

Here is my .vimrc

let g:context_mtxrun = 'PATH=$HOME/context-osx-64/tex/texmf-osx-64/bin:$PATH mtxrun'
let g:context_extra_options = '--autogenerate --script context --directives="system.showerror" --autopdf —purgeall'

But it seems to have no effect

> 22 apr. 2020 kl. 17:22 skrev janerik.hagglof <janerik.hagglof@bahnhof.se>:
> 
> In what file do I put the path setting and which location?
> 
> Thanks and regards
> 
> 
> 
> 
> 
> Med Vänlig Hälsning 
> 
> Jan-Erik Hägglöf
> 
> 
> -------- Originalmeddelande --------
> Från: Nicola <nvitacolonna@gmail.com>
> Datum: 2020-04-22 16:51 (GMT+01:00)
> Till: ntg-context@ntg.nl
> Ämne: Re: [NTG-context] Setting up macvim in mac os catalina to work with   LMTX
> 
> On 2020-04-21, Jan-Erik Hägglöf <janerik.hagglof@bahnhof.se> wrote:
> > Hi !
> >
> > I am curious about testing macvim and it seems doing fine in edit
> > mode. But how do i set up the typesetting engine?
> >
> > As far as I understand, there is, the command :ConteXt with guidance
> > from the wiki https://wiki.contextgarden.net/Vim
> > <https://wiki.contextgarden.net/Vim>
> >
> > But I do not understand how to customize it to be directed to the path
> > to my engine
> >
> > I’ve installed the LMTX in /Users/janneman/context-osx-64/
> 
> I haven't tried LMTX yet, but you may configure the path to the ConTeXt
> executable you want to use by setting `g:context_mtxrun`, e.g.:
> 
>     :let g:context_mtxrun='/path/to/context/mtxrun'
> 
> Then, executing :ConTeXt will run the configured command. You may also
> define shell enviroment variables, if needed. For instance, I have
> configured Vim to use my installation of ConTeXt Beta as follows:
> 
>    :let g:context_mtxrun='PATH=$HOME/path/to/context-beta/tex/texmf-osx-64/bin:$PATH mtxrun'
> 
> > The installation works fine in TeXshop but still an error shows up in
> > macvim and the message dissappears very quick so there is not much
> > time to read the cause of error.
> 
> You may show a log of Vim messages by typing :messages.
> If you post the error message, I may better diagnose your issue.
> 
> > I have created the subdirectory .vim/ftplugin/ and put the context.vim file there
> > also the corresponding in .vim/compiler/context.vim
> >
> > which is copied from the program located in
> > /usr/local/Cellar/macvim/8.2-163/MacVim.app/Contents/Resources/vim/runtime
> 
> That's unnecessary. MacVim's runtime path is searched by default.
> I recommend that you remove the files that you have copied into ~/.vim.
> ConTeXt in Vim works out of the box.
> 
> Nicola
> 
> 
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 14886 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] 9+ messages in thread

* Re: Setting up macvim in mac os catalina to work with LMTX
  2020-04-22 15:22   ` janerik.hagglof
  2020-04-22 16:47     ` Jan-Erik Hägglöf
@ 2020-04-22 16:55     ` Jan-Erik Hägglöf
  2020-04-22 17:40       ` BPJ
  2020-04-23 14:46       ` Nicola
  1 sibling, 2 replies; 9+ messages in thread
From: Jan-Erik Hägglöf @ 2020-04-22 16:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 3812 bytes --]

Output from :messages

                                                                                
[ConTeXt] Typesetting...                                              
Fel upptäcktes vid bearbetning av function context#typeset[6]..<SNR>39_typeset[2
]..context#callback[1]..<SNR>39_callback:
rad   17:
E40: Kan inte öppna felfil /Users/janneman/Documents/CTX/GNUPLOT/test3.log

> 22 apr. 2020 kl. 17:22 skrev janerik.hagglof <janerik.hagglof@bahnhof.se>:
> 
> In what file do I put the path setting and which location?
> 
> Thanks and regards
> 
> 
> 
> 
> 
> Med Vänlig Hälsning 
> 
> Jan-Erik Hägglöf
> 
> 
> -------- Originalmeddelande --------
> Från: Nicola <nvitacolonna@gmail.com>
> Datum: 2020-04-22 16:51 (GMT+01:00)
> Till: ntg-context@ntg.nl
> Ämne: Re: [NTG-context] Setting up macvim in mac os catalina to work with   LMTX
> 
> On 2020-04-21, Jan-Erik Hägglöf <janerik.hagglof@bahnhof.se> wrote:
> > Hi !
> >
> > I am curious about testing macvim and it seems doing fine in edit
> > mode. But how do i set up the typesetting engine?
> >
> > As far as I understand, there is, the command :ConteXt with guidance
> > from the wiki https://wiki.contextgarden.net/Vim
> > <https://wiki.contextgarden.net/Vim>
> >
> > But I do not understand how to customize it to be directed to the path
> > to my engine
> >
> > I’ve installed the LMTX in /Users/janneman/context-osx-64/
> 
> I haven't tried LMTX yet, but you may configure the path to the ConTeXt
> executable you want to use by setting `g:context_mtxrun`, e.g.:
> 
>     :let g:context_mtxrun='/path/to/context/mtxrun'
> 
> Then, executing :ConTeXt will run the configured command. You may also
> define shell enviroment variables, if needed. For instance, I have
> configured Vim to use my installation of ConTeXt Beta as follows:
> 
>    :let g:context_mtxrun='PATH=$HOME/path/to/context-beta/tex/texmf-osx-64/bin:$PATH mtxrun'
> 
> > The installation works fine in TeXshop but still an error shows up in
> > macvim and the message dissappears very quick so there is not much
> > time to read the cause of error.
> 
> You may show a log of Vim messages by typing :messages.
> If you post the error message, I may better diagnose your issue.
> 
> > I have created the subdirectory .vim/ftplugin/ and put the context.vim file there
> > also the corresponding in .vim/compiler/context.vim
> >
> > which is copied from the program located in
> > /usr/local/Cellar/macvim/8.2-163/MacVim.app/Contents/Resources/vim/runtime
> 
> That's unnecessary. MacVim's runtime path is searched by default.
> I recommend that you remove the files that you have copied into ~/.vim.
> ConTeXt in Vim works out of the box.
> 
> Nicola
> 
> 
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 8591 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] 9+ messages in thread

* Re: Setting up macvim in mac os catalina to work with LMTX
  2020-04-22 16:55     ` Jan-Erik Hägglöf
@ 2020-04-22 17:40       ` BPJ
  2020-04-23 14:46       ` Nicola
  1 sibling, 0 replies; 9+ messages in thread
From: BPJ @ 2020-04-22 17:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 5233 bytes --]

You may want to put this in your .vimrc so that you get
error messages in English.
Personally I hate it when partly localized programs give me a
mixture of Swedish and English! :-)

(You may of course want to just include "messages" and
leave out "language".)

    " force English menus & messages
    if has('multi_lang')
      if has('unix') " Unix, Linux, Mac OS X etc.
        language messages C
      else " Windows
        language messages en
      endif
    endif

Secondly you may want to do this to get the messages history as
editable text:

    :redir > messages.txt
    :messages
    :redir END
    :e messages.txt

You can replace the first line with

    :redir @+>

to get the text in the system clipboard instead of in a
file.

Hoppas detta är till nån hjälp!
(Hope this helps!)

/Benct



--
Better --help|less than helpless

Den ons 22 apr. 2020 18:59Jan-Erik Hägglöf <janerik.hagglof@bahnhof.se>
skrev:

> Output from :messages
>
>
>
> *[ConTeXt] Typesetting...*
> Fel upptäcktes vid bearbetning av function
> context#typeset[6]..<SNR>39_typeset[2
> ]..context#callback[1]..<SNR>39_callback:
> rad   17:
> E40: Kan inte öppna felfil /Users/janneman/Documents/CTX/GNUPLOT/test3.log
>
> 22 apr. 2020 kl. 17:22 skrev janerik.hagglof <janerik.hagglof@bahnhof.se>:
>
> In what file do I put the path setting and which location?
>
> Thanks and regards
>
>
>
>
>
> Med Vänlig Hälsning
>
> Jan-Erik Hägglöf
>
>
> -------- Originalmeddelande --------
> Från: Nicola <nvitacolonna@gmail.com>
> Datum: 2020-04-22 16:51 (GMT+01:00)
> Till: ntg-context@ntg.nl
> Ämne: Re: [NTG-context] Setting up macvim in mac os catalina to work with
>   LMTX
>
> On 2020-04-21, Jan-Erik Hägglöf <janerik.hagglof@bahnhof.se> wrote:
> > Hi !
> >
> > I am curious about testing macvim and it seems doing fine in edit
> > mode. But how do i set up the typesetting engine?
> >
> > As far as I understand, there is, the command :ConteXt with guidance
> > from the wiki https://wiki.contextgarden.net/Vim
> > <https://wiki.contextgarden.net/Vim>
> >
> > But I do not understand how to customize it to be directed to the path
> > to my engine
> >
> > I’ve installed the LMTX in /Users/janneman/context-osx-64/
>
> I haven't tried LMTX yet, but you may configure the path to the ConTeXt
> executable you want to use by setting `g:context_mtxrun`, e.g.:
>
>     :let g:context_mtxrun='/path/to/context/mtxrun'
>
> Then, executing :ConTeXt will run the configured command. You may also
> define shell enviroment variables, if needed. For instance, I have
> configured Vim to use my installation of ConTeXt Beta as follows:
>
>    :let
> g:context_mtxrun='PATH=$HOME/path/to/context-beta/tex/texmf-osx-64/bin:$PATH
> mtxrun'
>
> > The installation works fine in TeXshop but still an error shows up in
> > macvim and the message dissappears very quick so there is not much
> > time to read the cause of error.
>
> You may show a log of Vim messages by typing :messages.
> If you post the error message, I may better diagnose your issue.
>
> > I have created the subdirectory .vim/ftplugin/ and put the context.vim
> file there
> > also the corresponding in .vim/compiler/context.vim
> >
> > which is copied from the program located in
> >
> /usr/local/Cellar/macvim/8.2-163/MacVim.app/Contents/Resources/vim/runtime
>
> That's unnecessary. MacVim's runtime path is searched by default.
> I recommend that you remove the files that you have copied into ~/.vim.
> ConTeXt in Vim works out of the box.
>
> Nicola
>
>
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>
>
>
> ___________________________________________________________________________________
> 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: 10518 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] 9+ messages in thread

* Re: Setting up macvim in mac os catalina to work with LMTX
  2020-04-22 14:49 ` Nicola
  2020-04-22 15:22   ` janerik.hagglof
@ 2020-04-22 19:48   ` Jan-Erik Hägglöf
  2020-04-23  5:19     ` janerik.hagglof
  1 sibling, 1 reply; 9+ messages in thread
From: Jan-Erik Hägglöf @ 2020-04-22 19:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2914 bytes --]

I managed to typeset with success by typing in

:let g:context_mtxrun = 'PATH=$HOME/context-osx-64/tex/texmf-osx-64/bin:$PATH mtxrun’
:ConTeXt

When I put this into my .vimrc file nothing is working, do not even find the context commands, so I removed the .vimrc and then it worked again.

So the question is where do I put this line permanent because it is strange to type this every time I want to typeset something.

Regards

Janne

> 22 apr. 2020 kl. 16:49 skrev Nicola <nvitacolonna@gmail.com>:
> 
> On 2020-04-21, Jan-Erik Hägglöf <janerik.hagglof@bahnhof.se> wrote:
>> Hi !
>> 
>> I am curious about testing macvim and it seems doing fine in edit
>> mode. But how do i set up the typesetting engine?
>> 
>> As far as I understand, there is, the command :ConteXt with guidance
>> from the wiki https://wiki.contextgarden.net/Vim
>> <https://wiki.contextgarden.net/Vim>
>> 
>> But I do not understand how to customize it to be directed to the path
>> to my engine
>> 
>> I’ve installed the LMTX in /Users/janneman/context-osx-64/
> 
> I haven't tried LMTX yet, but you may configure the path to the ConTeXt
> executable you want to use by setting `g:context_mtxrun`, e.g.:
> 
>    :let g:context_mtxrun='/path/to/context/mtxrun'
> 
> Then, executing :ConTeXt will run the configured command. You may also
> define shell enviroment variables, if needed. For instance, I have
> configured Vim to use my installation of ConTeXt Beta as follows:
> 
>   :let g:context_mtxrun='PATH=$HOME/path/to/context-beta/tex/texmf-osx-64/bin:$PATH mtxrun'
> 
>> The installation works fine in TeXshop but still an error shows up in
>> macvim and the message dissappears very quick so there is not much
>> time to read the cause of error.
> 
> You may show a log of Vim messages by typing :messages.
> If you post the error message, I may better diagnose your issue.
> 
>> I have created the subdirectory .vim/ftplugin/ and put the context.vim file there
>> also the corresponding in .vim/compiler/context.vim
>> 
>> which is copied from the program located in
>> /usr/local/Cellar/macvim/8.2-163/MacVim.app/Contents/Resources/vim/runtime
> 
> That's unnecessary. MacVim's runtime path is searched by default.
> I recommend that you remove the files that you have copied into ~/.vim.
> ConTeXt in Vim works out of the box.
> 
> Nicola
> 
> 
> ___________________________________________________________________________________
> 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: 5688 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] 9+ messages in thread

* Re: Setting up macvim in mac os catalina to work with LMTX
  2020-04-22 19:48   ` Jan-Erik Hägglöf
@ 2020-04-23  5:19     ` janerik.hagglof
  0 siblings, 0 replies; 9+ messages in thread
From: janerik.hagglof @ 2020-04-23  5:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 3285 bytes --]

I think I managed to get the work done by putting the settings in ~.vim/after/ftplugin/context.vimSo The problem is solved, thanks to your answers.The rest of the problem seems not to be related to this list, such as how do I use .vimrc in the correct way so to keep default global settings and just tweaking them locally.Med Vänlig Hälsning Jan-Erik Hägglöf
-------- Originalmeddelande --------Från: Jan-Erik Hägglöf <janerik.hagglof@bahnhof.se> Datum: 2020-04-22  21:50  (GMT+01:00) Till: mailing list for ConTeXt users <ntg-context@ntg.nl> Ämne: Re: [NTG-context] Setting up macvim in mac os catalina to work with LMTX I managed to typeset with success by typing in:let g:context_mtxrun = 'PATH=$HOME/context-osx-64/tex/texmf-osx-64/bin:$PATH mtxrun’:ConTeXtWhen I put this into my .vimrc file nothing is working, do not even find the context commands, so I removed the .vimrc and then it worked again.So the question is where do I put this line permanent because it is strange to type this every time I want to typeset something.RegardsJanne22 apr. 2020 kl. 16:49 skrev Nicola <nvitacolonna@gmail.com>:On 2020-04-21, Jan-Erik Hägglöf <janerik.hagglof@bahnhof.se> wrote:Hi !I am curious about testing macvim and it seems doing fine in editmode. But how do i set up the typesetting engine?As far as I understand, there is, the command :ConteXt with guidancefrom the wiki https://wiki.contextgarden.net/Vim<https://wiki.contextgarden.net/Vim>But I do not understand how to customize it to be directed to the pathto my engineI’ve installed the LMTX in /Users/janneman/context-osx-64/I haven't tried LMTX yet, but you may configure the path to the ConTeXtexecutable you want to use by setting `g:context_mtxrun`, e.g.:    :let g:context_mtxrun='/path/to/context/mtxrun'Then, executing :ConTeXt will run the configured command. You may alsodefine shell enviroment variables, if needed. For instance, I haveconfigured Vim to use my installation of ConTeXt Beta as follows:   :let g:context_mtxrun='PATH=$HOME/path/to/context-beta/tex/texmf-osx-64/bin:$PATH mtxrun'The installation works fine in TeXshop but still an error shows up inmacvim and the message dissappears very quick so there is not muchtime to read the cause of error.You may show a log of Vim messages by typing :messages.If you post the error message, I may better diagnose your issue.I have created the subdirectory .vim/ftplugin/ and put the context.vim file therealso the corresponding in .vim/compiler/context.vimwhich is copied from the program located in/usr/local/Cellar/macvim/8.2-163/MacVim.app/Contents/Resources/vim/runtimeThat's unnecessary. MacVim's runtime path is searched by default.I recommend that you remove the files that you have copied into ~/.vim.ConTeXt in Vim works out of the box.Nicola___________________________________________________________________________________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-contextwebpage  : http://www.pragma-ade.nl / http://context.aanhet.netarchive  : https://bitbucket.org/phg/context-mirror/commits/wiki     : http://contextgarden.net___________________________________________________________________________________

[-- Attachment #1.2: Type: text/html, Size: 6803 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] 9+ messages in thread

* Re: Setting up macvim in mac os catalina to work with LMTX
  2020-04-22 16:55     ` Jan-Erik Hägglöf
  2020-04-22 17:40       ` BPJ
@ 2020-04-23 14:46       ` Nicola
  1 sibling, 0 replies; 9+ messages in thread
From: Nicola @ 2020-04-23 14:46 UTC (permalink / raw)
  To: ntg-context

On 2020-04-22, Jan-Erik Hägglöf <janerik.hagglof@bahnhof.se> wrote:
> Output from :messages
>
>                                                                                 
> [ConTeXt] Typesetting...                                              
> Fel upptäcktes vid bearbetning av function context#typeset[6]..<SNR>39_typeset[2
> ]..context#callback[1]..<SNR>39_callback:
> rad   17:
> E40: Kan inte öppna felfil /Users/janneman/Documents/CTX/GNUPLOT/test3.log

FYI, that error means that test3.log was not found - I guess, as that's
not a language I understand :-) - which likely means that your command
somehow failed without producing a log file (e.g., because the command
name was misspelled).

You seem to have fixed your issue, but, should you bump into further
issues, first make sure that your ConTeXt installation works properly
from the command line. Also, keep in mind that your shell environment
may be different from the environment in which ConTeXt is executed
inside Vim, so you may need to explicitly set some environment variables
(e.g., inside g:context_mtxrun) to make things sail smoothly.

Global variables (whose names start with `g:`) may be set in your vimrc,
which is typically located at $HOME/.vim/vimrc (note that the filename
does *not* start with a dot, only the directory's name does).

Good ConTeXt typesetting in Vim!
Nicola


___________________________________________________________________________________
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] 9+ messages in thread

end of thread, other threads:[~2020-04-23 14:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-21 20:51 Setting up macvim in mac os catalina to work with LMTX Jan-Erik Hägglöf
2020-04-22 14:49 ` Nicola
2020-04-22 15:22   ` janerik.hagglof
2020-04-22 16:47     ` Jan-Erik Hägglöf
2020-04-22 16:55     ` Jan-Erik Hägglöf
2020-04-22 17:40       ` BPJ
2020-04-23 14:46       ` Nicola
2020-04-22 19:48   ` Jan-Erik Hägglöf
2020-04-23  5:19     ` janerik.hagglof

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).