A few tweaks mostly for LaTeX and Markdown