How LaTeX works