Re: [NTG-context] how to setup path of ConTeXtLMTX for MacVim?

2021-12-14 Thread Jan-Erik Hägglöf via ntg-context
Check if your *.tex file is recognized as a context file and not a plaintex 
file. 

I’ve struggelled a lot with macvim before I got what I want.

I recommend following places learning everything in vim and many nice plugins 
that helps a lot.

If you want I can provide my .vimrc as an inspiration and starting point. Se 
below.

https://wiki.contextgarden.net/Vim <https://wiki.contextgarden.net/Vim>

https://vim.fandom.com/wiki/Mapping_keys_in_Vim_-_Tutorial_(Part_1) 
<https://vim.fandom.com/wiki/Mapping_keys_in_Vim_-_Tutorial_(Part_1)>

https://devhints.io/vim <https://devhints.io/vim> a cheatsheet


In the MacVim application it took some time to figure out why my *.tex files 
never recognizes as context files and the hardcoded solution was to comment out 
the following in

/Applications/MacVim.app/Contents/Resources/vim/runtime/filetype.vim

" TeX
"au BufNewFile,BufRead *.latex,*.sty,*.dtx,*.ltx,*.bbl  setf tex
"au BufNewFile,BufRead *.texcall dist#ft#FTtex()

and instead adding

" ConTeXt
au BufNewFile,BufRead *.tex,*.ctx,*.mkii,*.mkiv,*.mkvi,*.mkxl,*.mklx   setf 
context

It works for Me who only using context as a typesetting engine.

Normally you do not need to do this but it seems that my own filetype.vim on 
upstart never reads.

Here is my .vimrc if you find it useful, enjoy. 

set lines=68
set columns=140
set guifont=Monaco:h16

" Install vim-plug
if empty(glob('~/.vim/autoload/plug.vim'))
  silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  "autocmd VimEnter * PlugInstall
  "autocmd VimEnter * PlugInstall | source $MYVIMRC
endif

call plug#begin()
" Better Syntax Support
Plug 'sheerun/vim-polyglot'
" File Explorer
Plug 'scrooloose/NERDTree'
" Auto pairs for '(' '[' '{'"call plug#begin('~/.config/nvim/autoload/plugged')
Plug 'jiangmiao/auto-pairs'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'SirVer/ultisnips'
Plug 'honza/vim-snippets'
Plug '907th/vim-auto-save'
call plug#end()

" Settings for Ultisnips
let g:UltiSnipsExpandTrigger=""
let g:UltiSnipsJumpForwardTrigger=""
let g:UltiSnipsJumpBackwardTrigger=""

" If you want :UltiSnipsEdit to split your window.
let g:UltiSnipsEditSplit="vertical"

" set leader key
let g:mapleader = "\"
" enable AutoSave on Vim startup
let g:auto_save = 1
set number  " Line numbers
set cmdheight=2 " More space for displaying messages
set cursorline  " Enable highlighting of the current 
line

set clipboard=unnamed

syntax enable   " Enables syntax highlighing

let g:AutoPairsShortcutFastWrap = ""


" Better nav for omnicomplete
" inoremap   ("\")
" inoremap   ("\")

" Use alt + hjkl to resize windows
nnoremap :resize -2
nnoremap :resize +2
nnoremap :vertical resize -2
nnoremap :vertical resize +2

" I hate escape more than anything else
inoremap jk 
inoremap kj 

" Easy CAPS
inoremap  viwUi
nnoremap  viwU

" TAB in general mode will move to text buffer
nnoremap  :bnext

" SHIFT-TAB will go back
nnoremap  :bprevious

" Alternate way to save
nnoremap  :w

" Alternate way to quit
nnoremap  :wq!

" Use control-c instead of escape
nnoremap  


" Better window navigation
nnoremap  h
nnoremap  j
nnoremap  k
nnoremap  l

nnoremap o o^Da
nnoremap O O^Da

nnoremap  :NERDTreeToggle $HOME

Regards

Jan-Erik


