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

捉虫记 #1

Open
lon91ong opened this issue Jan 17, 2018 · 2 comments
Open

捉虫记 #1

lon91ong opened this issue Jan 17, 2018 · 2 comments

Comments

@lon91ong
Copy link
Owner

lon91ong commented Jan 17, 2018

修正了一处导致XeTex无法定位系统字体的错误

参考
文件路径: source\somensi\LyX.nsi
修改前:

    System::Call 'kernel32::SetEnvironmentVariable(t, t) i("FONTCONFIG_FILE", "")'
    System::Call 'kernel32::SetEnvironmentVariable(t, t) i("FONTCONFIG_PATH", "")'
    System::Call 'kernel32::SetEnvironmentVariable(t, t) i("FC_CACHEDIR", "")'

将上述代码注释掉或改为下面这样:

    System::Call 'kernel32::SetEnvironmentVariable(t, t) i("FONTCONFIG_FILE", "fonts.conf")'
    System::Call 'kernel32::SetEnvironmentVariable(t, t) i("FONTCONFIG_PATH", "$EXEDIR\MiKTeX\texmf-local\fontconfig\config")'
    System::Call 'kernel32::SetEnvironmentVariable(t, t) i("FC_CACHEDIR", "$EXEDIR\MiKTeX\texmf-local\fontconfig\cache")'
@lon91ong lon91ong changed the title 修正了一处导致XeTex无法定位系统字体的错误 捉虫记 Feb 24, 2021
@lon91ong
Copy link
Owner Author

lon91ong commented Feb 24, 2021

2021-2-23
tlmgr update --self更新后遇到了no appropriate script or program found: fmtutil的问题
多番折腾后发现是命令行更新的方式更新文件不完整, 需要下载tlmgr在Windows下的独立更新包后解压覆盖的方式更新
覆盖之后需再执行一次tlmgr update --self可解决问题。

@lon91ong
Copy link
Owner Author

lon91ong commented Feb 24, 2021

Xetex编译错误

Missing glyphs! Missing character: There is no * in font *

字体中缺少部分字符所致,修正方法:在文档导言处插入\setmainfont{Times New Roman}或者\setmainfont{SimSun}都行

pdflatex编译找不到字体错误

pdflatex.exe (file *): Font * at * not found 参考

MikTeX环境下解决办法: initexmf --admin --mkmaps
TinyTeX/TexLive环境下: 进入TinyTeX\bin\win32目录,把updmap开头的三个程序挨个双击执行一遍

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

1 participant