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. :-(

Help would very much be appreciated,

Sue Ann Koay
sueannk...@gmail.com

Reply via email to