作者gary8520 (元丁)
看板LaTeX
标题[问题] enumerate内的\item $数学式$ 问题
时间Thu Mar 28 02:25:12 2013
我是个Tex新手
WIN7使用MikTex2.9+XeLaTex+xeCJK+Texmaker来编辑
在知道「原来可以自动编号啊…」很开心地加上去後
原来编译可以的计算式子放在enumerate里之後就出现错误
\renewcommand{\labelenumi}{\alpha{enumi})}
\paragraph{11.}%第11题
\begin{enumerate}
→第25列 \item $z_{1-\frac{0.05}{2}}\times sd=1.959964\times
\sqrt{\dfrac{p(1-p)}{1218}}=0.02749159 $
等等 ...之类的
\item
\begin{description}
\item[b.] $\;n=0.56*(1-0.56)*(\frac{z_{0.025}}{0.02})^{2}= 2366.339\leq2367$
\item[d.]$\;
E=z_{0.025}\sqrt{\frac{0.071(1-0.071)}{3458}}=0.0198355\leq0.02$
\end{description}
\end{enumerate}
错误讯息大约是
第25列
! Missing $ inserted.<inserted text>$ ^^I\item $
! Extra }, or forgotten $.\llap #1->\hb@xt@ \z@ {\hss #1} ^^I\item $
! Extra }, or forgotten $.\sbox ...hbox {\color@setgroup #2\color@endgroup }
^^I\item $
! Missing $ inserted.<inserted text>$ ^^I\item $z_
其他列或其他段落,若有
\item some words or not are here $ $
或是\item \[ \]
就会出错,
若只有\item some words
或不使用enumerate,就没有错误
请问版上的强者大大们要怎麽解决这种情形?
--
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 114.24.28.95
※ 编辑: gary8520 来自: 114.24.28.95 (03/28 02:32)
※ 编辑: gary8520 来自: 114.24.28.95 (03/28 02:33)
1F:推 springman:我用 xelatex 编译时似乎是正常的(只有\leq 後要加空格) 03/28 04:34
2F:→ springman:或许在 25 行之前看有没有缺 $ 之类的符号。 03/28 04:37
3F:→ gary8520:我目前测试是把\renewcommand那行去掉就可以编译了 03/28 11:22
4F:→ gary8520:但是我想要第一层是用英文字母,也试过加上[a],但也错误 03/28 11:27