Assorted utilities for working with LaTeX