{"id":18949734,"url":"https://github.com/ekiim/vim-mathpix","last_synced_at":"2025-04-15T23:31:26.308Z","repository":{"id":38420021,"uuid":"220342773","full_name":"ekiim/vim-mathpix","owner":"ekiim","description":"Vim commands to use mathpix from your screen","archived":false,"fork":false,"pushed_at":"2023-09-18T01:42:16.000Z","size":10376,"stargazers_count":40,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-09-18T03:06:44.049Z","etag":null,"topics":["image2text","latex","mathpix","vim"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/ekiim.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}},"created_at":"2019-11-07T22:48:38.000Z","updated_at":"2023-09-11T09:03:28.000Z","dependencies_parsed_at":"2022-08-18T08:20:09.140Z","dependency_job_id":null,"html_url":"https://github.com/ekiim/vim-mathpix","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekiim%2Fvim-mathpix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekiim%2Fvim-mathpix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekiim%2Fvim-mathpix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekiim%2Fvim-mathpix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ekiim","download_url":"https://codeload.github.com/ekiim/vim-mathpix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223689060,"owners_count":17186360,"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":["image2text","latex","mathpix","vim"],"created_at":"2024-11-08T13:18:28.160Z","updated_at":"2024-11-08T13:18:29.170Z","avatar_url":"https://github.com/ekiim.png","language":"Shell","readme":"# Vim Mathpix\n\nI'm not sure if this should be called an actual plug-in but here it goes.\n\nBased a little bit on the [Mathpix/api-examples](https://github.com/Mathpix/api-examples)\nrepository, I wrote a script that uses `scrot`, `curl`, and `jq`, to submit a `POST`\nrequest to the _Mathpix_ API, in order to convert the selected image in to \\Latex, or\nregular text depending on the argument.\n\n## Usage\n\nExecute the command `Img2Latex` or `Img2Text` and it will insert on your current line, \ntext generated from the image you crop on your screen.\n\n## Install \n\nMake sure you have installed, `curl`, `jq` (like `sed` but for `json`), and `scrot`.\n\nIf you are using pathogen, just clone the Repo under bundle, and make sure you copy the\n`bin` directory content to an directory on `PATH`.\n\n## Important\n\nTake in to mind that this plugin consumes mathpix api, so you need to sign up, get your\naccess keys, and set them up as environment variables.\n\nAlso **YOU HAVE LIMITED API CALLS** according to the service you will have about 1k calls\nper month, and a limit of 200 per minute, if you want more you need to pay their subscriptions.\n\nI would suggest to put them in the `~/.profile` file, but also could apply `~/.bashrc`.\n\n```sh\nexport MATHPIX_GROUP=\"group_id\"\nexport MATHPIX_ID=\"app_id\"\nexport MATHPIX_KEY=\"app_key\"\n```\n\n## Example \n\n![Example of Usage](example/test.gif)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekiim%2Fvim-mathpix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fekiim%2Fvim-mathpix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekiim%2Fvim-mathpix/lists"}