update tex/code