Re: [NTG-context] Recommendation for including MATLAB-scripts

2012-04-22 Thread Xenia
On 19.04.2012 21:11, Aditya Mahajan wrote:
 On Thu, 19 Apr 2012, Xenia wrote:
 
 Dear context-folks,

 I have to write some short protocols including some matlab-code. Do you
 have a recommendation for an easy way to include '.m'-files and diaries
 as code?
 
 I'd recommend to use the vim module, which uses vim to generate syntax
 highlighted source code.

[...]

 You need both the filter module and the vim module for this to work, and
 also need the vim binary in your path.

Thank you.
I get the following error message:

! Undefined control sequence.

system   tex  error on line 5 in file 2.tex: Undefined control
sequence ...

All files are attached. I use the current version: 2012.04.19 23:18.
What is the problem here?

Thanks,

Xenia
\usemodule[vim]
\definevimtyping[MATLAB][syntax=matlab]

\starttext
\includeMATLABfile{aufg1.m}

\stoptext 
% runtime options files (command line driven)
\unprotect
% feedback and basic job control
% handy for special styles
\startluacode
document = document or { }
document.arguments={
}
document.files={
 2,
}
\stopluacode
% process info
\setupsystem[inputfile=2]
\setupsystem[\c!n=1,\c!m=1]
% modes
% options (not that important)
\startsetups *runtime:options
\stopsetups
% styles and modules
\startsetups *runtime:modules
\stopsetups
% done
\protect \endinput
___
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
___

Re: [NTG-context] Recommendation for including MATLAB-scripts

2012-04-22 Thread Aditya Mahajan

On Sun, 22 Apr 2012, Xenia wrote:


On 19.04.2012 21:11, Aditya Mahajan wrote:

On Thu, 19 Apr 2012, Xenia wrote:


Dear context-folks,

I have to write some short protocols including some matlab-code. Do you
have a recommendation for an easy way to include '.m'-files and diaries
as code?


I'd recommend to use the vim module, which uses vim to generate syntax
highlighted source code.


[...]


You need both the filter module and the vim module for this to work, and
also need the vim binary in your path.


Thank you.
I get the following error message:

! Undefined control sequence.

system   tex  error on line 5 in file 2.tex: Undefined control
sequence ...


Sorry, that should be \typeMATLABfile{...}

See the vim module documentation for details: 
https://github.com/adityam/filter/blob/master/vim-README.md




All files are attached. I use the current version: 2012.04.19 23:18.
What is the problem here?


The log file was empty.

Aditya
___
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
___


[NTG-context] Recommendation for including MATLAB-scripts

2012-04-19 Thread Xenia
Dear context-folks,

I have to write some short protocols including some matlab-code. Do you
have a recommendation for an easy way to include '.m'-files and diaries
as code?

Thanks,

Xenia
___
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
___