Re: Include a lot of C++ code

2006-01-23 Thread Helge Hafting
Gunnar wrote: perhaps listings.sty ? Thanks for your reply, but I feel that highlight makes it beautiful, listings doesn't. :-( You are sure listings can't do what you want? The defaults may not fit your needs, but this package is very configurable. Helge Hafting

Re: Include a lot of C++ code

2006-01-23 Thread Gunnar
It seems this could be helpful for me too. I just didn't understand so far how to do a thing of this kind. .-( So, would you mind to post this lyx-shortcut (and the latex commands) here? Thanks I post all I have done. There are still some undetected bugs, but it works on and decent *niix

Re: Include a lot of C++ code

2006-01-23 Thread Gunnar
You are sure listings can't do what you want? The defaults may not fit your needs, but this package is very configurable. If someone can make it look like the result of the highlight program, then I'm happy. The fonts, spacings are all ugly. No code in the listings documentation looks good.

Re: Include a lot of C++ code

2006-01-23 Thread Helge Hafting
Gunnar wrote: perhaps listings.sty ? Thanks for your reply, but I feel that highlight makes it beautiful, listings doesn't. :-( You are sure listings can't do what you want? The defaults may not fit your needs, but this package is very configurable. Helge Hafting

Re: Include a lot of C++ code

2006-01-23 Thread Gunnar
It seems this could be helpful for me too. I just didn't understand so far how to do a thing of this kind. .-( So, would you mind to post this lyx-shortcut (and the latex commands) here? Thanks I post all I have done. There are still some undetected bugs, but it works on and decent *niix

Re: Include a lot of C++ code

2006-01-23 Thread Gunnar
You are sure listings can't do what you want? The defaults may not fit your needs, but this package is very configurable. If someone can make it look like the result of the highlight program, then I'm happy. The fonts, spacings are all ugly. No code in the listings documentation looks good.

Re: Include a lot of C++ code

2006-01-23 Thread Helge Hafting
Gunnar wrote: perhaps listings.sty ? Thanks for your reply, but I feel that highlight makes it beautiful, listings doesn't. :-( You are sure listings can't do what you want? The defaults may not fit your needs, but this package is very configurable. Helge Hafting

Re: Include a lot of C++ code

2006-01-23 Thread Gunnar
> It seems this could be helpful for me too. I just didn't understand so > far how to do a thing of this kind. .-( > So, would you mind to post this lyx-shortcut (and the latex commands) > here? Thanks I post all I have done. There are still some undetected bugs, but it works on and decent *niix

Re: Include a lot of C++ code

2006-01-23 Thread Gunnar
> You are sure listings can't do what you want? > The defaults may not fit your needs, but this package is > very configurable. If someone can make it look like the result of the highlight program, then I'm happy. The fonts, spacings are all ugly. No code in the listings documentation looks

Re: Include a lot of C++ code

2006-01-22 Thread Gunnar
I wrote a c++ program that extracted my special c++ code environment. But I ran in to problems with the exported LaTeX file (export from LyX 1.3.6, LyX format 221). If I write int main( int a = 4, string namn = adfa öööas); I get \begin{KODcpp} int main( int a = 4, string namn = {}``adfa

Re: Include a lot of C++ code

2006-01-22 Thread Hellmut Weber
Hi Gunnar, Gunnar wrote: then i suggest you write a script to do the little bit too much work part. Then I'll do that. It's basically just a script that reads the LaTeX file until it finds the environment, and then extract the code to another file, runs highlight, and then inserts it again

Re: Include a lot of C++ code

2006-01-22 Thread Gunnar
I wrote a c++ program that extracted my special c++ code environment. But I ran in to problems with the exported LaTeX file (export from LyX 1.3.6, LyX format 221). If I write int main( int a = 4, string namn = adfa öööas); I get \begin{KODcpp} int main( int a = 4, string namn = {}``adfa

Re: Include a lot of C++ code

2006-01-22 Thread Hellmut Weber
Hi Gunnar, Gunnar wrote: then i suggest you write a script to do the little bit too much work part. Then I'll do that. It's basically just a script that reads the LaTeX file until it finds the environment, and then extract the code to another file, runs highlight, and then inserts it again

Re: Include a lot of C++ code

2006-01-22 Thread Gunnar
I wrote a c++ program that extracted my special c++ code environment. But I ran in to problems with the exported LaTeX file (export from LyX 1.3.6, LyX format 221). If I write int main( int a = 4, string namn = "adfa öööas"); I get \begin{KODcpp} int main( int a = 4, string namn = {}``adfa

Re: Include a lot of C++ code

2006-01-22 Thread Hellmut Weber
Hi Gunnar, Gunnar wrote: then i suggest you write a script to do the "little bit too much work" part. Then I'll do that. It's basically just a script that reads the LaTeX file until it finds the environment, and then extract the code to another file, runs highlight, and then inserts it

Re: Include a lot of C++ code

2006-01-20 Thread Martin A. Hansen
perhaps listings.sty ? martin On 20/01/06, Gunnar [EMAIL PROTECTED] wrote: Hi. I'm using the hightlght program to hightlight C++ code that I include in my LyX files. I have created an external template so I can include C++ files with ease. But the problem is that with small pieces of

Re: Include a lot of C++ code

2006-01-20 Thread Gunnar
then i suggest you write a script to do the little bit too much work part. Then I'll do that. It's basically just a script that reads the LaTeX file until it finds the environment, and then extract the code to another file, runs highlight, and then inserts it again into the LaTeX file.

Re: Include a lot of C++ code

2006-01-20 Thread Martin A. Hansen
perhaps listings.sty ? martin On 20/01/06, Gunnar [EMAIL PROTECTED] wrote: Hi. I'm using the hightlght program to hightlight C++ code that I include in my LyX files. I have created an external template so I can include C++ files with ease. But the problem is that with small pieces of

Re: Include a lot of C++ code

2006-01-20 Thread Gunnar
then i suggest you write a script to do the little bit too much work part. Then I'll do that. It's basically just a script that reads the LaTeX file until it finds the environment, and then extract the code to another file, runs highlight, and then inserts it again into the LaTeX file.

Re: Include a lot of C++ code

2006-01-20 Thread Martin A. Hansen
perhaps listings.sty ? martin On 20/01/06, Gunnar <[EMAIL PROTECTED]> wrote: > > Hi. > I'm using the "hightlght" program to hightlight C++ code that I include in > my > LyX files. I have created an external template so I can include C++ files > with ease. > > But the problem is that with small

Re: Include a lot of C++ code

2006-01-20 Thread Gunnar
> then i suggest you write a script to do the "little bit too much work" > part. Then I'll do that. It's basically just a script that reads the LaTeX file until it finds the environment, and then extract the code to another file, runs highlight, and then inserts it again into the LaTeX file.