Feature/optional latex codegen