JelteF/PyLaTeX ? reverse-engineered prompt
Reverse engineered prompt
Build me a Python library that makes it easy to create LaTeX documents and snippets from code, and can also compile them into PDFs when a LaTeX toolchain is installed.
I want it to feel simple for basic use, but still flexible enough for more advanced LaTeX features, so someone can build documents like reports, papers, and formatted snippets without writing raw LaTeX everywhere. Please include clear examples, working tests, and documentation that shows the main things people would want to do, like adding sections, tables, figures, math, and custom commands.
If you need to check current library or LaTeX behavior while implementing, look up the latest docs online. Keep the project clean, packaged properly, and ready to install with pip.
Are you gonna build this?
make sure you review the code using coderabbit