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

Correct label position for LaTeX align math environment #127

Open
xiaodong-hu opened this issue Feb 15, 2024 · 1 comment
Open

Correct label position for LaTeX align math environment #127

xiaodong-hu opened this issue Feb 15, 2024 · 1 comment

Comments

@xiaodong-hu
Copy link

The minimal example for align environment is:

#import "@preview/mitex:0.2.1": *
#set math.equation(numbering: "(1)", supplement: [#text(blue)[*Eq.*]])

#mitext(`
    This is \emph{math} \textbf{equation} test for \eqref{eq:1}.
    \begin{align}
      \text{Stokes formula}\quad \int_{\mathcal M}\mathrm{d}\omega&=\int_{\partial\mathcal M}\omega\nonumber\\
      \textbf{Jacobi-}$\vartheta$ \textbf{Function}\quad f(z)&=e^{ik\cdot z}\prod_{\nu=1}^{N_s}\vartheta\left(2\pi\frac{z-z_\nu}{L_1}\middle|\tau\right).\label{eq:1}
    \end{align}
`)

What I got is
2024-02-15_16-28

Here the label is NOT correctly placed at the end of the second line, even if I use the command \nonumber for the first line.

@OrangeX4
Copy link
Member

This is because typst does not currently support nonumber and numbering by row, and we need to wait for upstream support.

Related issue: typst/typst#380

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

No branches or pull requests

2 participants