X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Fknitr.module;h=3404810a6847e79cf28c7855d36c761d2f5d1fd9;hb=051c5f27284f00c20e95c5732bcfb04632c7cb18;hp=020397324afbe2ff71995f295efb7567a60206e2;hpb=8254e84f8f696f0372ccc77f59148888e17a85fe;p=lyx.git diff --git a/lib/layouts/knitr.module b/lib/layouts/knitr.module index 020397324a..3404810a68 100644 --- a/lib/layouts/knitr.module +++ b/lib/layouts/knitr.module @@ -1,41 +1,23 @@ #\DeclareLyXModule[knitr->latex]{Rnw (knitr)} +#\DeclareCategory{Literate Programming} #DescriptionBegin #Uses the knitr package in R for dynamic report generation. This R package has to be installed for this module to work: install.packages('knitr'). Note it depends on R >= 2.14.1. #For more info see http://yihui.name/knitr #DescriptionEnd -#Category: literate #Excludes: lilypond | sweave -Format 45 -OutputType literate -OutputFormat knitr +Format 99 -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 +Input litinsets.inc -Style Scrap - ObsoletedBy Chunk +Counter chunk + GuiName "Knitr Chunk" + InitialValue 2 End +OutputType literate +OutputFormat knitr + InsetLayout "Flex:Sweave Options" LabelString "Sweave opts" LatexType Command @@ -56,6 +38,8 @@ InsetLayout "Flex:Sweave Options" Spellcheck 0 FreeSpacing true ForceLTR true + AddToToc literate + IsTocCaption 1 End InsetLayout "Flex:S/R expression"