Re: [心得] 平均分佈/齊列 表格

看板LaTeX (論文排版)作者 (Myrmarachne)時間15年前 (2010/03/03 01:21), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/3 (看更多)
※ 引述《dryman (dryman)》之銘言: : \makebox[6em][s]{執行計畫學生} :\hspace{0.7em} 姓名\\ : \makebox[6em][s]{學生計畫編號} :\hspace{0.7em} NSC xx-xxxx-x-xx-x-xx\\ : \makebox[6em][s]{研究期間} :\hspace{0.7em} 2009年7月1日至2010年2月底止\\ : \makebox[6em][s]{指導教授} :\hspace{0.7em} xxxxxx教授\\ : s 是平均分佈於此空間(makebox)的意思 在 \makebox[width][position]{text} 中, position 若為 s 可以分均分隔 "單字" 而不是 "字元." 二者的差別是有沒有空白鍵 (請以西文思考). 看看以下例子 ============== \documentclass{article} \begin{document} \raggedright \makebox[8em][s]{AAAAAAAAA} : xxx\\ #失敗 \makebox[8em][s]{B BBB BB BBB} : xxx\\ #成功 \makebox[8em][s]{c\hfill{}c\hfill{}c} : xxx\\ #成功 \makebox[8em][l]{c\hfill{}c\hfill{}c} : xxx\\ #成功 \end{document} ============== 前二列的差別在於有沒有空白鍵, 而後二列只是要展示 \hfill 也能達成目的. -- http://apansharing.blogspot.com/ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.117.35.207
文章代碼(AID): #1BZKattY (LaTeX)
討論串 (同標題文章)
文章代碼(AID): #1BZKattY (LaTeX)