From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: vim syntax highlighting in MKIV
Date: Sat, 4 Sep 2010 19:15:09 +0200 [thread overview]
Message-ID: <24874AF3-12FC-464E-991C-AD4A74819C33@gmail.com> (raw)
In-Reply-To: <AANLkTinZZSq+xzZOsvTYH+8hFa83dy-pyVOmq1_Xb8N_@mail.gmail.com>
Am 04.09.2010 um 18:10 schrieb Chen Shen:
> Hi Aditya,
>
> Thanks for the great module!
>
> There is a problem using t-vim/t-filter with the current and beta versions of ConTeXt.
> I was trying the Matlab example (tests/vim/matlab.tex), ConTeXt complains that \startMATLAB is not defined,
> but the execution can continue, and the correct pdf is produced.
>
> ! Undefined control sequence.
>
> system > error on line 7 in file test.tex: Undefined control sequence ...
>
> 1 \setupcolors[state=start]
> 2 \usemodule [vim]
> 3
> 4 \definevimtyping [MATLAB] [syntax=matlab]
> 5
> 6 \starttext
> 7 >> \startMATLAB
> 8 function russell_demo()
> 9 % Do the example in ch 17 (p501) of Russell and Norvig
> 10 % (1,1) is top left corner.
> 11 r = 3; c = 4; p = 0.8; action_cost = -1/25;
> 12 obstacle = zeros(r,c); obstacle(2,2)=1;
> 13 terminal = zeros(r,c); terminal(1,4)=1; terminal(2,4)=1;
> 14 absorb = 1;
> 15 wrap_around = 0;
> 16 noop = 0;
> 17 T = mk_grid_world(r, c, p, obstacle, terminal, absorb, wrap_around, noop);
>
> <argument> \v!unknwon
context’s error message is misleading, the problem appears with the \startMATLAB
command but the undefined control sequence is “\v!unknwon” as shown below the message,
it’s only a typo in the module and the correct value is “\v!unknown”.
Wolfgang
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2010-09-04 17:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-25 19:48 Martin 'golodhrim' Scholz
2010-06-25 21:24 ` Hans Hagen
2010-06-27 2:38 ` Aditya Mahajan
2010-06-27 5:41 ` Aditya Mahajan
2010-06-27 10:04 ` Martin 'golodhrim' Scholz
2010-06-27 11:36 ` Peter Münster
2010-06-27 15:49 ` Aditya Mahajan
2010-06-27 18:16 ` Martin 'golodhrim' Scholz
2010-09-04 16:10 ` Chen Shen
2010-09-04 17:15 ` Wolfgang Schuster [this message]
2010-09-06 21:56 ` Aditya Mahajan
2010-06-27 12:02 ` Wolfgang Schuster
2010-06-27 15:47 ` Aditya Mahajan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=24874AF3-12FC-464E-991C-AD4A74819C33@gmail.com \
--to=schuster.wolfgang@googlemail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).