]> git.lyx.org Git - lyx.git/blob - lib/layouts/sweave.module
Fix bug #6851: Wrong screen fonts with old style macros such as \bf and \rm.
[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.
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 27
13 OutputType             literate
14 OutputFormat           sweave
15
16 ClassOptions
17         Other          "noae"
18 End
19
20 Style Chunk
21         Category              Sweave
22         LatexType             Paragraph
23         LatexName             dummy
24         Margin                static
25         ParSep                0.4
26         TopSep                0.4
27         BottomSep             0.4
28         ItemSep               0.4
29         Align                 Left
30         AlignPossible         Block, Left, Right, Center
31         NewLine               0
32         FreeSpacing           1
33         PassThru              1
34         ParbreakIsNewline     1
35         ## What is LabelType used for?
36         LabelType             Static
37         TextFont
38           Color               latex
39           Family              Typewriter
40         EndFont
41 End
42
43 Style Scrap
44         ObsoletedBy           Chunk
45 End
46
47 InsetLayout "Sweave Options"
48         LabelString           "Sweave opts"
49         LatexType             Command
50         LaTexName             SweaveOpts
51         LyXType               Custom
52         Decoration            Classic
53         Font
54           Color               latex
55           Family              typewriter
56         EndFont
57         LabelFont
58           Color               latex
59           Size                Small
60         EndFont
61         MultiPar              false
62         PassThru              true
63         FreeSpacing           true
64         ForceLTR              true
65 End
66
67 InsetLayout "S/R expression"
68         LabelString           "S/R expr"
69         LatexType             Command
70         LaTexName             Sexpr
71         LyXType               Custom
72         Decoration            Conglomerate
73         Font
74           Color               latex
75           Family              typewriter
76         EndFont
77         LabelFont
78           Color               latex
79           Size                Small
80         EndFont
81         MultiPar              false
82         PassThru              true
83         FreeSpacing           true
84         ForceLTR              true
85 End
86
87 InsetLayout "Sweave Input File"
88         LabelString           "Sweave Input File"
89         LatexType             Command
90         LaTexName             SweaveInput
91         LyXType               Custom
92         Decoration            Classic
93         Font
94           Color               latex
95           Family              typewriter
96         EndFont
97         LabelFont
98           Color               latex
99           Size                Small
100         EndFont
101         MultiPar              false
102         PassThru              true
103         FreeSpacing           true
104         ForceLTR              true
105 End