Re: Embedding highlighed external source code files in a LyX document

2007-03-30 Thread Robert Orr
Gunnar - Right on! Perfect. thank you for the help. It is really appreciated. I have wanted to have this capability for the longest time. I have used the listing package but I always felt that it was difficult. Often I needed to dig out the documentation to find out how to do this or tha

Re: Embedding highlighed external source code files in a LyX document

2007-03-30 Thread Gunnar Lindholm
Robert, You should remove the -r switch in the converter! To all that uses this. If you get into problem with undefined sequences and you see the command "\dq" in the error report. Try remove the -r switch in the converter. HTH Gunnar.

Re: Embedding highlighed external source code files in a LyX document

2007-03-30 Thread Gunnar Lindholm
> This is great, do you know how to do on Windows? > I did everything as you described (with Perl insted of C++), but if i > want to see a dvi preview i get folowing error: > LaTex Error: File './0d__daten_prog_perl_myscript.tex' not found > > ...d__daten_prog_perl_myscript.tex} >

Re: Embedding highlighed external source code files in a LyX document

2007-03-29 Thread Gunnar Lindholm
> Do both of these approaches work OK with producing sane-looking HTML as > well as PDFs? I have not experimented with HTML export with highlight, but I think it should be possible to add a converter to make highlight produce html output. > Are then any examples of output from your 'highlight' ap

Re: Embedding highlighed external source code files in a LyX document

2007-03-29 Thread John Pye
Do both of these approaches work OK with producing sane-looking HTML as well as PDFs? Are then any examples of output from your 'highlight' approach, Gunnar? Cheers JP Gunnar Lindholm wrote: >> I know that this has 'been done' but I'm not sure how to go about it >> myself. I would like to link t

Re: Embedding highlighed external source code files in a LyX document

2007-03-29 Thread Daniel Lohmann
John Pye schrieb: Hi Daniel Where and how do I get this 'listings' package? I looked on the LyX homepage and on the Wiki but couldn't find it. Well, it is not related to LyX, but a LaTeX package which you have to install for your LaTeX distribution. With MikTex on Windows this should be jus

Re: Embedding highlighed external source code files in a LyX document

2007-03-29 Thread Gunnar Lindholm
> I changed the converter so that it output to > foobar.tex. > Here is a copy of the .tex it generated. This I can > not import into LyX and make it compile with pdfLaTeX. Could you also remove the -f switch from the converters (just temporarily) and send me the code that is produced? And a lyx

Re: Embedding highlighed external source code files in a LyX document

2007-03-29 Thread Robert Orr
I changed the converter so that it output to foobar.tex. Here is a copy of the .tex it generated. This I can not import into LyX and make it compile with pdfLaTeX. --- Gunnar Lindholm <[EMAIL PROTECTED]> wrote: > > When I try to import this code below and then run > > pdfLaTeX it causes an erro

Re: Embedding highlighed external source code files in a LyX document

2007-03-29 Thread Gunnar Lindholm
> When I try to import this code below and then run > pdfLaTeX it causes an error. I had to remove the > last line to make it generate correctly. What was the error message? Make sure that all commands that it uses are available in the preamble. If you skip the -f parameter when calling highligh

Re: Embedding highlighed external source code files in a LyX document

2007-03-29 Thread Robert Orr
I tried your suggestion but it did not help. I then tried to simply import the .tex that was generated by highlight into and ERT box. I invoked the highlight program from the command line and generated the .tex and then I put it in an ERT. Then I tried to view pdfLaTeX and got the same error

Re: Embedding highlighed external source code files in a LyX document

2007-03-29 Thread Gunnar Lindholm
> I tried it but also got stopped with errors as below. > It looks like the highlighter is not running to > generate the .tex. > > ...nput{.\0C__LyXDocs_Temp_graceful_prog.tex} >} > The control sequence at the end of the top line > of your error

Re: Embedding highlighed external source code files in a LyX document

2007-03-29 Thread Robert Orr
I tried it but also got stopped with errors as below. It looks like the highlighter is not running to generate the .tex. ...nput{.\0C__LyXDocs_Temp_graceful_prog.tex} } The control sequence at the end of the top line of your error message was ne

Re: Embedding highlighed external source code files in a LyX document

