lyx_mirror/lib/layouts/sweave.module
Juergen Spitzmueller b5af05b4a7 Make module categories (almost) great again
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.
2019-04-04 18:43:29 +02:00

99 lines
2.2 KiB
Plaintext

#\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.
#DescriptionEnd
#Excludes: lilypond
Format 72
Input litinsets.inc
Counter chunk
InitialValue 2
End
OutputType literate
OutputFormat sweave
ClassOptions
Other "noae"
End
AddToPreamble
<<echo=F>>=
if(exists(".orig.enc")) options(encoding = .orig.enc)
@
EndPreamble
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 0
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
InsetLayout "Flex:Sweave Input File"
LabelString "Sweave Input File"
LatexType Command
LaTexName SweaveInput
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