Skip to content

Instantly share code, notes, and snippets.

View bquistorff's full-sized avatar

Brian Quistorff bquistorff

View GitHub Profile
@bquistorff
bquistorff / cli_smcl_log.do
Created November 20, 2014 04:19
Translates a Stata smcl log into log format
*Callable from the command line for converting a gph to eps's in the right places
global dir_base ".."
translate "${dir_base}/log/smcl/`1'.smcl" "${dir_base}/log/`1'.log", replace linesize(140)
@bquistorff
bquistorff / Stata-syntax-highlighting-notepad++.xml
Last active March 9, 2025 07:32
Notepad++ syntax highlighting file for Stata code
<NotepadPlus>
<UserLang name="Stata" ext="do ado" udlVersion="2.1">
<Settings>
<Global caseIgnored="yes" allowFoldOfComments="no" foldCompact="no" forcePureLC="2" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="yes" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00// 00* 00/// 01 02 03/* 04*/</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
@bquistorff
bquistorff / statweave.module
Created August 16, 2015 15:51
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