Ubuntu14.04系统下VSCode+Latex遇到问题及相应解决方法,ubuntu14.04vscode
分享于 点击 16083 次 点评:184
Ubuntu14.04系统下VSCode+Latex遇到问题及相应解决方法,ubuntu14.04vscode
Ubuntu14.04系统下VSCode+Latex遇到问题及相应解决方法
问题1:
LaTeX Error: File `fontspec.sty' not found.
解决方法
sudo apt-get install texlive-latex-extra texlive-latex-recommended texlive-science
问题2
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
!
! The font "SimSun" cannot be found.
!
! See the fontspec documentation for further information.
!
! For immediate help type H <return>.
!...............................................
解决方法
问题在于Texlive里面找不到Simsun这种字体.
具体解决方法如下:
a.将windows系统下的字体库拷贝出来,位置在:C:/windows/Fonts
b.接下来新建一个目录:
sudo mkdir /usr/share/fonts/winfonts
c.将windows系统下的字体拷贝到winfonts目录下:
sudo cp path/to/windows/Fonts/* /usr/share/fonts/winfonts
d.修改字体权限:
sudo chmod 644 /usr/share/fonts/winfonts/*
e.刷新缓存字体:
sudo mkfontscale
sudo mkfontdir
sudo fc-cache -fsv
f.查看系统安装的中文字体:
fc-list :lang=zh | sort
参考文章
1.http://blog.csdn.net/qq_20480611/article/details/78117536
2.http://blog.csdn.net/ustc_dylan/article/details/6196129
3.http://forum.ubuntu.org.cn/viewtopic.php?p=2741115
4.http://blog.csdn.net/qq_34369618/article/details/77568184
相关文章
- 暂无相关文章
用户点评