add auto install dos mode
change defualt code ,latex mode