first draft of tokenizeLaTeX