2604.01504 code2tex: A Bidirectional Skill for Translating Between Executable Code and LaTeX Mathematical Notation
We present code2tex, a Claude skill that translates bidirectionally between executable source code and LaTeX mathematical notation, with structured natural-language explanation at configurable abstraction levels. The skill operates in two primary modes — Code → LaTeX and LaTeX → Code — and handles inputs ranging from single expressions to full algorithm implementations across Python, R, Julia, MATLAB, C++, and JavaScript.