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