[請益] 如何在item中使數學式置中

看板LaTeX (論文排版)作者 (烈焰狂羽)時間11年前 (2014/02/27 18:22), 編輯推噓0(003)
留言3則, 3人參與, 最新討論串1/1
大家好,如題,我遇到了這個問題但不知該如何解決 我目前想要的結果如下: 1. The quadratic formula (equation equation equation) (1) <sol> The solution is shown below, (equation equation equation) (2) 我目前的code架構如下: \documentclass[a4paper, 12pt, fleqn]{article} \usepackage{xeCJK} \usepackage[left=1.5cm, right=1.5cm, top=2cm, bottom=2cm]{geometry} \usepackage{amsmath} \usepackage{amsthm} \title{Homework Name} \author{Author Name} \date{} \maketitle \begin{document} \begin{itemize} \item Question 1 \begin{dmath*} \rule{\leftmargin+\itemsep}{0in} x=\frac{-b\pm\sqrt{b^2-4ac}}{2a} \end{dmath*} \end{itemize} \begin{enumerate} \item Question 2 \begin{equation} k'=\dfrac{3\sin{(k\Delta)}}{\Delta(2+cos(k\Delta))} \end{equation} Some description here. \begin{description} \item[<sol>] \begin{equation} k'=\dfrac{3\sin{(k\Delta)}}{\Delta(2+cos(k\Delta))} \end{equation} \qed \end{description} \end{enumerate} \end{document} 以上我試了兩種計數,一種是itemize,一種是enumerate,當中還穿插著description 而數學式試了dmath跟equation 但是無論如何就是無法置中 而且先前還試了不放在計數中,也就是直接在begin{document}下一行打 \begin{equation} k'=\dfrac{3\sin{(k\Delta)}}{\Delta(2+cos(k\Delta))} \end{equation} 結果還是沒有置中,之前記得equation會自動置中,不知為何這邊就無法了 總不是每次都要用\centerline 這種指令吧... 而且用了後面編號還會有向下位移的情形 麻煩版上的各位幫我看看是否哪裡出錯或漏什麼指令是我沒注意到的,謝謝大家! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.38.132 ※ 編輯: daniel77114 來自: 140.112.38.132 (02/27 18:32)

02/28 09:59, , 1F
文檔類選項中的 fleqn 會使得公式居於左側。
02/28 09:59, 1F

02/28 16:57, , 2F
居然忘了注意到初始設定...感謝樓上!
02/28 16:57, 2F

03/04 16:21, , 3F
\[ \]呢?? 小弟是都用這個
03/04 16:21, 3F
文章代碼(AID): #1J3n78pl (LaTeX)
文章代碼(AID): #1J3n78pl (LaTeX)