Re: [問題] 請問怎麼打短除法

看板LaTeX (論文排版)作者 (apan)時間11年前 (2013/12/25 22:03), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/3 (看更多)
※ 引述《moun9 (耶....)》之銘言: : 請問各位高手, 怎麼打出短除法的式子? : 目前只會用打表格的方法來打, 但是打出來格式很亂! : 希望有前輩可以分享一下, 謝謝 我也只想到用 tabular。以下的例子無需額外引入第三方 package。 \begin{center} \newcommand{\mydots}{\hspace*{5pt}$\cdots\cdots$\hspace*{5pt}} \newcommand{\myspace}{\hspace*{1em}\space} \setlength{\tabcolsep}{3pt} \begin{tabular}{ r *{6}{r} r @{\myspace} r @{\myspace} r r } \multicolumn{1}{r}{2} & \multicolumn{5}{|r}{} & 30 & 36 & 24 & \mydots 0 \\ \cline{2-9} \multicolumn{2}{r}{2} & \multicolumn{4}{|r}{} & 30 & 36 & 24 & \mydots 0 \\ \cline{3-9} \multicolumn{3}{r}{3} & \multicolumn{3}{|r}{} & 15 & 18 & 12 & \mydots 0 \\ \cline{4-9} \multicolumn{4}{r}{1} & \multicolumn{2}{|r}{} & 5 & 6 & 4 & \mydots 0 \\ \cline{5-9} &&&&& & 5 & 6 & 4 & \\ \end{tabular} \end{center} -- http://apansharing.blogspot.com/ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.117.37.172
文章代碼(AID): #1IkkMqjP (LaTeX)
文章代碼(AID): #1IkkMqjP (LaTeX)