{"id":24071083,"url":"https://github.com/shanto268/snip2tex","last_synced_at":"2025-04-28T13:08:20.073Z","repository":{"id":153954991,"uuid":"631065836","full_name":"shanto268/snip2tex","owner":"shanto268","description":"A Menu Bar app for macOS and GUI app for WIndows/Linux that allows you to take a screenshot of equations and generate latex code of that equation","archived":false,"fork":false,"pushed_at":"2023-04-26T04:00:41.000Z","size":890,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-28T13:08:17.338Z","etag":null,"topics":["academic-writing","latex","latexocr","linux","macos","math","mathpix","menubar-app","phd","phd-thesis","science","windows"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shanto268.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-04-21T20:55:34.000Z","updated_at":"2025-02-19T22:24:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"e58d5029-5809-458f-a4f8-460b39fd682e","html_url":"https://github.com/shanto268/snip2tex","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"adad21aa0d9b385038c05c10e43b99c011975393"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shanto268%2Fsnip2tex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shanto268%2Fsnip2tex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shanto268%2Fsnip2tex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shanto268%2Fsnip2tex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shanto268","download_url":"https://codeload.github.com/shanto268/snip2tex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251319605,"owners_count":21570426,"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":["academic-writing","latex","latexocr","linux","macos","math","mathpix","menubar-app","phd","phd-thesis","science","windows"],"created_at":"2025-01-09T16:38:26.964Z","updated_at":"2025-04-28T13:08:19.984Z","avatar_url":"https://github.com/shanto268.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LatexOCR Menu Bar App\n\n\u003cdiv style=\"display:flex;\"\u003e\n    \u003cimg src=\"assets/bar.png\" style=\"width:100%; margin-right:5px;\"\u003e\n\u003c/div\u003e\n\n\u003cbr\u003e\n\nThis is a simple Menu Bar app for macOS and a simple GUI app for Windows and Linux that allows you to execute `LatexOCR`, a command-line tool for OCR of math equations.\n\nThis would not have been possible if not for the great work by [Lukas Blecher's LaTeX OCR Project](https://github.com/lukas-blecher/LaTeX-OCR)\n\n## Installation\n\n### Step 1: Install LatexOCR\n\nInstall `LatexOCR` by running the following command in your preferred `conda env`:\n\n\n```\npip install 'pix2tex[gui]'\n```\n\n### Step 2: Clone this repository\n\nClone this repository to your local machine by running the following command:\n\n```\ngit clone https://github.com/shanto268/snip2tex.git\n```\n\n### Step 3: Install the required libraries\n\n#### macOS\nInstall the required library by running the following command:\n\n```\npip install rumps\n```\n\n### Step 4: Set the path to LatexOCR\n\nOpen the `snip2tex.py` file and set the `command` variable to the path of the `latexocr` command on your system.\n\n**Path of `latexocr` can be found by** `which latexocr` (macOS and Linux) or by searching for the location of the `(get-command latexocr.exe).Path` file (Windows)\n\n\n### Step 5: Run the app\n\nRun the app by running the following command:\n\n```\npython snip2tex.py\n```\n\n\n## Usage\n\n### macOS\nAfter running the app, it should create a Menu Bar Tool - ![tool](https://github.com/shanto268/snip2tex/raw/master/assets/menu.png) and all you need to do is press `Snip2TeX` and then a new window (*left figure below*) would pop up.\n\nClick on the `Snip` button or press `Option+S` and then it would act like a screenshot feature (blue region below) similar to what happens when you press `Cmd+Shift+4` (*middle figure below*)\n\nbut now whatever feature you cover should be an equation and once you are done **snapping** it will generate the corresponding `LaTeX` code that you can simply copy (*right figure below*)\n\n\u003ccenter\u003e\n\u003cdiv style=\"display:flex;\"\u003e\n    \u003cimg src=\"assets/app.png\" style=\"width:28%;height:100%; margin-left:0px;\"\u003e\n    \u003cimg src=\"assets/action1.png\" style=\"width:40%;margin-right:2px; margin-left:2px;\"\u003e\n    \u003cimg src=\"assets/menu2.png\" style=\"width:28%;height:50%; margin-left:0px;\"\u003e\n\u003c/div\u003e\n\u003c/center\u003e\n\n### Windows and Linux\nAfter running the app, a simple GUI window will appear with a \"Snip2TeX\" button and an output area. Press the \"Snip2TeX\" button to execute the LatexOCR command, and the output will be displayed in the output area. To close the application, press the \"Quit\" button.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshanto268%2Fsnip2tex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshanto268%2Fsnip2tex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshanto268%2Fsnip2tex/lists"}