Re: [問題] 章節標題位置

看板LaTeX (論文排版)作者 (Myrmarachne)時間14年前 (2011/04/26 13:52), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
※ 引述《ikkldh (讓自已更好)》之銘言: : 我想把文章的主要章節(section)標題置中 : 但是次要章節(subsection)標題對齊左邊的邊線,也就是靠左排版 : 我在設定的地方用了指令: : \usepackage[center]{titlesec} : 結果所有標題都變成置中排版了 : 請問我該如何設定以達成我要的排版呢? : 謝謝大家^^ 我是 titlesec package 愛用者, 以下就是利用它的解法. \titleformat{\section}%指定改變 section header style []%指定樣式類型, 像 section 通常是 hang 而 paragraph 是 runin 等等. {\normalfont\Large\bfseries\centering}%區域內全域效果, 重點在 \centering. {\thesection}%區域內前段效果, 通常就是 label. {1em}%前段與後段間距. {}%區域內後段效果, 也就是題文, 留空即可列出題文. []%區域後段後效果, 我常加上 \titlerule. \titlespacing*{\section}%指定改變 section header margin {0pt}%區域左側邊界 {3.5ex plus 1ex minus .2ex}%區域上側邊界 {2.3ex plus .2ex}%區域下側邊界 []%區域右側邊界 會玩之後, 就可以排出較有變化的 header. 請見愚作: https://picasaweb.google.com/lh/photo/UoxLcvCcO0RBBac7dYdkDg?feat=directlink https://picasaweb.google.com/lh/photo/_1k35r9xZjENYmzSDNWt9g?feat=directlink -- http://apansharing.blogspot.com/ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.128.117.73
文章代碼(AID): #1Djbsc1c (LaTeX)
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
文章代碼(AID): #1Djbsc1c (LaTeX)