Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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:

\begin{IEEEeqnarraybox}[][c]{l?s}
&  \\
[ & 
\end{IEEEeqnarraybox}

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

share|improve this question

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

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

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.

    
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

1 Answer 1

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

\begin{equation}
\begin{IEEEeqnarraybox}[][c]{l?s}
[ &  \\ 
\,\![ & 
\end{IEEEeqnarraybox}
\end{equation}

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

share|improve this answer
    
{} would be enough, but \relax is better. –  egreg Jan 25 '13 at 17:05