LaTeX下如何改变section、subsection等的fontstyle

首先确定使用的宏包是titlesec

\usepackage{titlesec}

然后设置你想使用的字体(中英各一个)

\newfontfamily\sectionef{LithosPro-Regular}
\newCJKfontfamily\sectioncf{DFWaWaSC-W5}%我电脑上的娃娃体文字的PostScript的名称

然后开始设置各个的新格式

\titleformat*{\section}{\LARGE\sectioncf}
\titleformat*{\subsection}{\Large\sectionef}
\titleformat*{\subsubsection}{\large\bfseries}
\titleformat*{\paragraph}{\large\bfseries}
\titleformat*{\subparagraph}{\large\bfseries}

下面是运行后的demo

LaTeX下如何改变section、subsection等的fontstyle_第1张图片

结果如下
LaTeX下如何改变section、subsection等的fontstyle_第2张图片

你可能感兴趣的:(LaTeX)