Re: [问题] 有关中文变粗体

楼主: hau (小豪)   2018-08-27 09:05:24
改成下面这样
\usepackage{titlesec}
\usepackage{titletoc}
\usepackage{CJKnumb}
\renewcommand{\contentsname}{目录}
\renewcommand{\appendixname}{附录}
\titlecontents{chapter}[0pt]{\vspace{.5\baselineskip}}
{第\CJKnumber{\thecontentslabel}章\quad}{}
{\hspace{.5em}\titlerule*[10pt]{$\cdot$}\contentspage}
\titleformat{\chapter}{\lefting\Huge\normal}{第\,\CJKnumber{\thechapter}\,章
}{1em}{}
\titleformat{\section}{\lefting\LARGE\normal}{\thesection}{1em}{}
\titleformat{\subsection}{\lefting\Large\normal}{\thesubsection}{1em}{}
\usepackage{etoolbox}
\apptocmd{\appendix} {
\titleformat{\chapter}{\lefting\Huge\normal}{\appendixname\thechapter}{1em}
{}
\titlecontents{chapter}[0pt]{\vspace{.5\baselineskip}}
{\appendixname\thecontentslabel}{}
{\hspace{.5em}\titlerule*[10pt]{$\cdot$}\contentspage}
}{}{}
\tableofcontents
_________________________________________________________________________
还是出现“第A零章”,它的上面还有一行类似乱码的东西。希望出现“附录 A”。
我是觉得我在目录那边设定了“章”的格式,
又在目录的附录那边设定了“章”的格式。造成冲突。
不知是不是这样…

Links booklink

Contact Us: admin [ a t ] ucptt.com