Update tex.r

working on getting rid of precompiled tex things so user can just supply a minimal number of functions to start his/her tex doc.