update latex config and ecb

1. fix change LaTeX-command to 'latex -synctex=1'
2. autocomplete for latex
3. minor things for ecb
4. clean code