Bo Peng wrote: > Regarding the simple layout approach, does anyone know where the extra > newline is inserted? In the lyx file, each line is put into a separate > layout so I guess a newline is inserted between these layouts? I'm not absolutely sure where this happens. But the source of the problem, I am quite sure, is that LyX is treating the newlines as separating paragraphs, and of course it outputs \n\n between paragraphs. Look at the end of the TeXOnePar routine in output_latex.cpp. I expect that is where it happens. How to solve the problem is another issue entirely.
Richard > > > \begin_layout Listings > incSize = (10000-1000)/(500-200)/len(oldSize) > \end_layout > > \begin_layout Listings > return [oldSize[x]+incSize for x in range(0, len(oldSize))] > \end_layout > > Cheers, > Bo -- ================================================================== Richard G Heck, Jr Professor of Philosophy Brown University http://frege.brown.edu/heck/ ================================================================== Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto
