change LaTexSq to tag based