On Monday 28 July 2008 03:22, Abdelrazak Younes wrote: > Steve Litt wrote: > > Hi all, > > > > I'm not calling this a bug because maybe it was never intended to work > > this way, but if I create and use two LyX styles, Code1 and Code2, each > > of them with CopyStyle LyX-Code, then on conversion to PDF I get the > > following error message: > > Hi Steve, > > Not directly related to this bug but, FYI, you might want to try the > listings inset instead of lyxcode; you would get syntax highlightting > for free thanks to the listings LateX package if that's what you are > intented to do with your tailored lyxcode styles. > > As a side note, the lyxcode environment is a hack and a fragile one. > You'd better off using the listings inset, really. > > Abdel.
Thanks Abdel, Several months ago I made a policy decision not to use the listings inset, and I don't remember why I made that decision :-) Meanwhile, the LyX-Code environment does pretty much what I need as long as I rewrite it with the LaTeX part separate from the LyX. SteveT Steve Litt Recession Relief Package http://www.recession-relief.US
