Use package listings... Here is an example file to include some Matlab code.
It works for C and many other languages.
On Friday 05 October 2001 07:04, Ben Logan wrote:
> Hi,
>
> I'm helping write a book (http://opencbp.sourceforge.net) in LyX, and
> we need to include examples of C source code.
Ben Logan wrote:
>
> I'm helping write a book (http://opencbp.sourceforge.net) in LyX, and
> we need to include examples of C source code. The way I'm doing it
> right now is to use the Include File feature and check the Verbatim
> option. This works just fine, except that I wish LyX could take
Hi,
I'm helping write a book (http://opencbp.sourceforge.net) in LyX, and
we need to include examples of C source code. The way I'm doing it
right now is to use the Include File feature and check the Verbatim
option. This works just fine, except that I wish LyX could take care
of automatically