Open granulite opened 9 years ago
搞定了,似乎是我自己的问题,设置好了字体调用就没问题了。mactex 2015有点问题。
mac 上把最好把字体都关联好,mactex 中应该有些opentype 的字体的,添加软链到你的用户字体目录里就行了,比如你的用户字体目录是 ~/Library/Fonts ,那么就在该目录下,添加软链: $ ln -s “your texlive/mactex dir”/texmf-dist/fonts/opentype ~/Library/Fonts/opentype 其余win 上的字体可能需要手动添加到字体目录下了。
把这个下下来,放到 ~/Library/Fonts
里面就可以了。
~/Library/Fonts
有用,赞!
Latexmk: This is Latexmk, John Collins, 5 February 2015, version: 4.43a. Latexmk: applying rule 'pdflatex'... Rule 'pdflatex': Rules & subrules not known to be previously run: pdflatex Rule 'pdflatex': The following rules & subrules became out-of-date:
'pdflatex'
Run number 1 of rule 'pdflatex'
Running 'xelatex -synctex=1 -recorder "main.tex"'
This is XeTeX, Version 3.14159265-2.6-0.99992 (TeX Live 2015) (preloaded format=xelatex) restricted \write18 enabled. entering extended mode (./main.tex LaTeX2e <2015/01/01> Babel <3.9l> and hyphenation patterns for 79 languages loaded. (./zjuthesis.cls Document Class: zjuthesis 2015/08/23 zjuthesis document class. Created: 2014.09 .15 by Sky and Hamburger, Last Modified: 2014.09.12 by Hamburger (/usr/local/texlive/2015/texmf-dist/tex/latex/ctex/ctexbook.cls (/usr/local/texlive/2015/texmf-dist/tex/latex/l3kernel/expl3.sty (/usr/local/texlive/2015/texmf-dist/tex/latex/l3kernel/expl3-code.tex) (/usr/local/texlive/2015/texmf-dist/tex/latex/l3kernel/l3unicode-data.def) (/usr/local/texlive/2015/texmf-dist/tex/latex/l3kernel/l3xdvipdfmx.def)) Document Class: ctexbook 2015/07/01 v2.2 Chinese adapter for class book (CTEX) (/usr/local/texlive/2015/texmf-dist/tex/latex/l3packages/xparse/xparse.sty) (/usr/local/texlive/2015/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty) (/usr/local/texlive/2015/texmf-dist/tex/latex/ctex/ctexhook.sty) (/usr/local/texlive/2015/texmf-dist/tex/latex/ctex/ctexpatch.sty) (/usr/local/texlive/2015/texmf-dist/tex/latex/base/fix-cm.sty (/usr/local/texlive/2015/texmf-dist/tex/latex/base/ts1enc.def)) (/usr/local/texlive/2015/texmf-dist/tex/latex/ms/everysel.sty) (/usr/local/texlive/2015/texmf-dist/tex/latex/ctex/config/ctexopts.cfg)
(/usr/local/texlive/2015/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty)
(/usr/local/texlive/2015/texmf-dist/tex/latex/base/book.cls Document Class: book 2014/09/29 v1.4h Standard LaTeX document class (/usr/local/texlive/2015/texmf-dist/tex/latex/base/bk12.clo)) (/usr/local/texlive/2015/texmf-dist/tex/latex/ctex/engine/ctex-engine-xetex.def (/usr/local/texlive/2015/texmf-dist/tex/xelatex/xecjk/xeCJK.sty (/usr/local/texlive/2015/texmf-dist/tex/latex/l3packages/xtemplate/xtemplate.st y) (/usr/local/texlive/2015/texmf-dist/tex/latex/fontspec/fontspec.sty (/usr/local/texlive/2015/texmf-dist/tex/latex/fontspec/fontspec-patches.sty) (/usr/local/texlive/2015/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty (/usr/local/texlive/2015/texmf-dist/tex/latex/base/fontenc.sty (/usr/local/texlive/2015/texmf-dist/tex/latex/euenc/eu1enc.def) (/usr/local/texlive/2015/texmf-dist/tex/latex/euenc/eu1lmr.fd)) (/usr/local/texlive/2015/texmf-dist/tex/xelatex/xunicode/xunicode.sty (/usr/local/texlive/2015/texmf-dist/tex/latex/tipa/t3enc.def (/usr/local/texlive/2015/texmf-dist/tex/latex/euenc/eu1lmss.fd)) (/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/graphicx.sty (/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/keyval.sty) (/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/graphics.sty (/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/trig.sty) (/usr/local/texlive/2015/texmf-dist/tex/latex/latexconfig/graphics.cfg) (/usr/local/texlive/2015/texmf-dist/tex/xelatex/xetex-def/xetex.def)))) (/usr/local/texlive/2015/texmf-dist/tex/latex/fontspec/fontspec.cfg))) (/usr/local/texlive/2015/texmf-dist/tex/xelatex/xecjk/xunicode-addon.sty) (/usr/local/texlive/2015/texmf-dist/tex/xelatex/xunicode/xunicode.sty * Reloading Xunicode for encoding 'EU1' * ) (/usr/local/texlive/2015/texmf-dist/tex/xelatex/xecjk/xunicode-extra.def) (/usr/local/texlive/2015/texmf-dist/tex/xelatex/xecjk/xeCJK.cfg)) (/usr/local/texlive/2015/texmf-dist/tex/xelatex/xecjk/xeCJKfntef.sty (/usr/local/texlive/2015/texmf-dist/tex/generic/ulem/ulem.sty) (/usr/local/texlive/2015/texmf-dist/tex/latex/environ/environ.sty (/usr/local/texlive/2015/texmf-dist/tex/latex/trimspaces/trimspaces.sty)) (/usr/local/texlive/2015/texmf-dist/tex/latex/cjk/texinput/CJKfntef.sty))) (/usr/local/texlive/2015/texmf-dist/tex/latex/zhnumber/zhnumber.sty (/usr/local/texlive/2015/texmf-dist/tex/latex/zhnumber/zhnumber-utf8.cfg)) (/usr/local/texlive/2015/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese-b ook.def (/usr/local/texlive/2015/texmf-dist/tex/latex/ctex/config/ctex-name-utf8.cfg)) (/usr/local/texlive/2015/texmf-dist/tex/latex/ctex/ctex-cs4size.clo) (/usr/local/texlive/2015/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-mac.def
kpathsea: Running mktextfm STKaiti-TC-Regular/OT /usr/local/texlive/2015/texmf-dist/web2c/mktexnam: Could not map source abbreviation O for OT. /usr/local/texlive/2015/texmf-dist/web2c/mktexnam: Need to update /usr/local/texlive/2015/texmf-dist/fonts/map/fontname/special.map? mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input OT This is METAFONT, Version 2.7182818 (TeX Live 2015) (preloaded base=mf)
kpathsea: Running mktexmf OT ! I can't find file `OT'. <*> \mode:=ljfour; mag:=1; nonstopmode; input OT
Please type another input file name ! Emergency stop. <*> \mode:=ljfour; mag:=1; nonstopmode; input OT
Transcript written on mfput.log. grep: OT.log: No such file or directory mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input OT' failed to make OT.tfm. kpathsea: Appending font creation commands to missfont.log.
kpathsea: Running mktextfm STKaiti-TC-Regular/B/OT /usr/local/texlive/2015/texmf-dist/web2c/mktexnam: Could not map source abbreviation O for OT. /usr/local/texlive/2015/texmf-dist/web2c/mktexnam: Need to update /usr/local/texlive/2015/texmf-dist/fonts/map/fontname/special.map? mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input OT This is METAFONT, Version 2.7182818 (TeX Live 2015) (preloaded base=mf)
kpathsea: Running mktexmf OT ! I can't find file `OT'. <*> \mode:=ljfour; mag:=1; nonstopmode; input OT
Please type another input file name ! Emergency stop. <*> \mode:=ljfour; mag:=1; nonstopmode; input OT
Transcript written on mfput.log. grep: OT.log: No such file or directory mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input OT' failed to make OT.tfm.
kpathsea: Running mktextfm STKaiti-TC-Regular/OT /usr/local/texlive/2015/texmf-dist/web2c/mktexnam: Could not map source abbreviation O for OT. /usr/local/texlive/2015/texmf-dist/web2c/mktexnam: Need to update /usr/local/texlive/2015/texmf-dist/fonts/map/fontname/special.map? mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input OT This is METAFONT, Version 2.7182818 (TeX Live 2015) (preloaded base=mf)
kpathsea: Running mktexmf OT ! I can't find file `OT'. <*> \mode:=ljfour; mag:=1; nonstopmode; input OT
Please type another input file name ! Emergency stop. <*> \mode:=ljfour; mag:=1; nonstopmode; input OT
Transcript written on mfput.log. grep: OT.log: No such file or directory mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input OT' failed to make OT.tfm.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! ! fontspec error: "font-not-found" ! ! The font "STKaiti-TC-Regular" cannot be found. ! ! See the fontspec documentation for further information. ! ! For immediate help type H.
!...............................................
l.43 }
?