X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Fsweave.module;h=9d4d10fd975465ae2a8cc78aaad1b403ee0e9311;hb=a6e20d713816670662e5780004df8e22a7144d1c;hp=305e3272888e96e1e3a165920184a787b95cb0a1;hpb=4fbe32b0fd7f661f45dfd0687a08b5055249aafe;p=lyx.git diff --git a/lib/layouts/sweave.module b/lib/layouts/sweave.module index 305e327288..9d4d10fd97 100644 --- a/lib/layouts/sweave.module +++ b/lib/layouts/sweave.module @@ -1,12 +1,20 @@ #\DeclareLyXModule[sweave->latex,fancyvrb.sty]{Sweave} +#\DeclareCategory{Literate Programming} #DescriptionBegin #Allows to use the statistical language S/R as a literate programming tool via the Sweave() function. -#For more info see the LyX example file sweave.lyx. +#For more info see Help > Specific Manuals > Sweave. #DescriptionEnd -#Category: literate #Excludes: lilypond -Format 35 +Format 103 + +Input litinsets.inc + +Counter chunk + GuiName "Knitr Chunk" + InitialValue 2 +End + OutputType literate OutputFormat sweave @@ -20,32 +28,6 @@ AddToPreamble @ EndPreamble -Style Chunk - Category Sweave - LatexType Paragraph - LatexName dummy - Margin static - Align Left - AlignPossible Block, Left, Right, Center - TopSep 0.7 - BottomSep 0.7 - NewLine 0 - FreeSpacing 1 - PassThru 1 - ParbreakIsNewline 1 - Spellcheck 0 - ## What is LabelType used for? - LabelType Static - TextFont - Color latex - Family Typewriter - EndFont -End - -Style Scrap - ObsoletedBy Chunk -End - InsetLayout "Flex:Sweave Options" LabelString "Sweave opts" LatexType Command @@ -66,6 +48,8 @@ InsetLayout "Flex:Sweave Options" Spellcheck 0 FreeSpacing true ForceLTR true + AddToToc literate + IsTocCaption 0 End InsetLayout "Flex:S/R expression" @@ -110,4 +94,6 @@ InsetLayout "Flex:Sweave Input File" Spellcheck 0 FreeSpacing true ForceLTR true + AddToToc literate + IsTocCaption 1 End