]> git.lyx.org Git - lyx.git/blob - lib/layouts/sweave.module
511c78fe5dd67512b0789cf3ef64462582d1fc73
[lyx.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 68
10
11 Input litinsets.inc
12
13 Counter chunk
14     InitialValue 2
15 End
16
17 OutputType             literate
18 OutputFormat           sweave
19
20 ClassOptions
21         Other          "noae"
22 End
23
24 AddToPreamble
25         <<echo=F>>=
26           if(exists(".orig.enc")) options(encoding = .orig.enc)
27         @
28 EndPreamble
29
30 InsetLayout "Flex:Sweave Options"
31         LabelString           "Sweave opts"
32         LatexType             Command
33         LaTexName             SweaveOpts
34         LyXType               Custom
35         Decoration            Classic
36         Font
37           Color               latex
38           Family              typewriter
39         EndFont
40         LabelFont
41           Color               latex
42           Size                Small
43         EndFont
44         MultiPar              false
45         PassThru              1
46         ParbreakIsNewline     1
47         Spellcheck            0
48         FreeSpacing           true
49         ForceLTR              true
50         AddToToc              literate
51         IsTocCaption          0
52 End
53
54 InsetLayout "Flex:S/R expression"
55         LabelString           "S/R expr"
56         LatexType             Command
57         LaTexName             Sexpr
58         LyXType               Custom
59         Decoration            Conglomerate
60         Font
61           Color               latex
62           Family              typewriter
63         EndFont
64         LabelFont
65           Color               latex
66           Size                Small
67         EndFont
68         MultiPar              false
69         PassThru              1
70         ParbreakIsNewline     1
71         Spellcheck            0
72         FreeSpacing           true
73         ForceLTR              true
74 End
75
76 InsetLayout "Flex:Sweave Input File"
77         LabelString           "Sweave Input File"
78         LatexType             Command
79         LaTexName             SweaveInput
80         LyXType               Custom
81         Decoration            Classic
82         Font
83           Color               latex
84           Family              typewriter
85         EndFont
86         LabelFont
87           Color               latex
88           Size                Small
89         EndFont
90         MultiPar              false
91         PassThru              1
92         ParbreakIsNewline     1
93         Spellcheck            0
94         FreeSpacing           true
95         ForceLTR              true
96         AddToToc              literate
97         IsTocCaption          1
98 End