]> git.lyx.org Git - lyx.git/blob - lib/layouts/sweave.module
Fix several layout related problems revealed by -dbg tclass.
[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         ## What is LabelType used for?
40         LabelType             Static
41         TextFont
42           Color               latex
43           Family              Typewriter
44         EndFont
45 End
46
47 Style Scrap
48         ObsoletedBy           Chunk
49 End
50
51 InsetLayout "Sweave Options"
52         LabelString           "Sweave opts"
53         LatexType             Command
54         LaTexName             SweaveOpts
55         LyXType               Custom
56         Decoration            Classic
57         Font
58           Color               latex
59           Family              typewriter
60         EndFont
61         LabelFont
62           Color               latex
63           Size                Small
64         EndFont
65         MultiPar              false
66         PassThru              1
67         ParbreakIsNewline     1
68         FreeSpacing           true
69         ForceLTR              true
70 End
71
72 InsetLayout "S/R expression"
73         LabelString           "S/R expr"
74         LatexType             Command
75         LaTexName             Sexpr
76         LyXType               Custom
77         Decoration            Conglomerate
78         Font
79           Color               latex
80           Family              typewriter
81         EndFont
82         LabelFont
83           Color               latex
84           Size                Small
85         EndFont
86         MultiPar              false
87         PassThru              1
88         ParbreakIsNewline     1
89         FreeSpacing           true
90         ForceLTR              true
91 End
92
93 InsetLayout "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         FreeSpacing           true
111         ForceLTR              true
112 End