Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Equation in many lines #344

Open
naked-physicist opened this issue Dec 6, 2023 · 1 comment
Open

Equation in many lines #344

naked-physicist opened this issue Dec 6, 2023 · 1 comment

Comments

@naked-physicist
Copy link

naked-physicist commented Dec 6, 2023

I tried some equations having many lines.
It usually gives the latex script in the form of array like this:
$\begin{array}{c}{{H(t)=\frac{1}{2}\omega_{1}\sigma_{1}^{z}+\cos\left(\omega_{1}^{d}t\right)\left(\Omega_{1}^{z}\sigma_{1}^{z}+\Omega_{1}^{x}\sigma_{1}^{x}\right)}}\ {{}}&{{+\ \cos\left(2\omega_{1}^{d}t\right)\left(\xi_{1}^{z}\sigma_{1}^{z}+\xi_{1}^{x}\sigma_{1}^{x}\right)+\sin\left(2\omega_{1}^{d}t\right)\xi_{1}^{y}\sigma_{1}^{y}}}\ {{}}&{{+\frac{1}{2}\omega_{2}\sigma_{2}^{x}-J\sigma_{1}^{x}\sigma_{2}^{x}.}}\end{array}$

Original one in a paper:
original

Screenshot taken from latexocr gui:
latexocr

It is helpful enough to get the script, but can you find better way for such a multi-line eqaution, for example, using other environment like \begin{equation} \begin{aligned} ... \end{aligned} \end{equation}?
Also, it seems not working well for equations more than 4 lines... It usually omits one of the lines.

@STEVENTAN100
Copy link

I found this problem too, when I tried to recognize the matrix. It returns the first line of the matrix, and the grammar is false.
Therefore I use it only for recognize one-line formula. And a editor at hand when encountering multi-line equations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants