怎样在章节序号处用arial

发布于 2021-03-31 14:46:23

ctexset{

chapter={name={,},number={\arabic{chapter}},
    nameformat = \sanhao\heiti\centering\bfseries,aftername = {},beforeskip = {-20pt},afterskip = {10pt}}}

设置number字体为arial

查看更多

关注者
0
被浏览
1.3k
拿了橘子跑啊
拿了橘子跑啊 2021-03-31
这家伙很懒,什么也没写!

首先你要确保有这个字体,然后可以用fontsepc 调用这个字体。命令是:
\newfontfamily{<macro>}[<font options>]{<fontname>}
如:

\documentclass{ctexbook}
\usepackage{fontspec} % 其实不用加载,ctex 加载了
\newfontfamily\Arial[Mapping=tex-text]{Arial} % 得确保你有这个字体
\ctexset{
    chapter={name={,},
    number=\arabic{chapter},
    numberformat=\zihao{0}\Arial,
    aftername = {},
    beforeskip = {-20pt},
    afterskip = {10pt}}
}
\begin{document}
\chapter{概述}
\end{document}

效果:
image.png

2 个回答
寄存器
寄存器 2021-03-31
这家伙很懒,什么也没写!

用fontspec载入字体,然后设置,我没有arial,没法测试。

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览