A comprehensive Cursor AI rule set for automated LaTeX document generation and mathematical problem solving.
This repository contains Cursor AI rules that enable automated generation of complete, compilable LaTeX documents from mathematical questions. The agent acts as a professional PhD-level math tutor with automated pipeline capabilities.
- Question Analysis: Automatically detects math question types (calculus, statistics, algebra, etc.)
- LaTeX Generation: Creates complete LaTeX documents with proper teaching format
- File Organization: Generates timestamped folders and organizes files automatically
- PDF Compilation: Compiles LaTeX to PDF using latexmk
- Error Handling: Robust compilation with proper error detection
- Calculus (derivatives, integrals, limits, series)
- Statistics (probability, distributions, hypothesis testing)
- Algebra (equations, functions, polynomials)
- Geometry (proofs, theorems, constructions)
- Linear Algebra (matrices, vectors, transformations)
- Differential Equations (ODEs, PDEs, boundary conditions)
- Actuarial Math (insurance, mortality, life tables, annuities)
- Financial Math (present value, future value, bonds, yields)
- Economics (market analysis, demand/supply, elasticity)
- Copy the
latex-pipeline-agent.mdcfile to your Cursor rules directory - Ask Cursor AI any mathematical question
- The agent will automatically generate a complete LaTeX document with step-by-step solutions
- Files are organized in timestamped folders and compiled to PDF
The generated LaTeX documents follow a structured format with:
- Problem statement
- Assumptions
- Reasoning
- Thinking guide
- Step-by-step solution
- Sanity checks
- Final boxed result
- LaTeX distribution (TeX Live, MiKTeX, etc.)
- latexmk for compilation
- Cursor AI editor
This project is open source and available under the MIT License.