I am trying to make a matrix in LaTeX. Now I am trying to make a table with multicolumn like

a b c
d  у

So I coded

& \hspace{0.3cm}\overbrace{\hphantom{\begin{array}{ccc}

But I cannot make the multicolumn work I've read several manuals like



And some others, but it doesn't solve my problem. I am using texmaker and it error log gives some abstract errors like "missing $ inserted". Thank you.

migrated from stackoverflow.com Mar 8 '11 at 15:33

This question came from our site for professional and enthusiast programmers.

  • This is a question better suited for tex.stackexchange.com. That said, I think you need to insert a space before the closing $, like this: $\phi $. – Matt Ball Mar 8 '11 at 15:06
  • @Matt Ball (although it probably not going to reach stackoverflow): you don't need a space before the closing dollar. – Bruno Le Floch Mar 8 '11 at 15:54

You already are in math environment (align*), so there's no need to escape \phi with $ $ -- and that's what is causing the error. Just remove them, and you should be good to go.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.