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