add latex input support for individual areas of mathematics

along with minor changes in other files