[問題] enumerate內的\item $數學式$ 問題

看板LaTeX作者 (元丁)時間11年前 (2013/03/28 02:25), 編輯推噓1(103)
留言4則, 2人參與, 最新討論串1/2 (看更多)
我是個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)

03/28 04:34, , 1F
我用 xelatex 編譯時似乎是正常的(只有\leq 後要加空格)
03/28 04:34, 1F

03/28 04:37, , 2F
或許在 25 行之前看有沒有缺 $ 之類的符號。
03/28 04:37, 2F

03/28 11:22, , 3F
我目前測試是把\renewcommand那行去掉就可以編譯了
03/28 11:22, 3F

03/28 11:27, , 4F
但是我想要第一層是用英文字母,也試過加上[a],但也錯誤
03/28 11:27, 4F
文章代碼(AID): #1HKpcCMj (LaTeX)
文章代碼(AID): #1HKpcCMj (LaTeX)