forum icon indicating copy to clipboard operation
forum copied to clipboard

The font "SimHei" cannot be found.无法用伪粗体规避

Open gingerkitti opened this issue 1 year ago • 7 comments

检查

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

编译环境

  • 操作系统

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

    • [ ] TeX Live
    • [x] MiKTeX 4.5
    • [ ] CTeX 套装 2.9.2.164
    • [ ] 更早版本的 CTeX 套装

描述问题

编译报错SimHei not found, 我尝试用\setCJKmainfont[AutoFakeBold,AutoFakeSlant]{SimSun}来规避这个问题。但是仍然报错是SimHei not found

我注意到TeXworks console output有

Sorry, but miktex-makemf did not succeed.

尝试过updmap,但是仍然没有用

我的MikTex安装方式“user”(仅为自己安装),由于在公司电脑,权限很低,无法自行安装软件以及连接外网,因此也不能下载字体

这是我的编译设置:菜单 -> Edit -> TeXworks Preferences -> Processing tools -> XeLaTeX+MakeIndex+BibTex -> Tool Configuration设置为

Name:		XeLaTeX+MakeIndex+BibTeX
Program:	texify.exe
Arguments:	--pdf
		--engine=xetex
		--synctex=1
		--clean
		$fullname

最小工作示例(MWE)

\documentclass{ctexart}

\setCJKmainfont[
AutoFakeBold,AutoFakeSlant
]{SimSun}

\begin{document}

\textbf{你好}

\end{document}

我还做了这些尝试

  • TeX.SX: https://tex.stackexchange.com/questions/411213/miktex-makemf-did-not-succeed-for-the-following-reason

附件

用 XeLaTeX+MakeIndex+BibTex 编译后,日志文件输出:
This is XeTeX, Version 3.141592653-2.6-0.999995 (MiKTeX 23.10) (preloaded format=xelatex.fmt)
 restricted \write18 enabled.
