看板 LaTeX 關於我們 聯絡資訊
※ 引述《hau (小豪)》之銘言: : ※ 引述《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}{ \ifzh{ \titleformat{\chapter}{\lefting\Huge\normal}{\appendixname\thechapter}{1em} {} % 改章首 \titlecontents{chapter} % 改目錄 [\tocNumSpaceC@Before] {\tocStyleChapterAboveApp} {\tocStyleChapterFont\makebox[\tocNumSpaceC@Total][l]{\thecontentslabel@chapter@app}} {\tocStyleChapterFont} {\tocStyleChapterFiller} \@mainmattertrue % \appendix 置於 \backmatter 之後 }{}{} \renewcommand\appendixname{附錄} \tableofcontents 請問 sppmg 是如上的 \titlecontents{chapter} 對吧,我不大懂當中參數的意思, 可以請您以一個範例,簡單說明參數的意思嗎?謝謝。 -- -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 123.204.173.55 ※ 文章網址: https://www.ptt.cc/bbs/LaTeX/M.1535209951.A.207.html
sppmg: 呃,你就清掉我的參數,照手冊打。我只是要說你 08/26 15:59
sppmg: \apptocmd 漏了 \titlecontents 08/26 16:00