Re: Inserting code

2008-07-11 Thread Andre Poenitz
On Thu, Jul 10, 2008 at 03:39:54PM -0700, Ivica1009 wrote:
 In my thesis I need to use a lot of C++ code. I am developing code in
 Eclipse CDT text editor.
 If I copy my code, for example, into the OpenOffice documet, the code
 preserves its format and colors.

[I never thought of code having a color that could be preserved, but
that's probabl just me ;-)]

 If I copy the code into Lyx it does not preserve neither of those.
 
 Is there a way to copy code from other editors into Lyx in such a way that
 at least the format of the code is preserved?

There is support for code inclusion using the listings package.

Andre'


Re: Inserting code

2008-07-11 Thread Ivica1009


have you tried listings environment?
pavel

Hi Pavel and Andre.
I tried listing environment, but it does not function properly.
It does not respect the structue of the code that I paste in, neither does
it respect any of the settings that I choose after right clicking on the
listing.

I do not know if I need to install some package containing listing
plug-in.
I am using Lyx 1.5.3 on Ubuntu.

Thanks both for your help
Ivica
-- 
View this message in context: 
http://www.nabble.com/Inserting-code-tp18393441p18415503.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Inserting code

2008-07-11 Thread Andre Poenitz
On Thu, Jul 10, 2008 at 03:39:54PM -0700, Ivica1009 wrote:
 In my thesis I need to use a lot of C++ code. I am developing code in
 Eclipse CDT text editor.
 If I copy my code, for example, into the OpenOffice documet, the code
 preserves its format and colors.

[I never thought of code having a color that could be preserved, but
that's probabl just me ;-)]

 If I copy the code into Lyx it does not preserve neither of those.
 
 Is there a way to copy code from other editors into Lyx in such a way that
 at least the format of the code is preserved?

There is support for code inclusion using the listings package.

Andre'


Re: Inserting code

2008-07-11 Thread Ivica1009


have you tried listings environment?
pavel

Hi Pavel and Andre.
I tried listing environment, but it does not function properly.
It does not respect the structue of the code that I paste in, neither does
it respect any of the settings that I choose after right clicking on the
listing.

I do not know if I need to install some package containing listing
plug-in.
I am using Lyx 1.5.3 on Ubuntu.

Thanks both for your help
Ivica
-- 
View this message in context: 
http://www.nabble.com/Inserting-code-tp18393441p18415503.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Inserting code

2008-07-11 Thread Andre Poenitz
On Thu, Jul 10, 2008 at 03:39:54PM -0700, Ivica1009 wrote:
> In my thesis I need to use a lot of C++ code. I am developing code in
> Eclipse CDT text editor.
> If I copy my code, for example, into the OpenOffice documet, the code
> preserves its format and colors.

[I never thought of code having a color that could be preserved, but
that's probabl just me ;-)]

> If I copy the code into Lyx it does not preserve neither of those.
> 
> Is there a way to copy code from other editors into Lyx in such a way that
> at least the format of the code is preserved?

There is support for code inclusion using the "listings" package.

Andre'


Re: Inserting code

2008-07-11 Thread Ivica1009


have you tried listings environment?
pavel

Hi Pavel and Andre.
I tried listing environment, but it does not function properly.
It does not respect the structue of the code that I paste in, neither does
it respect any of the settings that I choose after right clicking on the
"listing".

I do not know if I need to install some package containing "listing"
plug-in.
I am using Lyx 1.5.3 on Ubuntu.

Thanks both for your help
Ivica
-- 
View this message in context: 
http://www.nabble.com/Inserting-code-tp18393441p18415503.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Inserting code

2008-07-10 Thread Ivica1009

Hi,

I am using Lyx 1.5.3 on Ubuntu Linux.

In my thesis I need to use a lot of C++ code. I am developing code in
Eclipse CDT text editor.
If I copy my code, for example, into the OpenOffice documet, the code
preserves its format and colors.
If I copy the code into Lyx it does not preserve neither of those.

Is there a way to copy code from other editors into Lyx in such a way that
at least the format of the code is preserved?

Thanks for your time.
Ivica 
-- 
View this message in context: 
http://www.nabble.com/Inserting-code-tp18393441p18393441.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Inserting code

2008-07-10 Thread Pavel Sanda
 Is there a way to copy code from other editors into Lyx in such a way that
 at least the format of the code is preserved?

have you tried listings environment?
pavel


Inserting code

2008-07-10 Thread Ivica1009

Hi,

I am using Lyx 1.5.3 on Ubuntu Linux.

In my thesis I need to use a lot of C++ code. I am developing code in
Eclipse CDT text editor.
If I copy my code, for example, into the OpenOffice documet, the code
preserves its format and colors.
If I copy the code into Lyx it does not preserve neither of those.

Is there a way to copy code from other editors into Lyx in such a way that
at least the format of the code is preserved?

Thanks for your time.
Ivica 
-- 
View this message in context: 
http://www.nabble.com/Inserting-code-tp18393441p18393441.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Inserting code

2008-07-10 Thread Pavel Sanda
 Is there a way to copy code from other editors into Lyx in such a way that
 at least the format of the code is preserved?

have you tried listings environment?
pavel


Inserting code

2008-07-10 Thread Ivica1009

Hi,

I am using Lyx 1.5.3 on Ubuntu Linux.

In my thesis I need to use a lot of C++ code. I am developing code in
Eclipse CDT text editor.
If I copy my code, for example, into the OpenOffice documet, the code
preserves its format and colors.
If I copy the code into Lyx it does not preserve neither of those.

Is there a way to copy code from other editors into Lyx in such a way that
at least the format of the code is preserved?

Thanks for your time.
Ivica 
-- 
View this message in context: 
http://www.nabble.com/Inserting-code-tp18393441p18393441.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: Inserting code

2008-07-10 Thread Pavel Sanda
> Is there a way to copy code from other editors into Lyx in such a way that
> at least the format of the code is preserved?

have you tried listings environment?
pavel