Added function to warn the user if Latex is not installed correctly and he intends to use it via preferences menu.