Updated snippets for tex and stata