Added menu item "File>Use LaTeXMode" and implemented supporting code