Code snippets for latex