Skip to content

Instantly share code, notes, and snippets.

@bquistorff
Created August 16, 2015 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bquistorff/abf936c014bb2611d5fc to your computer and use it in GitHub Desktop.
Save bquistorff/abf936c014bb2611d5fc to your computer and use it in GitHub Desktop.
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