Re: [問題] 頁首頁尾及章節標題版面問題求教

看板LaTeX (論文排版)作者 (←這人是超級笨蛋)時間14年前 (2011/08/03 00:51), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/5 (看更多)
※ 引述《Ninerh (小九)》之銘言: : \usepackage{xCJKnumb} : \titleformat{\chapter}{\centering\Huge\bfseries}{第\,\xCJKnumber{\thechapter}\,章}{1em}{} %設定章標題 (\chapter) 格式 : \appendix : \raggedbottom\sloppy : % : \chapter{app 1} 原因應該在這裡 附錄的章節編號是 ABCDE, 可是 \xCJKnumber 吃的是數字 所以到這裡 LaTeX 把 A 丟進去就炸裂了 目前想到的方法是用 ifthen package 在 preamble 設 \newboolean{isAppendix} \setboolean{isAppendix}{false} 然後章節格式那邊寫 \titleformat{\chapter} {\centering\Huge\bfseries} {第\,% \ifthenelse{\boolean{isAppendix}} {\thechapter} {\xCJKnumber{\thechapter}} \,章}{1em}{} 最後在 \appendix 後面加一行 \setboolean{isAppendix}{true} 不過總覺得有更好的方法... 順帶一題 LaTeX 警告我說你的 \headheight 太小 預設是 12.0pt, 可是你的 header 有兩行字, 請設大一點 在 typeset 的時候應該有建議要設多少 -- Les grandes et les meilleurs tone from "Zadok the Priest" Eine grosse stattliche Veranstaltung by F. Handel THE MAIN EVENT! These are the men Sie sind die Besten "Champions League" by Tony Britten THESE ARE THE CHAMPIONS! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.32.81.146
文章代碼(AID): #1EE2iMq- (LaTeX)
文章代碼(AID): #1EE2iMq- (LaTeX)