Divide-By-0 / autolatex

All Auto Latex Equations Versions.
https://autolatex.com
MIT License
17 stars 1 forks source link

Support multi-line equations #23

Closed JasonGross closed 1 month ago

JasonGross commented 7 months ago

Please add a mode to support multi-line equations, e.g.,

\[\begin{align*}
\underline{n} & := \{0, 1, \ldots, n-1\} \\
X & := \underline{64}^4 \\
D & := U(0, 63) = \test{the uniform distribution} \\
PDF_D(x) & := \begin{cases} \frac{1}{64} & \text{if } 0 \le x < 64 \\ 0 & \text{otherwise} \end{cases}
\end{align*}\]

It would perhaps be nice to have a "safer" version of this mode that only works with \[ and \] (to ensure that text is not captured) and requires that there is no \[ before the next \].

Divide-By-0 commented 7 months ago

Hey! We should support \\ after each line, or shift+enter for newlines [as opposed to enters]. Does that work for you? I notice your second last line does not have a shift enter nor \\.

Around 3 days ago we updated our FAQ to include this information as well. I'm not sure how the mode you suggest would be safer.

JasonGross commented 7 months ago

Ah, I see! That works. Maybe the short list of instructions in the panel should include something about how multiline equations need to match one of these formats?

grimsteel commented 1 month ago

The panel already includes that image