More editing. Switched to using jEdit so I can use macros. Need to add comment at top to get correct edit mode. Fixed LaTeX double quotes by using the smart-quotes option