> 14 dec. 2021 kl. 15:37 skrev Jeong Dal via ntg-context :
> 
> Dear Nicola, Jan-Erik, and John,
> 
> Although you have explained about the way out of my problem, 
> I am still in the problem.
> 
> I need to learn more about vim.
> I’ll do more try following your advice and  the explanation in wiki.
> 
> Thank you again for your help.
> 
> Best regards,
> 
> Dalyoung
> 
>> 2021. 12. 14. 오전 8:56, ntg-context-requ...@ntg.nl 작성:
>> 
>> Send ntg-context mailing list submissions to
>>  ntg-context@ntg.nl
>> 
>> To subscribe or unsubscribe via the World Wide Web, visit
>>  https://mailman.ntg.nl/mailman/listinfo/ntg-context
>> or, via email, send a message with subject or body 'help' to
>>  ntg-context-requ...@ntg.nl
>> 
>> You can reach the person managing the list at
>>  ntg-context-ow...@ntg.nl
>> 
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of ntg-context digest..."
>> 
>> 
>> Today's Topics:
>> 
>>  1. Re: how to setup path of ConTeXtLMTX for MacVim?
>> (Jan-Erik Hägglöf)
>>  2. Re: circuitikz module seems broken (Hans H

Re: [NTG-context] upload

2020-11-23 Thread Otared Kavian
Hi Hans,

On MacOS X I obtain the same error when doing:
context --make --all
(or mtxrun --make --all).
The error is

csname overload > fatal error, protection level 4, control sequence 
'textcontrolspace', properties 'immutable', file 'enco-ini.mkxl', line 315


Best regards: Otared

> On 23 Nov 2020, at 19:29, Christian Prim  wrote:
> 
> Hi
> 
> on linux I get:
> csname overload > fatal error, protection level 4, control sequence 
> 'textcontrolspace', properties 'immutable', file 'enco-ini.mkxl', line 315
> 
> wiped cache; run mtxrun --generate without problems; but context --make has 
> this error.
> 
> Do I miss something?
> 
> Thanks
> Christian
> 
> Am Mo., 23. Nov. 2020 um 18:56 Uhr schrieb Hans Hagen :
> Hi,
> 
> I uploaded a next iteration of lmtx. From now on there are dedicated sub 
> directories for mklx and mpxl, which is an indication that we're on the 
> way to a full code split.
> 
> 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
> ___
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] upload

2020-11-23 Thread Christian Prim
Hi

on linux I get:
csname overload > fatal error, protection level 4, control sequence
'textcontrolspace', properties 'immutable', file 'enco-ini.mkxl', line 315

wiped cache; run mtxrun --generate without problems; but context --make has
this error.

Do I miss something?

Thanks
Christian

Am Mo., 23. Nov. 2020 um 18:56 Uhr schrieb Hans Hagen :

> Hi,
>
> I uploaded a next iteration of lmtx. From now on there are dedicated sub
> directories for mklx and mpxl, which is an indication that we're on the
> way to a full code split.
>
> 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
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] upload

2020-11-23 Thread Pablo Rodriguez
On 11/23/20 6:55 PM, Hans Hagen wrote:
> Hi,
>
> I uploaded a next iteration of lmtx. From now on there are dedicated sub
> directories for mklx and mpxl, which is an indication that we're on the
> way to a full code split.

Hi Hans,

I’m afraid that there is an error that prevents the creation of the
format file:

loading > ConTeXt Encoding Macros / Initialization

csname overload > fatal error, protection level 4, control sequence
'textcontrolspace', properties 'immutable', file 'enco-ini.mkxl', line 315

Just in case it helps,

Pablo
--
http://www.ousia.tk
___
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
___


[NTG-context] upload

2020-11-23 Thread Hans Hagen

Hi,

I uploaded a next iteration of lmtx. From now on there are dedicated sub 
directories for mklx and mpxl, which is an indication that we're on the 
way to a full code split.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Official file ending?

