]> git.lyx.org Git - lyx.git/blob - lib/layouts/sweave.module
sweave.module: more precise description text
[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 35
10 OutputType             literate
11 OutputFormat           sweave
12
13 ClassOptions
14         Other          "noae"
15 End
16
17 AddToPreamble
18         <<echo=F>>=
19           if(exists(".orig.enc")) options(encoding = .orig.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         TopSep                0.7
31         BottomSep             0.7
32         NewLine               0
33         FreeSpacing           1
34         PassThru              1
35         ParbreakIsNewline     1
36         Spellcheck            0
37         ## What is LabelType used for?
38         LabelType             Static
39         TextFont
40           Color               latex
41           Family              Typewriter
42         EndFont
43 End
44
45 Style Scrap
46         ObsoletedBy           Chunk
47 End
48
49 InsetLayout "Flex:Sweave Options"
50         LabelString           "Sweave opts"
51         LatexType             Command
52         LaTexName             SweaveOpts
53         LyXType               Custom
54         Decoration            Classic
55         Font
56           Color               latex
57           Family              typewriter
58         EndFont
59         LabelFont
60           Color               latex
61           Size                Small
62         EndFont
63         MultiPar              false
64         PassThru              1
65         ParbreakIsNewline     1
66         Spellcheck            0
67         FreeSpacing           true
68         ForceLTR              true
69 End
70
71 InsetLayout "Flex:S/R expression"
72         LabelString           "S/R expr"
73         LatexType             Command
74         LaTexName             Sexpr
75         LyXType               Custom
76         Decoration            Conglomerate
77         Font
78           Color               latex
79           Family              typewriter
80         EndFont
81         LabelFont
82           Color               latex
83           Size                Small
84         EndFont
85         MultiPar              false
86         PassThru              1
87         ParbreakIsNewline     1
88         Spellcheck            0
89         FreeSpacing           true
90         ForceLTR              true
91 End
92
93 InsetLayout "Flex:Sweave Input File"
94         LabelString           "Sweave Input File"
95         LatexType             Command
96         LaTexName             SweaveInput
97         LyXType               Custom
98         Decoration            Classic
99         Font
100           Color               latex
101           Family              typewriter
102         EndFont
103         LabelFont
104           Color               latex
105           Size                Small
106         EndFont
107         MultiPar              false
108         PassThru              1
109         ParbreakIsNewline     1
110         Spellcheck            0
111         FreeSpacing           true
112         ForceLTR              true
113 End