Fixes for magit, LaTeX.