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: Creating a new wiki page (Was: Embedding highlighed external source code files in a LyX document)

2007-03-29 Thread christian . ridderstrom
On Thu, 29 Mar 2007, Abdelrazak Younes wrote: Hmm... not sure I understand. Do you mean you'd maintain a master document in LyX, that you then export to PmWiki after you've made changes? (If so, then any changes made to the wiki page will have been lost of course) I was thinking more abo

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: [WIN] Embedding highlighed external source code files in a LyX document

2007-03-29 Thread Gunnar Lindholm
> Yes, Windows reboot. But nothing changed. Then I give up (temporarily). Someone else that can try this?

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

2007-03-29 Thread Roland Schmitz
Gunnar Lindholm schrieb: > Just to be sure, check all the highlight commands that you entered into the > LyX preferences. > It really sounds like a problem with the temporary copies. For the converters, both plain and pdflatex, i enterd: "c:\programme\highlight\highlight.exe -A -L -t 4 -I -S pl -f

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

2007-03-29 Thread Gunnar Lindholm
> Form me the path looks strange "LaTex Error: File > './0d__daten_prog_perl_myscript.tex' not found" > First the leading dot, than "/0" ... > > But i just noticed, the file myscript.pl is not converted to > myscript.tex if i want to view a preview. When i start reading your > how-to, i converted i

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

2007-03-29 Thread Roland Schmitz
Gunnar Lindholm schrieb: > LyX version 1.4.4 ? I've only tried it with 1.4.* versions. I use 1.4.3-4 >> Noop, nothing changes. > Since it's windows, restart? ;-) Not jet, i just restarted Lyx a view times > Then I'm almost out of ideas. I really thought it could be the z1 problem. > It sounds lik

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

2007-03-29 Thread Gunnar Lindholm
LyX version 1.4.4 ? I've only tried it with 1.4.* versions. > > If it says z1 in your file, change to z0. I had similar problems until I > > changed it to z0. > > Does that help? > > Noop, nothing changes. Since it's windows, restart? ;-) Then I'm almost out of ideas. I really thought it could be

[WIN] Embedding highlighed external source code files in a LyX document

2007-03-29 Thread Roland Schmitz
I modifierd the subject, because i think tracing will be easyer. Gunnar Lindholm schrieb: > But the hightlight program works fine? Yes >> 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

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: Creating a new wiki page (Was: Embedding highlighed external source code files in a LyX document)

2007-03-29 Thread Abdelrazak Younes
[EMAIL PROTECTED] wrote: On Thu, 29 Mar 2007, Abdelrazak Younes wrote: Even though the syntax is simple, I for one hate to re-read the documentation each time I want to add something. Other format like ReSt might be of interest for python developers... Hmm... not sure I understand. Do you m

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: Creating a new wiki page (Was: Embedding highlighed external source code files in a LyX document)

2007-03-29 Thread christian . ridderstrom
On Thu, 29 Mar 2007, Abdelrazak Younes wrote: > Hum, looking at the syntax I think it should be quite easy to modify the > 'Plain Text' export of LyX so that it supports the wiki syntax. Where is this code located? Look at InsetBase::plaintext() and all its derivative. You have two option

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: Creating a new wiki page (Was: Embedding highlighed external source code files in a LyX document)

2007-03-29 Thread Abdelrazak Younes
[EMAIL PROTECTED] wrote: On Thu, 29 Mar 2007, Abdelrazak Younes wrote: [EMAIL PROTECTED] wrote: Finally, just add the text of the page. To begin with, you can just copy the text of the original web page and paste it. Then you format it appropriately. Some tips: Hum, looking at the synta

Re: Creating a new wiki page (Was: Embedding highlighed external source code files in a LyX document)

2007-03-29 Thread christian . ridderstrom
On Thu, 29 Mar 2007, Abdelrazak Younes wrote: [EMAIL PROTECTED] wrote: Finally, just add the text of the page. To begin with, you can just copy the text of the original web page and paste it. Then you format it appropriately. Some tips: Hum, looking at the syntax I think it should be quit

Re: Creating a new wiki page (Was: Embedding highlighed external source code files in a LyX document)

2007-03-29 Thread Abdelrazak Younes
[EMAIL PROTECTED] wrote: Finally, just add the text of the page. To begin with, you can just copy the text of the original web page and paste it. Then you format it appropriately. Some tips: Hum, looking at the syntax I think it should be quite easy to modify the 'Plain Text' export of LyX s

Creating a new wiki page (Was: Embedding highlighed external source code files in a LyX document)

2007-03-29 Thread christian . ridderstrom
On Thu, 29 Mar 2007, Gunnar Lindholm wrote: 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. The most difficult question regarding the wiki is where to put it... Having said that, if

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

Embedding highlighed external source code files in a LyX document

2007-03-28 Thread John Pye
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 essential (the language I'm usi