Writing snippets for LaTeX


I tried writing a snippet for LaTeX and I got a basic working example. However, I want to be able to include text like \usepackage{...} but I’ve found that if the snippet contains the characters \u anywhere in it then it throws an error. Anybody know how to get around this?


See this comment regarding snippets for LaTeX on the snippets package: