Hi there I am having trouble reproducing this now I guess.
In fact, I fully copy and pasted the contents of the old lyx document into a new lyx document and the error did not occur anymore so it seems fixed. I still have the original document that is producing this error if you are interested I can attach it. -Colin On Mon, Oct 2, 2017 at 11:33 PM, Paul A. Rubin <[email protected]> wrote: > On 10/02/2017 08:25 PM, Colin wrote: > > Hi there, I was trying to setup an equation in lyx with cases but seems to > have a problem > > > Basically I wanted to use plain text on the right-hand side so I hit > Ctrl+M on the right-hand side to get back into plain text mode (I think > this is how you normally do it?). If I copy and paste the math expression > from lyx directly into this email it looks like the latex gets copied, so > it looks like this > > > > > M_{i,j}=\begin{cases} > E_{i,j} & \text{if blah}\end{cases} > > > If I try to compile this into pdf I get the error "Misplaced alignment tab > character &" with description > > E_{i,j} & > > \text{if blah}\end{cases} > > I can't figure out why you would want to use a tab mark > > here. If you just want an ampersand, the remedy is > > simple: Just type `I\&' now. But if some right brace > > up above has ended a previous alignment prematurely, > > you're probably due for more error messages, and you > > might try typing `S' now just to see what is salvageable. > > > > Thanks > > > -Colin > > You are correct about how to switch back to text mode. I just created a > new document, pasted your LaTeX into a math inset, and compiled to PDF > using pdflatex, dvipdfm and ps2pdf. The document compiled just fine with > all three methods. > > Can you create a minimal document where the error occurs and include the > LyX file as an attachment to a response to the list? Also, which method did > you use to compile to PDF? > > Paul > >
