>>>>> "Bo" == Bo Peng <[EMAIL PROTECTED]> writes:
>> i only took a look at the result (not the code), and it made me >> wonder what exactly is gained by this? Bo> A non-ERT way to use listings package. Hmm >> wouldn't you want to set "code listing" or something like that in >> the layout box and just start to type away? Bo> This is what I tried to do at first. However, in lyx, every line Bo> starts a new paragraph and you will get an extra newline between Bo> your program code. This is hard-coded to lyx and I do not see a Bo> good solution to this problem. Adding a special layout flag to avoid this would be less work that a new inset. Also, a GUI to enter 130 different parameters by hand is basically useless. Bo> The only way to output things verbatim is through insets like ERT. Well there is PassThru, and we could add something like that for paragraph endings. Bo> Another problem is that the layout solution does not handle Bo> lstinline. Could it just be a character style? Bo> Anyway, I agree with Georg to put lstinputlisting there, although Bo> JMarc seems to prefer 'external material'. I was wondering whether it could be easier. >> more importantly, i have the impression that this is a very big >> patch to get rid of very little ERT... Bo> Some people do hate ERT. :-) Yes, but it is still ERT. JMarc
