Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
LyX module for StatWeave functionality for Stata
#\DeclareLyXModule[statweave->latex,fancyvrb.sty]{Statweave}
#DescriptionBegin
#Allows to use the statistical languages as a literate programming tool via Statweave
#For more info see the LyX example file statweave.lyx.
#Base languages +Unix, DOS, Linux, IML, Shell (but only Opts & code chunk).
#DescriptionEnd
#Category: literate
#Excludes:
Format 35
OutputType literate
OutputFormat statweave
ClassOptions
Other "noae"
End
InsetLayout "Flex:global Options"
LabelString "Weave Opts"
LatexType Command
LaTexName weaveOpts
LyXType Custom
Decoration Classic
Font
Color latex
Family typewriter
EndFont
LabelFont
Color latex
Size Small
EndFont
MultiPar false
PassThru 1
ParbreakIsNewline 1
Spellcheck 0
FreeSpacing true
ForceLTR true
End
InsetLayout "Flex:Stata Code Chunk"
LabelString "Stata Code Chunk"
LatexType Environment
LaTexName Statacode
LyXType Custom
Decoration Classic
Font
Color latex
Family typewriter
EndFont
LabelFont
Color latex
Size Small
EndFont
MultiPar true
PassThru 1
ParbreakIsNewline 1
Spellcheck 0
FreeSpacing true
ForceLTR true
Align Left
Argument 1
LabelString opts
Mandatory 1
EndArgument
End
InsetLayout "Flex:Stata Expression"
LabelString "Stata Expr"
LatexType Command
LaTexName Stataexpr
LyXType Custom
Decoration Conglomerate
Font
Color latex
Family typewriter
EndFont
LabelFont
Color latex
Size Small
EndFont
MultiPar false
PassThru 1
ParbreakIsNewline 1
Spellcheck 0
FreeSpacing true
ForceLTR true
End
InsetLayout "Flex:Stata Options"
LabelString "Stata Opts"
LatexType Command
LaTexName StataweaveOpts
LyXType Custom
Decoration Classic
Font
Color latex
Family typewriter
EndFont
LabelFont
Color latex
Size Small
EndFont
MultiPar false
PassThru 1
ParbreakIsNewline 1
Spellcheck 0
FreeSpacing true
ForceLTR true
End
InsetLayout "Flex:Recall Code"
LabelString "Recall Code"
LatexType Command
LaTexName recallcode
LyXType Custom
Decoration Classic
Font
Color latex
Family typewriter
EndFont
LabelFont
Color latex
Size Small
EndFont
MultiPar false
PassThru 1
ParbreakIsNewline 1
Spellcheck 0
FreeSpacing true
ForceLTR true
End
InsetLayout "Flex:Recall Out"
LabelString "Recall Out"
LatexType Command
LaTexName recallout
LyXType Custom
Decoration Classic
Font
Color latex
Family typewriter
EndFont
LabelFont
Color latex
Size Small
EndFont
MultiPar false
PassThru 1
ParbreakIsNewline 1
Spellcheck 0
FreeSpacing true
ForceLTR true
End
InsetLayout "Flex:Recall Fig"
LabelString "Recall Fig"
LatexType Command
LaTexName recallfig
LyXType Custom
Decoration Classic
Font
Color latex
Family typewriter
EndFont
LabelFont
Color latex
Size Small
EndFont
MultiPar false
PassThru 1
ParbreakIsNewline 1
Spellcheck 0
FreeSpacing true
ForceLTR true
End
InsetLayout "Flex:Weave In"
LabelString "Weave In"
LatexType Command
LaTexName weaveIn
LyXType Custom
Decoration Classic
Font
Color latex
Family typewriter
EndFont
LabelFont
Color latex
Size Small
EndFont
MultiPar false
PassThru 1
ParbreakIsNewline 1
Spellcheck 0
FreeSpacing true
ForceLTR true
End
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment