https://github.com/rmst/screenshot2latex
https://github.com/rmst/screenshot2latex
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rmst/screenshot2latex
- Owner: rmst
- License: mit
- Created: 2018-02-28T02:41:22.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-28T03:13:44.000Z (over 8 years ago)
- Last Synced: 2025-06-14T11:03:54.207Z (about 1 year ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# screenshot2latex
1) takes screenshot
2) converts it to latex (using https://mathpix.com)
3) pastes latex to clipboard
## Run
`screenshot2latex`
## Requirements
- Python 3.X (recommended distribution: Anaconda)
- gnome-screenshot
- [Mathpix credentials](https://dashboard.mathpix.com)
## Install
```bash
pip install git+ssh://git@github.com/rmst/screenshot2latex.git
```
Add Mathpix credentials to bash `.bashrc`
```bash
export MATHPIX_ID="MATHPIX_ID"
export MATHPIX_KEY="MATHPIX_KEY"
```
## Tips
On Ubuntu/Gnome: assing a keyboard shortcut to screenshot2latex go to `Settings/Keyboard/Custom Shortcuts` click on `+` and add `screenshot2latex` as command.
You might have to restart the computer to make the credentials available to the shell (e.g. gnome).