{"id":13642445,"url":"https://github.com/augustt198/latex2sympy","last_synced_at":"2025-04-20T16:32:24.443Z","repository":{"id":63274892,"uuid":"49375023","full_name":"augustt198/latex2sympy","owner":"augustt198","description":"Parse LaTeX math expressions","archived":true,"fork":false,"pushed_at":"2019-07-11T11:55:57.000Z","size":48,"stargazers_count":389,"open_issues_count":31,"forks_count":163,"subscribers_count":24,"default_branch":"master","last_synced_at":"2024-11-09T13:38:56.114Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/augustt198.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-10T16:30:08.000Z","updated_at":"2024-11-07T06:52:18.000Z","dependencies_parsed_at":"2022-11-16T05:46:47.487Z","dependency_job_id":null,"html_url":"https://github.com/augustt198/latex2sympy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/augustt198%2Flatex2sympy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/augustt198%2Flatex2sympy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/augustt198%2Flatex2sympy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/augustt198%2Flatex2sympy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/augustt198","download_url":"https://codeload.github.com/augustt198/latex2sympy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249926401,"owners_count":21346547,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T01:01:31.494Z","updated_at":"2025-04-20T16:32:24.224Z","avatar_url":"https://github.com/augustt198.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# latex2sympy\n\nlatex2sympy parses LaTeX math expressions and converts it into the\nequivalent SymPy form.\n\n## Installation\n\n[ANTLR](http://www.antlr.org/) is used to generate the parser:\n\n```\n$ antlr4 PS.g4 -o gen\n```\n\n## Usage\n\nIn Python 2.7:\n\n```python\nfrom process_latex import process_sympy\n\nprocess_sympy(\"\\\\frac{d}{dx} x^{2}\")\n# =\u003e \"diff(x**(2), x)\"\n```\n\n## Examples\n\n|LaTeX|Image|Generated SymPy|\n|-----|-----|---------------|\n|`x^{3}`|![](https://latex.codecogs.com/gif.latex?%5CLARGE%20x%5E%7B3%7D)| `x**3`|\n|`\\frac{d}{dx} |t|x`|![](https://latex.codecogs.com/gif.latex?%5CLARGE%20%5Cfrac%7Bd%7D%7Bdx%7D%20%7Ct%7Cx)|`Derivative(x*Abs(t), x)`|\n|`\\sum_{i = 1}^{n} i`|![](https://latex.codecogs.com/gif.latex?%5CLARGE%20%5Csum_%7Bi%20%3D%201%7D%5E%7Bn%7D%20i)|`Sum(i, (i, 1, n))`|\n|`\\int_{a}^{b} \\frac{dt}{t}`|![](https://latex.codecogs.com/gif.latex?%5CLARGE%20%5Cint_%7Ba%7D%5E%7Bb%7D%20%5Cfrac%7Bdt%7D%7Bt%7D)|`Integral(1/t, (t, a, b))`|\n|`(2x^3 - x + z)|_{x=3}`|![](https://latex.codecogs.com/gif.latex?%5CLARGE%20%282x%5E3%20-%20x%20\u0026plus;%20z%29%7C_%7Bx%3D3%7D)|`z + 51`\n\n## Contributing\n\nContributors are welcome! Feel free to open a pull request\nor an issue.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faugustt198%2Flatex2sympy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faugustt198%2Flatex2sympy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faugustt198%2Flatex2sympy/lists"}