Remove some whitespace from tex snippets