LatexiPy is a python code to latex pseudocode converter. Paste in a valid python function in the left textbox, click convert, and receive a LaTex pseudo-code equivalent in the right textbox.
Ensure that you also paste in the following imports into latex: algorithm and algpseudocodex
There are currently no easy ways of converting code to pseudocode. The options are doing it manually or through an LLM. Both methods are not ideal. LatexiPy seeks to solve this problem.
LatexiPy employs a lexer and a parser to generate an abstract syntax tree of the python function which is then converted to latex pseudocode. The frontend framework chosen is SvelteKit due to its ease of use and high performance.
LatexiPy supports a large chunk of the python syntax. Int, float and string literals, lists, for and while loops, control flow, function calls and arithmetic expressions are all supported.
Some features that are not yet implemented include:
*=, /= and others-num, you can write -1*numAdditionally, some features are unsupported due to them having no equivalent in latex pseudocode
list.find()