Recommendation for including MATLAB-scripts
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
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. \usemodule[vim] \definevimtyping[MATLAB][syntax=matlab] \starttext \includeMATLABfile{filename.m} and \startMATLAB .... \stopMATLAB \stoptext You need both the filter module and the vim module for this to work, and also need the vim binary in your path. Aditya
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
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
participants (2)
-
Aditya Mahajan
-
Xenia