Le 25/11/2012 17:35, Jürgen Spitzmüller a écrit :
With most recent trunk you can try the following

InsetLayout "Flex:Sweave Chunk"
         LabelString           "Sweave Chunk"
         LatexType             none
         LyXType               Custom
         Decoration            Minimalistic
         MultiPar              true
         ParbreakIsNewline     1
         Spellcheck            0
         FreeSpacing           true
         ForceLTR              true
         Argument 1
                 Mandatory       1
                 LabelString     "Chunk Options"
                 Tooltip         "Chunk Options"
                 LeftDelim       <<
                 RightDelim      >>=
         EndArgument
End

Will there be a carriage return after the >>= ?

Actually I am not sure that catering for sweave weird syntax is the best thing to do. Another possibility is to use the LaTeX-like syntax with an Scode environment. The only weird thing about it is that it uses an optional argument with {} delimiters :-|

JMarc


Reply via email to