macOS下标题华文宋体汉字和TimeNewRoman英文数字基线不对齐的问题?

发布于 2025-07-15 21:23:48

汉字我用的设置是:

\CTEXsetup[format={\zihao{-2}\songti\bfseries},
    beforeskip={1.5ex plus 0.2ex minus 0.1ex},
    afterskip={1.0ex plus 0.2ex}
]{section}

以及

\CTEXsetup[number={\arabic{section}. \hspace{-1.3em}}]{section}

然后有一个主字体是 Time New Roman。这就导致了这个问题:

image.png

查看更多

关注者
0
被浏览
552
3 个回答
Sagittarius Rover
Sagittarius Rover 2025-11-08
这家伙很懒,什么也没写!

该问题的最小工作示例其实可以更短:

\documentclass[AutoFakeBold]{ctexart}
\setmainfont{Times New Roman}
\begin{document}
{\zihao{-2}\songti\bfseries%

1. 问题复现

1.1 问题描述

1.1.1 问题背景

2. 工作人员

2.1 工作人员

2.1.1 工作人员

}
\end{document}

总结一下上面的测试结果:

  • windows: simsum.ttcTime New Roman的基线比较匹配
  • macOS: STsong.ttfTime New Roman的基线不匹配
  • ubuntu: fandol-song.ttfTime New Roman的基线不匹配

至于怎么办嘛,看格式要求

如果格式要求就是: 宋体+TNR,最好使用中易宋体

否则可以考虑替换西文字体,并不是任意两个西文字体和中文字体都是那么匹配的...

Sagittarius Rover
Sagittarius Rover 2025-07-15
这家伙很懒,什么也没写!

请提供一个完整的,可让人直接编译能复现你问题最短代码。

你提供的代码内容 惜码如金 ,连]都没闭合...

image.png

Sagittarius Rover
Sagittarius Rover 20小时前
这家伙很懒,什么也没写!

XeLaTeX下没有可以调整字体基线的方式,但是LuaLaTeX可以,详情可查阅luatex-ja的文档:

\documentclass{ctexart}
\setmainfont{Times New Roman}
% TeXpage:fandol-song + Time New Roman
\begin{document}

\bfseries

调整前:

1. 这是中文

1.1 这是中文

1.1.1 这是中文

\bigskip

调整后:

{
\ltjsetparameter{yjabaselineshift=-1pt}
2. 这是中文

2.1 这是中文

2.1.1 这是中文
}
\end{document}

image.png

撰写答案

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

发布
问题

分享
好友

手机
浏览

扫码手机浏览