風
2009-02-26 13:14:17 UTC
想請教一下,關於我在寫數學式子時,遇到的問題
以下是這段數學是
\begin{equation}
f(x)=
\begin{cases}
1 & -1<x<1 \\
0 & others
\end{cases}
\end{equation
^ 這裡少了 "}"以下是這段數學是
\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 &.",("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,似乎是字體出了問題...請問有什麼解決方法嗎?
謝謝!
而 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}
--
[1;32m※ Origin: [33mSayYA 資訊站 [37m<bbs.sayya.org> [m
[1;31m◆ From: [36mc-71-236-23-153.hsd1.ga.comcast.net[m