Skip to content

请问硕士论文一级标题英文字体怎么修改 #197

Answered by note286
stellalaland asked this question in Q&A
Discussion options

You must be logged in to vote

首先要说明,无衬线中文字体和衬线英文字体混用是不合适的,目前xdtus的默认设置没有问题。

因此,并不建议进行你所述的设置,不过,仍然满足你,下面给出代码。

如果仅仅设置正文一级标题样式而目录不修改:

\documentclass{xdupgthesis}
\AtBeginDocument{\ctexset{chapter/format+=\CJKfamily{sf}\CJKfamily-{rm}}}
\begin{document}
\chapter{测试test}
\end{document}

如果正文一级标题和目录均修改:

\documentclass{xdupgthesis}
\AtBeginDocument{\ctexset{chapter/format+=\CJKfamily{sf}\CJKfamily-{rm}}}
\AtBeginDocument{\let\oldcftchapfont\cftchapfont\renewcommand{\cftchapfont}{\oldcftchapfont\CJKfamily{sf}\CJKfamily-{rm}}}
\begin{document}
\chapter{测试test}
\end{document}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by note286
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants