Skip to content

texstudio 编译错误 #21

Closed
Closed
@yuzhangbit

Description

@yuzhangbit
Contributor

我试着用texstudio 编译demo 模板, 但是出现以下错误

LaTeX error: "kernel/key-unknown" The key 'ctex/chapter/fixskip' is unknown and is being ignored. For immediate help type H <return>. }  
LaTeX error: "kernel/key-unknown" The key 'ctex/section/fixskip' is unknown and is being ignored. For immediate help type H <return>. }  
LaTeX error: "kernel/key-unknown" The key 'ctex/subsection/fixskip' is unknown and is being ignored. For immediate help type H <return>. }  
LaTeX error: "kernel/key-unknown" The key 'ctex/subsubsection/fixskip' is unknown and is being ignored. For immediate help type H <return>. }  
fontspec error: "font-not-found" The font "Times New Roman" cannot be found. For immediate help type H <return>. \setmainfont{Times New Roman}  
Font EU1/TimesNewRoman(0)/m/n/12.045="Times New Roman:mapping=tex-text;" at 12.045pt not loadable: Metric (TFM) file or installed font not found. \setmainfont{Times New Roman}  
fontspec error: "font-not-found" The font "Arial" cannot be found. For immediate help type H <return>. \setsansfont{Arial}  
fontspec error: "font-not-found" The font "Courier New" cannot be found. For immediate help type H <return>. \setmonofont{Courier New}  

os 版本:ubuntu 16.04
texlive版本: This is XeTeX, Version 3.14159265-2.6-0.99992 (TeX Live 2015/Debian) (preloaded format=xelatex)

字体错误没有全部列出来~

Activity

qiuzhu

qiuzhu commented on Sep 13, 2017

@qiuzhu
Member
  • 你用的环境是texlive 2015,但是该模板的ctex宏包更新后引入了新的语法ctexset语法,所以需要更新ctex宏包,或者更新texlive 到2017
  • 字体问题,由于微软的字体不是免费的,所以Ubuntu系统没有收录,需要安装微软字体,具体可以百度:
    下面给出方法可以采纳:

1.sudo apt-get install ttf-mscorefonts-installer

然后会提示微软的用户协议向导,单击“确定OK”继续

在安装字体后,我们需要使用命令来更新字体缓存:
2.sudo fc-cache -f -v

还有宋体,Ubuntu下没有,需要复制Windows下的字体

yuzhangbit

yuzhangbit commented on Sep 13, 2017

@yuzhangbit
ContributorAuthor

@qiuzhu 谢谢回复啦~正在更新texlive , 稍后反馈到这里~

yuzhangbit

yuzhangbit commented on Sep 14, 2017

@yuzhangbit
ContributorAuthor

更新到texlive2017以后就没用问题了,在texstudio 可以编译~ 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @yuzhangbit@qiuzhu

        Issue actions

          texstudio 编译错误 · Issue #21 · BIT-thesis/LaTeX-template