On 06/20/2011 11:02 AM, Sue Ann Koay wrote: > I tried that already, but it doesn't seem to work in Lyx v2.0.0. > OK. I will try to have a look as, it really should work, I think. (I.e., it's a bug.)
Richard > Sue Ann Koay > sueannk...@gmail.com > > > > On Mon, Jun 20, 2011 at 4:25 PM, Richard Heck <rgh...@comcast.net> wrote: >> On 06/19/2011 09:26 AM, Sue Ann Koay wrote: >>> Hello, >>> >>> I'm trying to create a layout file with a paragraph style that outputs >>> something like: >>> >>> \mycommand{arg1}{arg2} >>> \mycommand{arg3}{arg4} >>> >>> Something like the following almost works: >>> >>> Style MyCommand >>> LatexType Command >>> LatexName mycommand >>> LabelString "Test:" >>> RequiredArgs 2 >>> End >>> >>> However it likes to separate the MyCommand lines by newlines in the >>> latex output, e.g.: >>> >>> \mycommand{arg1}{arg2} >>> >>> >>> \mycommand{arg3}{arg4} >>> >>> I'd like to be able to prevent the extra newlines in between the >>> output, because this causes undesirable separation between lines in >>> the final display. Might someone know how this can be achieved? The >>> only thing I've been able to do is to turn on the ParbreakIsNewline >>> and PassThru options, but this is a rather annoying hack because it >>> also turns off the ability to use any of the LyX formatting commands >>> when inside this style. :-( >>> >> Is it possible to use just ParBreakIsNewline, without PassThru? If not, >> then that is a bug, I think. >> >> Richard >> >>