writing tex