On Sun, Sep 29, 2002 at 11:45:46AM -0400, 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

I asked a similar question several days ago. The solution is:

1. insert -> float -> Algorithm
2. change style to lyx-code
3. paste external selection -> as lines.

-- 
Bo Peng

Reply via email to