texmath: More reliable way of ensuring final newline.
texmath: Fixed fallback in -t pandoc.
writeTeXMathIn: Use `\(...\)` for inline instead of `$`.