On 6/11/2010 6:41 AM, Manveru wrote:

But I looked into the latex code generated for that part of text I
wrote and mix with tables and inline listings... And what I saw
terrified me a litte. I firstly suspected  exclamation mark after
\lstinline than before.

No, the exclamation marks are fine.

Now the VERY IMPORTANT QUESTION is that: Is this a feature of LyX
doing something like this? Or a bug with hope to a quite quick repair
in one of new versions?

It looks like a bug, but not a LyX bug. If you switch the language for the tcl listings to some other language (any other language?), the document compiles. I tried Java, Ruby, csh, and make, and they all worked. The TK dialect is not the problem. It looks as if \lstline[language=tcl] causes something (I think it's the keyvalue package) to choke. Moreover, it only happens inside a table -- inline listings with language=tcl compile just fine in the body of the document.

Some blind trial and error suggests that if you surround the tcl listings with \protect{ on the left and } on the right (both in ERT), things should work. I've attached a hacked version. I don't know if this is worth raising with the package author.

/Paul

Attachment: minimal.lyx
Description: application/lyx

Reply via email to