entering extended mode
(C:/Users/Test Virtual Machine/Desktop/untitled-1.tex
LaTeX2e <2023-06-01> patch level 1
L3 programming layer <2023-08-29>

(C:\Users\Test Virtual Machine\AppData\Local\Programs\MiKTeX\tex/latex/ctex\cte
xart.cls
(C:\Users\Test Virtual Machine\AppData\Local\Programs\MiKTeX\tex/latex/ctex/con
fig\ctexbackend.cfg)
(C:\Users\Test Virtual Machine\AppData\Local\Programs\MiKTeX\tex/latex/l3kernel
\expl3.sty
(C:\Users\Test Virtual Machine\AppData\Local\Programs\MiKTeX\tex/latex/l3backen
d\l3backend-xetex.def))
Document Class: ctexart 2022/07/14 v2.5.10 Chinese adapter for class article (C
TEX)

(C:\Users\Test Virtual Machine\AppData\Local\Programs\MiKTeX\tex/latex/ctex\cte
xhook.sty)
(C:\Users\Test Virtual Machine\AppData\Local\Programs\MiKTeX\tex/latex/ctex\cte
xpatch.sty)
(C:\Users\Test Virtual Machine\AppData\Local\Programs\MiKTeX\tex/latex/base\fix
-cm.sty
(C:\Users\Test Virtual Machine\AppData\Local\Programs\MiKTeX\tex/latex/base\ts1
enc.def))
(C:\Users\Test Virtual Machine\AppData\Local\Programs\MiKTeX\tex/latex/ctex/con
fig\ctexopts.cfg)
(C:\Users\Test Virtual Machine\AppData\Local\Programs\MiKTeX\tex/latex/base\art
icle.cls
Document Class: article 2023/05/17 v1.4n Standard LaTeX document class

(C:\Users\Test Virtual Machine\AppData\Local\Programs\MiKTeX\tex/latex/base\siz
e10.clo))
(C:\Users\Test Virtual Machine\AppData\Local\Programs\MiKTeX\tex/latex/ctex/eng
ine\ctex-engine-xetex.def
(C:\Users\Test Virtual Machine\AppData\Local\Programs\MiKTeX\tex/xelatex/xecjk\
xeCJK.sty
(C:\Users\Test Virtual Machine\AppData\Local\Programs\MiKTeX\tex/latex/l3packag
es/xtemplate\xtemplate.sty)
(C:\Users\Test Virtual Machine\AppData\Local\Programs\MiKTeX\tex/latex/fontspec
\fontspec.sty
(C:\Users\Test Virtual Machine\AppData\Local\Programs\MiKTeX\tex/latex/l3packag
es/xparse\xparse.sty)
(C:\Users\Test Virtual Machine\AppData\Local\Programs\MiKTeX\tex/latex/fontspec
\fontspec-xetex.sty
(C:\Users\Test Virtual Machine\AppData\Local\Programs\MiKTeX\tex/latex/base\fon
tenc.sty)
(C:\Users\Test Virtual Machine\AppData\Local\Programs\MiKTeX\tex/latex/fontspec
\fontspec.cfg)))
(C:\Users\Test Virtual Machine\AppData\Local\Programs\MiKTeX\tex/xelatex/xecjk\
xeCJK.cfg)))
(C:\Users\Test Virtual Machine\AppData\Local\Programs\MiKTeX\tex/latex/zhnumber
\zhnumber.sty
(C:\Users\Test Virtual Machine\AppData\Local\Programs\MiKTeX\tex/latex/zhnumber
\zhnumber-utf8.cfg))
(C:\Users\Test Virtual Machine\AppData\Local\Programs\MiKTeX\tex/latex/ctex/sch
eme\ctex-scheme-chinese-article.def
(C:\Users\Test Virtual Machine\AppData\Local\Programs\MiKTeX\tex/latex/ctex/con
fig\ctex-name-utf8.cfg))
(C:\Users\Test Virtual Machine\AppData\Local\Programs\MiKTeX\tex/latex/ctex\cte
x-c5size.clo)
(C:\Users\Test Virtual Machine\AppData\Local\Programs\MiKTeX\tex/latex/ctex/fon
tset\ctex-fontset-windows.defRunning miktex-makemf.exe...


Sorry, but miktex-makemf did not succeed.



The log file hopefully contains the information to get MiKTeX going again:



  C:\Users\Test Virtual Machine\AppData\Local\MiKTeX\miktex\log\miktex-makemf.log

Running miktex-hbf2gf.exe...
Couldn't open `OT:script=hani;language=dfl.cfg'



hbf2gf (CJK ver. 4.8.4)




Sorry, but miktex-maketfm did not succeed.

The log file hopefully contains the information to get MiKTeX going again:

  C:\Users\Test Virtual Machine\AppData\Local\MiKTeX\miktex\log\miktex-maketfm.log
Running miktex-makemf.exe...


Sorry, but miktex-makemf did not succeed.



The log file hopefully contains the information to get MiKTeX going again:



  C:\Users\Test Virtual Machine\AppData\Local\MiKTeX\miktex\log\miktex-makemf.log

Running miktex-hbf2gf.exe...
Couldn't open `OT:script=hani;language=dfl.cfg'



hbf2gf (CJK ver. 4.8.4)




Sorry, but miktex-maketfm did not succeed.

The log file hopefully contains the information to get MiKTeX going again:

  C:\Users\Test Virtual Machine\AppData\Local\MiKTeX\miktex\log\miktex-maketfm.log
Running miktex-makemf.exe...


Sorry, but miktex-makemf did not succeed.



The log file hopefully contains the information to get MiKTeX going again:



  C:\Users\Test Virtual Machine\AppData\Local\MiKTeX\miktex\log\miktex-makemf.log

Running miktex-hbf2gf.exe...
Couldn't open `OT:script=hani;language=dfl.cfg'



hbf2gf (CJK ver. 4.8.4)




Sorry, but miktex-maketfm did not succeed.

The log file hopefully contains the information to get MiKTeX going again:

  C:\Users\Test Virtual Machine\AppData\Local\MiKTeX\miktex\log\miktex-maketfm.log
Running miktex-makemf.exe...


Sorry, but miktex-makemf did not succeed.



The log file hopefully contains the information to get MiKTeX going again:



  C:\Users\Test Virtual Machine\AppData\Local\MiKTeX\miktex\log\miktex-makemf.log

Running miktex-hbf2gf.exe...
Couldn't open `OT:script=hani;language=dfl.cfg'



hbf2gf (CJK ver. 4.8.4)




Sorry, but miktex-maketfm did not succeed.

The log file hopefully contains the information to get MiKTeX going again:

  C:\Users\Test Virtual Machine\AppData\Local\MiKTeX\miktex\log\miktex-maketfm.log
Running miktex-makemf.exe...


Sorry, but miktex-makemf did not succeed.



The log file hopefully contains the information to get MiKTeX going again:



  C:\Users\Test Virtual Machine\AppData\Local\MiKTeX\miktex\log\miktex-makemf.log

Running miktex-hbf2gf.exe...
Couldn't open `OT:script=hani;language=dfl.cfg'



hbf2gf (CJK ver. 4.8.4)




Sorry, but miktex-maketfm did not succeed.

The log file hopefully contains the information to get MiKTeX going again:

  C:\Users\Test Virtual Machine\AppData\Local\MiKTeX\miktex\log\miktex-maketfm.log


! Package fontspec Error: The font "SimHei" cannot be found.

For immediate help type H <return>.
 ...                                              
                                                  
l.101   }
         
? 
这是 C:\Users\Test Virtual Machine\AppData\Local\MiKTeX\miktex\log\miktex-makemf.log
2023-10-14 04:43:18,510-0700 INFO  miktex-makemf - this process (2916) started by miktex-maketfm in directory C:\Users\TESTVI~1\AppData\Local\Temp\mik69346 with command line: miktex-makemf.exe --miktex-enable-installer --miktex-disable-maintenance --miktex-disable-diagnose --verbose OT:script=hani;language=dflt;
2023-10-14 04:43:18,712-0700 INFO  miktex-makemf - running on Windows 10.0.19044
2023-10-14 04:43:18,872-0700 FATAL miktex-makemf - The OT:script=hani;language=dflt; source file could not be found.
2023-10-14 04:43:18,886-0700 FATAL miktex-makemf - The OT:script=hani;language=dflt; source file could not be found.
2023-10-14 04:43:18,886-0700 FATAL miktex-makemf - Info: 
2023-10-14 04:43:18,886-0700 FATAL miktex-makemf - Source: 
2023-10-14 04:43:18,886-0700 FATAL miktex-makemf - Line: 0
2023-10-14 04:43:19,151-0700 INFO  miktex-makemf - this process (2916) finishes with exit code 1
2023-10-14 04:44:39,511-0700 INFO  miktex-makemf - this process (8140) started by miktex-maketfm in directory C:\Users\TESTVI~1\AppData\Local\Temp\mik79909 with command line: miktex-makemf.exe --miktex-enable-installer --miktex-disable-maintenance --miktex-disable-diagnose --verbose OT:script=hani;language=dflt;
2023-10-14 04:44:39,511-0700 INFO  miktex-makemf - running on Windows 10.0.19044
2023-10-14 04:44:39,527-0700 FATAL miktex-makemf - The OT:script=hani;language=dflt; source file could not be found.
2023-10-14 04:44:39,949-0700 FATAL miktex-makemf - The OT:script=hani;language=dflt; source file could not be found.
2023-10-14 04:44:39,949-0700 FATAL miktex-makemf - Info: 
2023-10-14 04:44:39,949-0700 FATAL miktex-makemf - Source: 
2023-10-14 04:44:39,949-0700 FATAL miktex-makemf - Line: 0
2023-10-14 04:44:40,386-0700 INFO  miktex-makemf - this process (8140) finishes with exit code 1
2023-10-14 04:45:20,304-0700 INFO  miktex-makemf - this process (9440) started by miktex-maketfm in directory C:\Users\TESTVI~1\AppData\Local\Temp\mik27784 with command line: miktex-makemf.exe --miktex-enable-installer --miktex-disable-maintenance --miktex-disable-diagnose --verbose OT:script=hani;language=dflt;
2023-10-14 04:45:20,304-0700 INFO  miktex-makemf - running on Windows 10.0.19044
2023-10-14 04:45:20,367-0700 FATAL miktex-makemf - The OT:script=hani;language=dflt; source file could not be found.
2023-10-14 04:45:20,367-0700 FATAL miktex-makemf - The OT:script=hani;language=dflt; source file could not be found.
2023-10-14 04:45:20,367-0700 FATAL miktex-makemf - Info: 
2023-10-14 04:45:20,383-0700 FATAL miktex-makemf - Source: 
2023-10-14 04:45:20,383-0700 FATAL miktex-makemf - Line: 0
2023-10-14 04:45:20,665-0700 INFO  miktex-makemf - this process (9440) finishes with exit code 1
2023-10-14 04:45:50,336-0700 INFO  miktex-makemf - this process (9700) started by miktex-maketfm in directory C:\Users\TESTVI~1\AppData\Local\Temp\mik42582 with command line: miktex-makemf.exe --miktex-enable-installer --miktex-disable-maintenance --miktex-disable-diagnose --verbose OT:script=hani;language=dflt;
2023-10-14 04:45:50,336-0700 INFO  miktex-makemf - running on Windows 10.0.19044
2023-10-14 04:45:50,555-0700 FATAL miktex-makemf - The OT:script=hani;language=dflt; source file could not be found.
2023-10-14 04:45:50,555-0700 FATAL miktex-makemf - The OT:script=hani;language=dflt; source file could not be found.
2023-10-14 04:45:50,555-0700 FATAL miktex-makemf - Info: 
2023-10-14 04:45:50,555-0700 FATAL miktex-makemf - Source: 
2023-10-14 04:45:50,555-0700 FATAL miktex-makemf - Line: 0
2023-10-14 04:45:50,888-0700 INFO  miktex-makemf - this process (9700) finishes with exit code 1
2023-10-14 04:46:33,339-0700 INFO  miktex-makemf - this process (10088) started by miktex-maketfm in directory C:\Users\TESTVI~1\AppData\Local\Temp\mik757 with command line: miktex-makemf.exe --miktex-enable-installer --miktex-disable-maintenance --miktex-disable-diagnose --verbose OT:script=hani;language=dflt;
2023-10-14 04:46:33,339-0700 INFO  miktex-makemf - running on Windows 10.0.19044
2023-10-14 04:46:33,933-0700 FATAL miktex-makemf - The OT:script=hani;language=dflt; source file could not be found.
2023-10-14 04:46:33,933-0700 FATAL miktex-makemf - The OT:script=hani;language=dflt; source file could not be found.
2023-10-14 04:46:33,933-0700 FATAL miktex-makemf - Info: 
2023-10-14 04:46:33,933-0700 FATAL miktex-makemf - Source: 
2023-10-14 04:46:33,933-0700 FATAL miktex-makemf - Line: 0
2023-10-14 04:46:33,999-0700 INFO  miktex-makemf - this process (10088) finishes with exit code 1

gingerkitti avatar Oct 14 '23 12:10 gingerkitti