看板LaTeX
标 题Re: 分段定义函数加方程式编号的方法?
发信站山寨资讯站 (Fri Apr 27 10:16:11 2007)
转信站ptt!ctu-reader!news.nctu!BanditNest-BBS
※ 引述《[email protected] (这一秒)》之铭言:
> 我现在手边有一段分断定义函数
> 之前在没有要开始编号方程式之前都相安无事
> \[ 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