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

楼主: hau (小豪)   2018-08-24 21:50:16
※ 引述《hau (小豪)》之铭言:
: ※ 引述《hau (小豪)》之铭言:
: : 我是用 xelatex
: : 并用了圆体
: : \setCJKmainfont{cwyen.ttf}
: : 请问怎么变粗体字?(还是说没办法,我只能变换字型)
: : 我试过
: : \textbf
: : \bold
: : \bfseries
: : 都不行……
: 最后我用下面这个,成功了
: \setCJKmainfont[AutoFakeBold=2.5,AutoFakeSlant=.4]{cwyen.ttf}
: 但是有个问题,
: 我当初用
: \chapter{ }
: \section{ }
: 当中的字也自动变粗体了,\chapter,\section,我不要粗体,怎么改呢?
谢谢网友答复。
我用下面这样
\setCJKmainfont[AutoFakeBold=2.5,AutoFakeSlant=.4]{cwyen.ttf}
\usepackage{titlesec}
\usepackage{titletoc}
\usepackage{CJKnumb}
\renewcommand{\contentsname}{目录}
\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
但是在“目录”中,
“章”的名称仍然是粗体,“附录”的地方也是,
请问怎么改目录中“章”、“附录”的字体。
作者: andrew43 (讨厌有好心推文后删文者)   2018-08-24 21:55:00
要改目录中的样式可用titletoc

Links booklink

Contact Us: admin [ a t ] ucptt.com