mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
b5af05b4a7
The category tag was rarely used and thus not very useful. This adds categorization to most modules (the rest will follow) and uses the \DeclareCategory tag we use in layouts rather than the extra syntax we used in modules. Categories are now added to the po files and translated. Note that this is work in progress: the current categories are still subject to change. The ultimate goal of this is to sort the modules in the GUI by category as we do with layouts, examples and templates (and add a filter to search for specific modules) As it is now (with the many modules we accumulated), the module selector is not really usable anymore. If you don't happen to know how exactly a module is named, selecting a module is really a PITA.
66 lines
1.5 KiB
Plaintext
66 lines
1.5 KiB
Plaintext
#\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
|
|
#Excludes: lilypond | sweave
|
|
|
|
Format 72
|
|
|
|
Input litinsets.inc
|
|
|
|
Counter chunk
|
|
InitialValue 2
|
|
End
|
|
|
|
OutputType literate
|
|
OutputFormat knitr
|
|
|
|
InsetLayout "Flex:Sweave Options"
|
|
LabelString "Sweave opts"
|
|
LatexType Command
|
|
LaTexName SweaveOpts
|
|
LyXType Custom
|
|
Decoration Classic
|
|
Font
|
|
Color latex
|
|
Family typewriter
|
|
EndFont
|
|
LabelFont
|
|
Color latex
|
|
Size Small
|
|
EndFont
|
|
MultiPar false
|
|
PassThru 1
|
|
ParbreakIsNewline 1
|
|
Spellcheck 0
|
|
FreeSpacing true
|
|
ForceLTR true
|
|
AddToToc literate
|
|
IsTocCaption 1
|
|
End
|
|
|
|
InsetLayout "Flex:S/R expression"
|
|
LabelString "S/R expr"
|
|
LatexType Command
|
|
LaTexName Sexpr
|
|
LyXType Custom
|
|
Decoration Conglomerate
|
|
Font
|
|
Color latex
|
|
Family typewriter
|
|
EndFont
|
|
LabelFont
|
|
Color latex
|
|
Size Small
|
|
EndFont
|
|
MultiPar false
|
|
PassThru 1
|
|
ParbreakIsNewline 1
|
|
Spellcheck 0
|
|
FreeSpacing true
|
|
ForceLTR true
|
|
End
|
|
|