Re: How to import source codes

2006-06-06 Thread Gunnar
> I am actually inputting VB code. So I grabbed your > external template and updated it for .bas code. > > The highlight program is converting to .tex and, in > the process, inserting "\dq{}" commands here and > there. I don't know what these are, but they are not > very muched liked by .lyx.

Re: How to import source codes

2006-06-06 Thread Robert Orr
The long lines problem I mentioned was my own screwup. I was trying to cut-n-patse the .tex into an ERT box. I didn't realise I needed to use \input{file.tex} for that. Otherwise, OK, except for the aforementioned \dq command not recognized. Any ideas about it? --- Gunnar <[EMAIL PROTECTED]>

Re: How to import source codes

2006-06-06 Thread Robert Orr
I am actually inputting VB code. So I grabbed your external template and updated it for .bas code. The highlight program is converting to .tex and, in the process, inserting "\dq{}" commands here and there. I don't know what these are, but they are not very muched liked by .lyx. If I remove

Re: How to import source codes

2006-06-06 Thread Gunnar
> It is functional now. Great! > It does appear, however, that sometimes the > highlighter generates .tex with very long lines that > are not recognized upon inclusion in the .lyx file. > I can workaround for now. Exactly, what is the problem? The long lines are not truncated in LyX? Try add a

Re: How to import source codes

2006-06-06 Thread Robert Orr
Thanks Gunnar, It is functional now. It does appear, however, that sometimes the highlighter generates .tex with very long lines that are not recognized upon inclusion in the .lyx file. I can workaround for now.For the most part it is working very well. Thanks for the info. Phil --

Re: How to import source codes

2006-06-06 Thread Gunnar
> Gunar, > > Do you put anything special in the preamble? > I'm able to import the coding but unfortunately LyX > gives these errors when I attempt to view the dvi. Oh yes, sorry. I have these lines. % Highlighting theme definition: \newcommand{\hlstd}[1]{\textcolor[rgb]{0,0,0}{#1}} \newcommand{

Re: How to import source codes

2006-06-06 Thread Robert Orr
Gunar, Do you put anything special in the preamble? I'm able to import the coding but unfortunately LyX gives these errors when I attempt to view the dvi. --- Robert Orr <[EMAIL PROTECTED]> wrote: > OK - > > I'm getting a little bit closer. > > I am able to import the external mate

Re: How to import source codes

2006-06-01 Thread Robert Orr
OK - I'm getting a little bit closer. I am able to import the external material into LyX but I am not able to generate a DVI. I'm getting some errors like this ... Undefined control sequence. \hlstd{}\hlstd{\ \ \ \ }\hlstd{yMap}\hlsym {.}\hls

Re: How to import source codes

2006-06-01 Thread Gunnar
> I'm going to give this a try. > > But, where to get the highlight program? www.andre-simon.de

Re: How to import source codes

2006-06-01 Thread Robert Orr
I'm going to give this a try. But, where to get the highlight program? --- Gunnar <[EMAIL PROTECTED]> wrote: > I use a program called "highlight" to highlight the > source code, and all this > is done by adding an external template (insert -> > external template) > > In the file .lyx/exte

Re: How to import source codes

2006-05-31 Thread Gunnar
I use a program called "highlight" to highlight the source code, and all this is done by adding an external template (insert -> external template) In the file .lyx/external_templates I add Template CppKod GuiName "[C++ $$Basename]" HelpText Snyggar till C++ kod