First draw of Latex code generator algorithm. Pending…