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

Math matrix are being exported too close #2288

Closed
1 task done
BaiqingL opened this issue Jul 21, 2020 · 2 comments
Closed
1 task done

Math matrix are being exported too close #2288

BaiqingL opened this issue Jul 21, 2020 · 2 comments

Comments

@BaiqingL
Copy link

BaiqingL commented Jul 21, 2020

  • Can you reproduce the issue?

Export the following math code to a PDF:

$$ q-p=\begin{bmatrix} 0-(-6)\\-4-3 \end{bmatrix}\\ =\begin{bmatrix} 6\\-7 \end{bmatrix} $$

Expected behavior:

The second matrix be placed at an appropriate distance below the first one

Actual behavior:

The second matrix almost touching the first one

  • Mark Text version: 0.16.2
  • Operating system: Windows 10 x64
@spencer246
Copy link

spencer246 commented Aug 18, 2020

Well, this issue is actually about LaTeX syntax. Strictly speaking, you cannot use \\ in the math mode unless you are in the align environment or something similar.

Try:

$$
\begin{aligned}
q-p=\begin{bmatrix} 0-(-6)\\-4-3 \end{bmatrix}\\ =\begin{bmatrix} 6\\-7 \end{bmatrix}
\end{aligned}
$$

@BaiqingL
Copy link
Author

Oh! Learned something new today, thanks!

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