Fixed a couple of bugs involving spaces in LaTeX names.