Re: 分段定義函數加方程式編號的方法?

看板LaTeX (論文排版)作者時間18年前 (2007/04/27 10:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
※ 引述《skydance.bbs@ptt.cc (這一秒)》之銘言: > 我現在手邊有一段分斷定義函數 > 之前在沒有要開始編號方程式之前都相安無事 > \[ x = \left\{\begin{array}{ll} > y & \mbox{if } y > 0, \\ > z+y & \mbox{otherwise.} > \end{array} \right. \] > 但是當現在要整理,要加上編號時 > 我是想要用\begin{equation} > \end{equation} 包起來 > 不論我這樣包 > \begin{equation} \[ x = \left\{\begin{array}{ll} > y & \mbox{if } y > 0, \\ > z+y & \mbox{otherwise.} > \end{array} \right. \] \end{equation} > 或是這樣包 > \[ \begin{equation} x = \left\{\begin{array}{ll} > y & \mbox{if } y > 0, \\ > z+y & \mbox{otherwise.} > \end{array} \right. \end{equation} \] > 執行時都會出現Bad math environment delimiter的錯誤訊息 > 請問這是否有解決的方法呢? 有, 因為你不該 \begin{equation} + \[ There are three environments that put LaTeX in math mode: math: For Formulae that appear right in the text. displaymath : For Formulae that appear on their own line. equation: The same as the displaymath environment except that it adds an equation number in the right margin. 請自己查一下這些環境的用法囉 :) 你的問題就是你重覆使用環境 套用這個作法你就能通過編譯 \begin{equation} x = ???? \end{equation} -- ※ Origin: 土匪.山寨 <bbs.techarea.org / poorman.twbbs.org> ◆ From: 140.116.80.33
文章代碼(AID): #16CM2h00 (LaTeX)
文章代碼(AID): #16CM2h00 (LaTeX)