slug
tags
password
icon
lang
date
category
type
status
summary
{/* truncate */}
Updates: The issue has been fixed. You can install the latex version latexocr with GUI on M-Series Mac. You can copy the below code to your terminal.
This post introduces an alternative tool for LaTex code. I used Mathpix for a long time. However, it only provides 10 snips a month if you do not have a subscription.
Then I find LaTex-OCR project from GitHub. You can easily follow the official doc to install and use this project.
The precondition is you have installed Python on your system.
You can install any native version ( 3.7) of Python via
Homebrew
or asdf
.Once you installed Python, you can install the project by
pip
The system will install
pix2tex
with dependencies.Run with terminal
Then open the
terminal
and run the project with code pix2tex
.
Then take a screenshot of the wanted equation and copy it. Then press
enter
to render the code. For example, I want the DDM equation:
The project will render code as follow:
Run with GUI
If you want to install PyQt5 via
arm64
, the system will return an error:
You should run python and terminal via
Rosetta x86
. I posted an instruction on how to install x86
python here. You can use the same method to install python and run pix2tex
with GUI.install x86
Python
Install pix2tex[gui]
Run the following code to install:
Open GUI with code:
The system will start the project like this:
You can snip the equation. However, the performance is unstable. The GUI constantly crash.
- Author:PENG Jiaxin
- URL:https://www.pengjiaxin.com/article/latexocr
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!