LaTeX and amsmath Support

  • Unknown's avatar

    I can’t seem to get any of the equation environments such as eqnarray, equation, align, split, etc. to work. For example,

    [sourcecode language='vb']$latex begin{eqnarray} a &=& b end{eqnarray}$[/sourcecode]

    doesn’t work at all. Why is that?

  • Unknown's avatar

    Hmm, the [sourcecode] tag didn’t work either. What gives?

  • Unknown's avatar

    Nevermind the [sourcecode] comment. I realize why it doesn’t work here: it’s unsupported in the forums.

  • All LaTeX code is processed as though it were in the math environment already. Imagine that the code you type gets sandwiched between dollar signs, and then parsed by LaTeX. That’s not far from what really happens.

    Since you can’t start a eqnarray environment from within that inline math mode, you get errors.

    You can use regular arrays:

    $latex begin{array}{rcl} a & = & b \ forumla & = & long end{array}$

    but obviously you don’t get equation numbers and such.

    WordPress.com doesn’t support full blown LaTeX. If you need fancier stuff, you can generate the image via your own install of LaTeX, upload that image, and include the image in your post.

  • Unknown's avatar

    Ah, I see. Makes sense. Thank you for the explanation. I appreciate it.

  • The topic ‘LaTeX and amsmath Support’ is closed to new replies.