Re: [問題] 有關中文變粗體

作者: hau (小豪)   2018-08-24 22:28:19
※ 引述《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零章」,怎麼改?
作者: andrew43 (討厭有好心推文後刪文者)   2018-08-25 00:25:00
你期待的結果應是怎樣?
作者: hau (小豪)   2018-08-25 00:48:00
目錄的那邊,應該出現「附錄 A」
作者: sppmg (sppmg)   2018-08-25 14:19:00
你 \apptocmd 裡面沒 \titlecontents(參考下我的 code)

Links booklink

Contact Us: admin [ a t ] ucptt.com