updated for latexbox and fixed some autocompletion