]> git.lyx.org Git - features.git/blob - lib/layouts/sweave.module
dd0e642ef138325a52428aefa3a3f5f8e14cba0a
[features.git] / lib / layouts / sweave.module
1 #\DeclareLyXModule[sweave->latex,fancyvrb.sty]{Sweave}
2 #DescriptionBegin
3 #Allows to use the statistical language S/R as a literate programming tool via the Sweave() function.
4 #For more info see the LyX example file sweave.lyx.
5 #DescriptionEnd
6 #Category: literate
7 #Excludes: lilypond
8
9 Format 45
10 Input litinsets.inc
11 OutputType             literate
12 OutputFormat           sweave
13
14 ClassOptions
15         Other          "noae"
16 End
17
18 AddToPreamble
19         <<echo=F>>=
20           if(exists(".orig.enc")) options(encoding = .orig.enc)
21         @
22 EndPreamble
23
24 InsetLayout "Flex:Sweave Options"
25         LabelString           "Sweave opts"
26         LatexType             Command
27         LaTexName             SweaveOpts
28         LyXType               Custom
29         Decoration            Classic
30         Font
31           Color               latex
32           Family              typewriter
33         EndFont
34         LabelFont
35           Color               latex
36           Size                Small
37         EndFont
38         MultiPar              false
39         PassThru              1
40         ParbreakIsNewline     1
41         Spellcheck            0
42         FreeSpacing           true
43         ForceLTR              true
44 End
45
46 InsetLayout "Flex:S/R expression"
47         LabelString           "S/R expr"
48         LatexType             Command
49         LaTexName             Sexpr
50         LyXType               Custom
51         Decoration            Conglomerate
52         Font
53           Color               latex
54           Family              typewriter
55         EndFont
56         LabelFont
57           Color               latex
58           Size                Small
59         EndFont
60         MultiPar              false
61         PassThru              1
62         ParbreakIsNewline     1
63         Spellcheck            0
64         FreeSpacing           true
65         ForceLTR              true
66 End
67
68 InsetLayout "Flex:Sweave Input File"
69         LabelString           "Sweave Input File"
70         LatexType             Command
71         LaTexName             SweaveInput
72         LyXType               Custom
73         Decoration            Classic
74         Font
75           Color               latex
76           Family              typewriter
77         EndFont
78         LabelFont
79           Color               latex
80           Size                Small
81         EndFont
82         MultiPar              false
83         PassThru              1
84         ParbreakIsNewline     1
85         Spellcheck            0
86         FreeSpacing           true
87         ForceLTR              true
88 End