]> git.lyx.org Git - lyx.git/blob - lib/layouts/sweave.module
Fix conflicting inset font defaults (bug #8874)
[lyx.git] / lib / layouts / sweave.module
1 #\DeclareLyXModule[sweave->latex,fancyvrb.sty]{Sweave}
2 #DescriptionBegin
3 #Allows to use the statistical language S/R as a literate programming tool via the Sweave() function.
4 #For more info see the LyX example file sweave.lyx.
5 #DescriptionEnd
6 #Category: literate
7 #Excludes: lilypond
8
9 Format 49
10
11 Input litinsets.inc
12
13 Counter chunk
14     InitialValue 2
15 End
16
17 OutputType             literate
18 OutputFormat           sweave
19
20 ClassOptions
21         Other          "noae"
22 End
23
24 AddToPreamble
25         <<echo=F>>=
26           if(exists(".orig.enc")) options(encoding = .orig.enc)
27         @
28 EndPreamble
29
30 InsetLayout "Flex:Sweave Options"
31         LabelString           "Sweave opts"
32         LatexType             Command
33         LaTexName             SweaveOpts
34         LyXType               Custom
35         Decoration            Classic
36         Font
37           Color               latex
38           Family              typewriter
39         EndFont
40         LabelFont
41           Color               latex
42           Size                Small
43         EndFont
44         MultiPar              false
45         PassThru              1
46         ParbreakIsNewline     1
47         Spellcheck            0
48         FreeSpacing           true
49         ForceLTR              true
50 End
51
52 InsetLayout "Flex:S/R expression"
53         LabelString           "S/R expr"
54         LatexType             Command
55         LaTexName             Sexpr
56         LyXType               Custom
57         Decoration            Conglomerate
58         Font
59           Color               latex
60           Family              typewriter
61         EndFont
62         LabelFont
63           Color               latex
64           Size                Small
65         EndFont
66         MultiPar              false
67         PassThru              1
68         ParbreakIsNewline     1
69         Spellcheck            0
70         FreeSpacing           true
71         ForceLTR              true
72 End
73
74 InsetLayout "Flex:Sweave Input File"
75         LabelString           "Sweave Input File"
76         LatexType             Command
77         LaTexName             SweaveInput
78         LyXType               Custom
79         Decoration            Classic
80         Font
81           Color               latex
82           Family              typewriter
83         EndFont
84         LabelFont
85           Color               latex
86           Size                Small
87         EndFont
88         MultiPar              false
89         PassThru              1
90         ParbreakIsNewline     1
91         Spellcheck            0
92         FreeSpacing           true
93         ForceLTR              true
94 End