Re: 分段定義函數加方程式編號的方法?
※ 引述《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
討論串 (同標題文章)
完整討論串 (本文為第 2 之 2 篇):
3
3
LaTeX 近期熱門文章
PTT數位生活區 即時熱門文章
14
30