看板 LaTeX 關於我們 聯絡資訊
※ 引述《hau (小豪)》之銘言: 謝謝網友答覆。 我加上 \titlecontents 變下面: \setCJKmainfont[AutoFakeBold=2.5,AutoFakeSlant=.4]{cwyen.ttf} \usepackage{titlesec} \usepackage{titletoc} \usepackage{CJKnumb} \renewcommand{\contentsname}{目錄} \titlecontents{chapter}[0pt]{\vspace{.5\baselineskip}\nromal} {第\CJKnumber{\thecontentslabel}章\quad}{} {\hspace{.5em}\titlerule*[10pt]{$\cdot$}\contentspage} \titleformat{\chapter}{\lefting\huge\normal}{第\,\CJKnumber{\thechapter}\,章 }{1em}{} \titleformat{\section}{\lefting\LARGE\normal}{\thesection}{1em}{} \usepackage{etoolbox} \apptocmd{\appendix}{ \titleformat{\chapter}{\lefting\Huge\normal}{\appendixname\thechapter}{1em} {} }{}{} \renewcommand\appendixname{附錄} \tableofcontents 但是在「目錄」中,附錄的地方出現之前的「第A零章」,怎麼改? -- -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 175.180.207.5 ※ 文章網址: https://www.ptt.cc/bbs/LaTeX/M.1535120902.A.C5D.html
andrew43: 你期待的結果應是怎樣? 08/25 00:25
hau: 目錄的那邊,應該出現「附錄 A」 08/25 00:48
sppmg: 你 \apptocmd 裡面沒 \titlecontents(參考下我的 code) 08/25 14:19