LaTeX writer: Use `\hspace*` for nonbreaking space after line break.

Since `~` spaces after a line break are just ignored.
Closes #687.