complete latex cheatsheet and refactor