]> git.lyx.org Git - lyx.git/blob - lib/layouts/sweave.module
5318500b1d25b084ce5c6e38cc9adb58d3dfcc80
[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 Sweave package.
4 #See sweave.lyx in examples.
5 #DescriptionEnd
6 #Category: literate
7 #Excludes: lilypond
8
9 Format 35
10 OutputType             literate
11 OutputFormat           sweave
12
13 ClassOptions
14         Other          "noae"
15 End
16
17 AddToPreamble
18         <<echo=F>>=
19           if(exists("ls.enc")) options(encoding=ls.enc)
20         @
21 EndPreamble
22
23 Style Chunk
24         Category              Sweave
25         LatexType             Paragraph
26         LatexName             dummy
27         Margin                static
28         Align                 Left
29         AlignPossible         Block, Left, Right, Center
30         NewLine               0
31         FreeSpacing           1
32         PassThru              1
33         ParbreakIsNewline     1
34         Spellcheck            0
35         ## What is LabelType used for?
36         LabelType             Static
37         TextFont
38           Color               latex
39           Family              Typewriter
40         EndFont
41 End
42
43 Style Scrap
44         ObsoletedBy           Chunk
45 End
46
47 InsetLayout "Flex:Sweave Options"
48         LabelString           "Sweave opts"
49         LatexType             Command
50         LaTexName             SweaveOpts
51         LyXType               Custom
52         Decoration            Classic
53         Font
54           Color               latex
55           Family              typewriter
56         EndFont
57         LabelFont
58           Color               latex
59           Size                Small
60         EndFont
61         MultiPar              false
62         PassThru              1
63         ParbreakIsNewline     1
64         Spellcheck            0
65         FreeSpacing           true
66         ForceLTR              true
67 End
68
69 InsetLayout "Flex:S/R expression"
70         LabelString           "S/R expr"
71         LatexType             Command
72         LaTexName             Sexpr
73         LyXType               Custom
74         Decoration            Conglomerate
75         Font
76           Color               latex
77           Family              typewriter
78         EndFont
79         LabelFont
80           Color               latex
81           Size                Small
82         EndFont
83         MultiPar              false
84         PassThru              1
85         ParbreakIsNewline     1
86         Spellcheck            0
87         FreeSpacing           true
88         ForceLTR              true
89 End
90
91 InsetLayout "Flex:Sweave Input File"
92         LabelString           "Sweave Input File"
93         LatexType             Command
94         LaTexName             SweaveInput
95         LyXType               Custom
96         Decoration            Classic
97         Font
98           Color               latex
99           Family              typewriter
100         EndFont
101         LabelFont
102           Color               latex
103           Size                Small
104         EndFont
105         MultiPar              false
106         PassThru              1
107         ParbreakIsNewline     1
108         Spellcheck            0
109         FreeSpacing           true
110         ForceLTR              true
111 End