4

I want this in the Markdown language.

Enter image description here

I try the following code (that works for LaTeX):

\begin{equation}
  \begin{bmatrix}
    1 & 2 \\
    3 & 4 
  \end{bmatrix}
  \label{eq:aeqn}
\end{equation}

But it's not working for the Markdown language. It only create the matrix, but it does not label a number.

4
  • 1
    That's not markdown - it is Tex/MathJax.
    – Oded
    Jun 30, 2017 at 15:31
  • Possible duplicate of Is there Markdown to create tables?
    – MCCCS
    Jun 30, 2017 at 17:22
  • 1
    @MCCCS it might look like a table but it definitely is not and the current answer can't go on that dupe so I don't think that duplicate is correct.
    – rene
    Jun 30, 2017 at 17:44
  • 1
    So to be clear, you're saying you're using that code on one of our Stacks that support MathJax, and the matrix is rendering correctly, but its label isn't showing? Jun 30, 2017 at 19:47

1 Answer 1

5

You can only do that on a site that has Mathjax enabled.

You might be able to fake it up by using code formatting.

|1   2|                            (1)
|3   4|

If you feel you need to be fancier, you can use graphics characters.

┌     ┐
│1   2│
│3   4│
└     ┘

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .