Possible Duplicate:
“[” as first character in table row

I am usually constructing nested equations in latex using the IEEEeqnarray-toolbox (typeset_equations.pdf ). However, I noticed an odd behavior that it probably inherits from the basic TeX ingredients it is based on.

Does anyone know a simple workaround for the following?

In the IEEEeqnarraybox environment, in a second line (after a \\ in the previous line), a starting opening bracket will lead to errors. Showcase:

&  \\
[ & 

I tried escaping it with \\[, which will lead to other errors, as I am using this in the math-environment.

marked as duplicate by Werner, Stefan Kottwitz Jan 25 '13 at 17:32

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

migrated from stackoverflow.com Jan 25 '13 at 16:56

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

  • Welcome to TeX.sx! Your post was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question. – Werner Jan 25 '13 at 16:57
  • I agree with @Werner: just write \relax after the \\ that's followed by [. – egreg Jan 25 '13 at 17:02

An (ugly) workaround is to insert a space and a negative space:

[ &  \\ 
\,\![ & 

(the '[' in the first row is just to verify that the horizontal spacing is OK)

  • {} would be enough, but \relax is better. – egreg Jan 25 '13 at 17:05