2020-02-05 Thread Philipp A.
Ha, I was just writing about my confusion, thank you for clearing this up.

So how about I add those four to Wikipedia and the ConTeXt wiki?

Am Mi., 5. Feb. 2020 um 10:23 Uhr schrieb Hans Hagen :

> On 2/4/2020 8:27 PM, kaddour kardio wrote:
> > Since ConTeXT is closer to plain TeX than LaTeX, it is more legitimate
> > to got the "dot tex" than latex :)
> >
> > Le mar. 4 févr. 2020 à 17:57, Pablo Rodriguez  > <mailto:oi...@gmx.es>> a écrit :
> >
> > On 2/3/20 3:28 PM, Hans Hagen wrote:
> >  > On 2/3/2020 3:07 PM, Philipp A. wrote:
> >  >> Hi!
> >  >>
> >  >> Most text editors have LaTeX specific syntax highlighting, so it
> > makes
> >  >> sense to give your ConTeXt file a ending it can be distinguished
> > with.
> >  >> Is there a blessed one?
> >  >>
> >  >>   * .ctx: Would mirror the semi-common .ltx, but is used for XML
> > files
> >  >> inside of ConTeXt itself
> >  >
> >  > context ctx files are xml files indeed
> >  >
> >  >>   * .mkiv: Is that just for ConTeXt or all LuaTeX stuff? Would
> > it make
> >  >> sense to give text documents that extension?
> >  >
> >  > you can do that (or mkvi or lmtx or ...)
> >
> > Since there are already *.mkxl files in the ConTeXt distribution, I
> > think it may make sense to name the LMTX version MkXL.
> >
> > In any case, MkXL is simpler and clearer that MkIV with LMTX.
> mkiv (four)   : files that expect mkiv (or lmtx)
> mkvi (six): mkiv (or lmtx) files that pass a filter
> mkxl (fourty) : files that expect lmtx
> mklx (sixty)  : lmtx files that pass a filter
>
> (there are some more, like template files and so)
>
> I suppose that latex syntax highlighting filters support tex and sty and
> maybe suffixes i'm noti aware of. So a context specific highlighter
> could support mkiv, mkvi, mkxk and mkvi. At least that's what I do here.
>
> 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
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Official file ending?

2020-02-05 Thread Hans Hagen

On 2/4/2020 8:27 PM, kaddour kardio wrote:
Since ConTeXT is closer to plain TeX than LaTeX, it is more legitimate 
to got the "dot tex" than latex :)


Le mar. 4 févr. 2020 à 17:57, Pablo Rodriguez <mailto:oi...@gmx.es>> a écrit :


On 2/3/20 3:28 PM, Hans Hagen wrote:
 > On 2/3/2020 3:07 PM, Philipp A. wrote:
 >> Hi!
 >>
 >> Most text editors have LaTeX specific syntax highlighting, so it
makes
 >> sense to give your ConTeXt file a ending it can be distinguished
with.
 >> Is there a blessed one?
 >>
 >>   * .ctx: Would mirror the semi-common .ltx, but is used for XML
files
 >>     inside of ConTeXt itself
 >
 > context ctx files are xml files indeed
 >
 >>   * .mkiv: Is that just for ConTeXt or all LuaTeX stuff? Would
it make
 >>     sense to give text documents that extension?
 >
 > you can do that (or mkvi or lmtx or ...)

Since there are already *.mkxl files in the ConTeXt distribution, I
think it may make sense to name the LMTX version MkXL.

In any case, MkXL is simpler and clearer that MkIV with LMTX.

mkiv (four)   : files that expect mkiv (or lmtx)
mkvi (six): mkiv (or lmtx) files that pass a filter
mkxl (fourty) : files that expect lmtx
mklx (sixty)  : lmtx files that pass a filter

(there are some more, like template files and so)

I suppose that latex syntax highlighting filters support tex and sty and 
maybe suffixes i'm noti aware of. So a context specific highlighter 
could support mkiv, mkvi, mkxk and mkvi. At least that's what I do here.


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
___