2010-11-25 23:17:44 +00:00
|
|
|
#\DeclareLyXModule[sweave->latex]{Sweave}
|
2009-05-13 21:23:05 +00:00
|
|
|
#DescriptionBegin
|
2010-11-25 13:40:28 +00:00
|
|
|
#Allows to use the statistical language S/R as a literate programming tool via Sweave package.
|
2011-01-15 20:11:02 +00:00
|
|
|
#See sweave.lyx in examples.
|
2009-05-13 21:23:05 +00:00
|
|
|
#DescriptionEnd
|
2009-08-14 15:20:11 +00:00
|
|
|
#Category: literate
|
2011-03-30 00:32:11 +00:00
|
|
|
#Excludes: lilypond
|
2009-05-13 21:23:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
# To add :
|
|
|
|
# - \setkeys{Gin}{width=0.8\textwidth} How to add such a "beast"? This is used to define
|
|
|
|
# the size of produced plots.
|
|
|
|
|
2011-03-28 15:18:40 +00:00
|
|
|
Format 34
|
2010-04-01 21:34:22 +00:00
|
|
|
OutputType literate
|
2009-05-28 08:59:25 +00:00
|
|
|
OutputFormat sweave
|
2009-05-13 21:23:05 +00:00
|
|
|
|
2010-04-01 21:34:22 +00:00
|
|
|
ClassOptions
|
|
|
|
Other "noae"
|
|
|
|
End
|
|
|
|
|
2010-12-12 21:25:57 +00:00
|
|
|
Preamble
|
|
|
|
<<echo=F>>=
|
|
|
|
if(exists("ls.dir")) setwd(ls.dir)
|
|
|
|
if(exists("ls.enc")) options(encoding=ls.enc)
|
|
|
|
@
|
|
|
|
EndPreamble
|
|
|
|
|
2009-05-13 21:23:05 +00:00
|
|
|
Style Chunk
|
|
|
|
Category Sweave
|
|
|
|
LatexType Paragraph
|
|
|
|
LatexName dummy
|
|
|
|
Margin static
|
|
|
|
Align Left
|
|
|
|
AlignPossible Block, Left, Right, Center
|
|
|
|
NewLine 0
|
|
|
|
FreeSpacing 1
|
|
|
|
PassThru 1
|
2010-08-09 21:20:29 +00:00
|
|
|
ParbreakIsNewline 1
|
2011-01-25 14:17:07 +00:00
|
|
|
Spellcheck 0
|
2009-05-13 21:23:05 +00:00
|
|
|
## What is LabelType used for?
|
|
|
|
LabelType Static
|
|
|
|
TextFont
|
|
|
|
Color latex
|
|
|
|
Family Typewriter
|
|
|
|
EndFont
|
|
|
|
End
|
|
|
|
|
|
|
|
Style Scrap
|
|
|
|
ObsoletedBy Chunk
|
|
|
|
End
|
|
|
|
|
|
|
|
InsetLayout "Sweave Options"
|
|
|
|
LabelString "Sweave opts"
|
|
|
|
LatexType Command
|
|
|
|
LaTexName SweaveOpts
|
|
|
|
LyXType Custom
|
|
|
|
Decoration Classic
|
|
|
|
Font
|
|
|
|
Color latex
|
|
|
|
Family typewriter
|
|
|
|
EndFont
|
|
|
|
LabelFont
|
|
|
|
Color latex
|
|
|
|
Size Small
|
|
|
|
EndFont
|
|
|
|
MultiPar false
|
2010-11-06 15:06:19 +00:00
|
|
|
PassThru 1
|
|
|
|
ParbreakIsNewline 1
|
2011-01-25 14:17:07 +00:00
|
|
|
Spellcheck 0
|
2009-05-13 21:23:05 +00:00
|
|
|
FreeSpacing true
|
|
|
|
ForceLTR true
|
|
|
|
End
|
|
|
|
|
|
|
|
InsetLayout "S/R expression"
|
|
|
|
LabelString "S/R expr"
|
|
|
|
LatexType Command
|
|
|
|
LaTexName Sexpr
|
|
|
|
LyXType Custom
|
|
|
|
Decoration Conglomerate
|
|
|
|
Font
|
|
|
|
Color latex
|
|
|
|
Family typewriter
|
|
|
|
EndFont
|
|
|
|
LabelFont
|
|
|
|
Color latex
|
|
|
|
Size Small
|
|
|
|
EndFont
|
|
|
|
MultiPar false
|
2010-11-06 15:06:19 +00:00
|
|
|
PassThru 1
|
|
|
|
ParbreakIsNewline 1
|
2011-01-25 14:17:07 +00:00
|
|
|
Spellcheck 0
|
2009-05-13 21:23:05 +00:00
|
|
|
FreeSpacing true
|
|
|
|
ForceLTR true
|
|
|
|
End
|
|
|
|
|
|
|
|
InsetLayout "Sweave Input File"
|
|
|
|
LabelString "Sweave Input File"
|
|
|
|
LatexType Command
|
|
|
|
LaTexName SweaveInput
|
|
|
|
LyXType Custom
|
|
|
|
Decoration Classic
|
|
|
|
Font
|
|
|
|
Color latex
|
|
|
|
Family typewriter
|
|
|
|
EndFont
|
|
|
|
LabelFont
|
|
|
|
Color latex
|
|
|
|
Size Small
|
|
|
|
EndFont
|
|
|
|
MultiPar false
|
2010-11-06 15:06:19 +00:00
|
|
|
PassThru 1
|
|
|
|
ParbreakIsNewline 1
|
2011-01-25 14:17:07 +00:00
|
|
|
Spellcheck 0
|
2009-05-13 21:23:05 +00:00
|
|
|
FreeSpacing true
|
|
|
|
ForceLTR true
|
|
|
|
End
|