You can use listings package and just link your *.m files..
E-mail me if you want an example.
Remzi

On Sunday 29 September 2002 10:45, Nirmal Govind wrote:
> Hi.. I'm trying to get some matlab code into a lyx document. I copied
> and pasted the code from matlab onto emacs and then tried "insert"ing
> the file in lyx but all the formatting is gone.. i.e., the indentations
> for the if/while/for loops, the lines in between etc. are all missing. I
> get just the lines of code without any of the formatting. I tried
> copying and pasting from emacs onto Lyx but that didn't work either. Is
> there any way of getting the code into lyx while preserving the
> formatting?
>
> Thanks,
> nirmal

Reply via email to