first implementation of latex editor