Changed quotes handling in TeX code

It seems more appropriate to handle double quotes correctly in math, and
display '' for all quotes (even in text). At some point the parsing
should be made more intelligent to handle this separately.