Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

中文与“在分组中使用等宽字体的西文”之间的间距过大 #165

Open
3 of 11 tasks
sikouhjw opened this issue Nov 17, 2020 · 1 comment
Open
3 of 11 tasks

Comments

@sikouhjw
Copy link

检查

  • 已在 issues 中进行搜索(包括已关闭的问题)

编译环境

  • 操作系统

    • Windows 10
    • Windows 8/8.1
    • Windows 7
    • 更早版本的 Windows
    • macOS
    • Linux(请附发行版)
  • TeX 发行版

    • TeX Live 2020
    • MiKTeX
    • CTeX 套装 2.9.2.164
    • 更早版本的 CTeX 套装

描述问题

中文与“在分组中使用等宽字体的西文”之间的间距过大,使用 ~ 可以解决,但是为什么会这样?

最小工作示例(MWE)

\documentclass{ctexart}
\begin{document}
使用{\ttfamily amsthm} 宏包

使用 {\ttfamily amsthm} 宏包

使用 \texttt{amsthm} 宏包

使用~{\ttfamily amsthm} 宏包

使用 {amsthm} 宏包

使用~{amsthm} 宏包
\end{document}

(用 XeLaTeX 编译后)输出

@tanukihee
Copy link

tanukihee commented Nov 17, 2020

可能与这条,以及 #31 类似

另见 CTeX-org/ctex-kit#252

可能的解释:
CTeX-org/ctex-kit#476 (comment)

CTeX-org/ctex-kit#476 (comment)

中西间距会受后方西文字号影响,应该也会受后方西文字体的影响。第一行与第二行,用与 a 间的间距,应该是一个等宽空格的宽度。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants