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