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