Re: [問題] Misplaced alignment tab character &.

看板LaTeX (論文排版)作者時間16年前 (2009/02/26 21:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/4 (看更多)
※ 引述《Flychop.bbs@ptt.cc (醉心)》之銘言: > 想請教一下,關於我在寫數學式子時,遇到的問題 > 以下是這段數學是 > \begin{equation} > f(x)= > \begin{cases} > 1 & -1<x<1 \\ > 0 & others > \end{cases} > \end{equation ^ 這裡少了 "}" > 但編譯時卻出現這段文字 > ("C:\Program Files\MiKTeX 2.7\tex\latex\amsfonts\umsa.fd") > ("C:\Program Files\MiKTeX 2.7\tex\latex\amsfonts\umsb.fd") [1] > ! Misplaced alignment tab character &. > 我查了一下google,似乎是字體出了問題...請問有什麼解決方法嗎? > 謝謝! 這應該跟字體完全無關,錯誤訊息是 "Misplaced alignment tab character &.", 而 LaTeX compiler 應該會在這之後指出發生錯誤的位置。 另外,使用 cases 環境前,是否有引用了 amsmath package? 你上面的方程式,以下面這樣的方式測試,是可以成功編譯的: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} f(x)= \begin{cases} 1 & -1<x<1 \\ 0 & others \end{cases} \end{equation} \end{document} -- ※ Origin: SayYA 資訊站 <bbs.sayya.org> ◆ From: c-71-236-23-153.hsd1.ga.comcast.net
文章代碼(AID): #19ffdI00 (LaTeX)
文章代碼(AID): #19ffdI00 (LaTeX)