]> git.lyx.org Git - lyx.git/blob - lib/layouts/sweave.module
8bd9fd31352c7b54b2ab73b143a00d462c1dc3db
[lyx.git] / lib / layouts / sweave.module
1 #\DeclareLyXModule[sweave->latex]{Sweave - S/R literate programming}
2 #DescriptionBegin
3 #Allows to use the statistical language S/R as a literate programming tool - Sweave.
4 #DescriptionEnd
5
6 # Within the chunk, lines are separated by newlines (Ctrl-Return)!
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 11
13 OutputType              literate
14 OutputFormat           sweave
15
16 Style Chunk
17         Category              Sweave
18         LatexType             Paragraph
19         LatexName             dummy
20         Margin                static
21         ParSep                0.4
22         TopSep                0.4
23         BottomSep             0.4
24         ItemSep               0.4
25         Align                 Left
26         AlignPossible         Block, Left, Right, Center
27         NewLine               0
28         FreeSpacing           1
29         PassThru              1
30         ## What is LabelType used for?
31         LabelType             Static
32         TextFont
33           Color               latex
34           Family              Typewriter
35         EndFont
36 End
37
38 Style Scrap
39         ObsoletedBy           Chunk
40 End
41
42 InsetLayout "Sweave Options"
43         LabelString           "Sweave opts"
44         LatexType             Command
45         LaTexName             SweaveOpts
46         LyXType               Custom
47         Decoration            Classic
48         Font
49           Color               latex
50           Family              typewriter
51         EndFont
52         LabelFont
53           Color               latex
54           Size                Small
55         EndFont
56         MultiPar              false
57         PassThru              true
58         FreeSpacing           true
59         ForceLTR              true
60 End
61
62 InsetLayout "S/R expression"
63         LabelString           "S/R expr"
64         LatexType             Command
65         LaTexName             Sexpr
66         LyXType               Custom
67         Decoration            Conglomerate
68         Font
69           Color               latex
70           Family              typewriter
71         EndFont
72         LabelFont
73           Color               latex
74           Size                Small
75         EndFont
76         MultiPar              false
77         PassThru              true
78         FreeSpacing           true
79         ForceLTR              true
80 End
81
82 InsetLayout "Sweave Input File"
83         LabelString           "Sweave Input File"
84         LatexType             Command
85         LaTexName             SweaveInput
86         LyXType               Custom
87         Decoration            Classic
88         Font
89           Color               latex
90           Family              typewriter
91         EndFont
92         LabelFont
93           Color               latex
94           Size                Small
95         EndFont
96         MultiPar              false
97         PassThru              true
98         FreeSpacing           true
99         ForceLTR              true
100 End