2007-03-29 Thread John Pye
Hi Daniel Where and how do I get this 'listings' package? I looked on the LyX homepage and on the Wiki but couldn't find it. The 'highlight' approach from Gunnar Lindholm is quite separate though, right -- no connection at all? Cheers JP Daniel Lohmann wrote: > John Pye wrote: > >> Hi all >>

Re: Embedding highlighed external source code files in a LyX document

2007-03-29 Thread John Pye
Gunnar Lindholm wrote: >> I know that this has 'been done' but I'm not sure how to go about it >> myself. I would like to link to an external source code file and 'pull >> it in' to my compiled document when I use pdflatex. I would like to >> apply source code highlighting, although that's not esse

Re: Embedding highlighed external source code files in a LyX document

2007-03-29 Thread christian . ridderstrom
On Thu, 29 Mar 2007, Gunnar Lindholm wrote: Here is the working Wiki code if someone knows how to do it. I've modified the "error" message that shows up if you try to save changes to a page that does not have a category. Could you check out this link and tell me if you think the message is c

Re: Embedding highlighed external source code files in a LyX document

2007-03-29 Thread Abdelrazak Younes
Gunnar Lindholm wrote: Could you consider putting this in the Wiki? I answer again. Yes, I can consider it, and I've realized it's not easy enough to do it so I abandon that idea. I understand the feeling... Christian, maybe you could try to integrated one of the converter described here:

Re: Embedding highlighed external source code files in a LyX document

2007-03-29 Thread Gunnar Lindholm
> We must have a serious confusion here... Let's just ignore the past confusion and be happy that it works. Well done (both of us)! Gunnar.

Re: Embedding highlighed external source code files in a LyX document

2007-03-29 Thread christian . ridderstrom
On Thu, 29 Mar 2007, Gunnar Lindholm wrote: Could you consider putting this in the Wiki? I answer again. Yes, I can consider it, and I've realized it's not easy enough to do it so I abandon that idea. Here is the working Wiki code if someone knows how to do it. We must have a serious conf

Re: Embedding highlighed external source code files in a LyX document

2007-03-29 Thread Gunnar Lindholm
> This is great, do you know how to do on Windows? Unfortunatly not. I have not tried this on windows, yet. But the hightlight program works fine? > I did everything as you described (with Perl insted of C++), but if i > want to see a dvi preview i get folowing error: > LaTex Error: File './0d__d

Re: Embedding highlighed external source code files in a LyX document

2007-03-29 Thread Roland Schmitz
Gunnar Lindholm schrieb: > http://www.taljaren.se/MinLyXTutorial.html > (same as pdf) http://www.taljaren.se/MinLyXTutorial.pdf This is great, do you know how to do on Windows? I did everything as you described (with Perl insted of C++), but if i want to see a dvi preview i get folowing error: LaT

Re: Embedding highlighed external source code files in a LyX document

2007-03-29 Thread Gunnar Lindholm
> Could you consider putting this in the Wiki? I answer again. Yes, I can consider it, and I've realized it's not easy enough to do it so I abandon that idea. Here is the working Wiki code if someone knows how to do it. -

Re: Embedding highlighed external source code files in a LyX document

2007-03-29 Thread Gunnar Lindholm
> Could you consider putting this in the Wiki? Of course! Christian, since you seem to be the wiki-wizard, where (and how, what format) should I put it? I will most likely add more stuff to my document in the future. Gunnar. On Thursday 29 March 2007 10:39, Abdelrazak Younes wrote: > Gunnar Li

Re: Embedding highlighed external source code files in a LyX document

2007-03-29 Thread Abdelrazak Younes
Gunnar Lindholm wrote: I know that this has 'been done' but I'm not sure how to go about it myself. I would like to link to an external source code file and 'pull it in' to my compiled document when I use pdflatex. I would like to apply source code highlighting, although that's not essential (the

Re: Embedding highlighed external source code files in a LyX document

2007-03-28 Thread Gunnar Lindholm
> I know that this has 'been done' but I'm not sure how to go about it > myself. I would like to link to an external source code file and 'pull > it in' to my compiled document when I use pdflatex. I would like to > apply source code highlighting, although that's not essential (the > language I'm u

Re: Embedding highlighed external source code files in a LyX document

2007-03-28 Thread Daniel Lohmann
John Pye wrote: > Hi all > > I know that this has 'been done' but I'm not sure how to go about it > myself. I would like to link to an external source code file and 'pull > it in' to my compiled document when I use pdflatex. I would like to > apply source code highlighting, although that's not ess