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

使用宏包中的数学字体后崩溃 #441

Open
6 of 10 tasks
ftxi opened this issue Apr 15, 2024 · 1 comment
Open
6 of 10 tasks

使用宏包中的数学字体后崩溃 #441

ftxi opened this issue Apr 15, 2024 · 1 comment

Comments

@ftxi
Copy link

ftxi commented Apr 15, 2024

检查 / Check

编译环境 / Compilation Environment

  • 操作系统 / Operating System

    • Windows 7/8/10
    • macOS
    • Linux
  • TeX 发行版 / Tex Distribution

    • TeX Live 2022
    • MiKTeX
    • CTeX

描述问题 / Problem Description

问题描述:

我了解到附录1中已经预设了一些数学字体。由于有些符号使用其它字体,因此我导入了相关的宏包,如bbolddsfont等。直接在正文中使用这些符号是没有问题的,但是一旦加上像\dot\check这样的数学注音符号,XeLaTeX就会崩溃。

! Internal error: bad native font flag in `map_char_to_glyph'

注:这个问题只在使用本模版的时候出现。虽然这里曾有人向XeTeX报告过这个问题,但是那个网页中的示例已经能在新版XeLaTeX中成功编译通过了。

日志文件 / .log file

Thesis.log

问题截图 / Screenshots

Screenshot 2024-04-15 at 13 51 05

最小工作示例(MWE) / Minimal Working Example

Style/artratex.sty中添加

\RequirePackage{dsfont}

并将Tex/Mainmatter.tex中的内容改为

\[
 \dot \mathds{1}
\]

即可重现此错误。

@syvshc
Copy link

syvshc commented Apr 15, 2024

ucasthesis 使用的是 unicode-math 来实现数学字体, 其中字体对应的符号可以看 texdoc unimath-symbols , 不要再引入其他的字体/符号宏包, 你要的黑板体的 1 可以直接输入

\mathbb{1}

image

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