曾经在Windows+TexLive上可以正常生成pdf的tex文件,后续在另外机器的Windows+TexLive下面出现了错误。
tex文件:
/documentclass[11pt,a4paper]{article}/usepackage[left=3cm, right=2cm, top=2.5cm, bottom=2.5cm]{geometry}/usepackage{leftidx}/usepackage{CJKutf8}/begin{CJK}{UTF8}{song} /begin{document} some content here. 具体内容 /end{CJK}/end{document}生成pdf时的错误:
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/W32TeX) (PReloaded format=pdflatex) restricted /write18 enabled.entering extended mode(./δ����-5.texLaTeX2e <2016/03/31> patch level 3Babel <3.9r> and hyphenation patterns for 83 language(s) loaded.(d:/texlive/texmf-dist/tex/latex/base/article.clsDocument Class: article 2014/09/29 v1.4h Standard LaTeX document class(d:/texlive/texmf-dist/tex/latex/base/size11.clo))(d:/texlive/texmf-dist/tex/latex/geometry/geometry.sty(d:/texlive/texmf-dist/tex/latex/graphics/keyval.sty)(d:/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty)(d:/texlive/texmf-dist/tex/generic/oberdiek/ifvtex.sty)(d:/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty))(d:/texlive/texmf-dist/tex/latex/leftidx/leftidx.sty)(d:/texlive/texmf-dist/tex/latex/cjk/texinput/CJKutf8.sty(d:/texlive/texmf-dist/tex/latex/base/inputenc.sty(d:/texlive/texmf-dist/tex/latex/base/utf8.def(d:/texlive/texmf-dist/tex/latex/base/t1enc.dfu)(d:/texlive/texmf-dist/tex/latex/base/ot1enc.dfu)(d:/texlive/texmf-dist/tex/latex/base/omsenc.dfu)))(d:/texlive/texmf-dist/tex/latex/cjk/texinput/CJK.sty(d:/texlive/texmf-dist/tex/latex/cjk/texinput/mule/MULEenc.sty)(d:/texlive/texmf-dist/tex/latex/cjk/texinput/CJK.enc))(d:/texlive/texmf-dist/tex/latex/base/fontenc.sty))(d:/texlive/texmf-dist/tex/latex/cjk/texinput/utf8/UTF8.bdg)(d:/texlive/texmf-dist/tex/latex/cjk/texinput/utf8/UTF8.enc)(d:/texlive/texmf-dist/tex/latex/cjk/texinput/utf8/UTF8.chr)No file δ����-5.aux.*geometry* driver: auto-detecting*geometry* detected driver: pdftex(d:/texlive/texmf-dist/tex/latex/cjk/texinput/utf8/c70song.fd) [1{d:/texlive/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] (./δ����-5.aux)name = cyberb5b, rootname = cyberb5b, pointsize = mktexmf: empty or non-existent rootfile!Cannot find font cyberb5b in map file(s).kpathsea: Running mktexmf cyberb5b.mfThe command name is D:/texlive/bin/win32/mktexmfCannot find cyberb5b.mf .I try ps2pk --> gsftopk --> ttf2pk --> hbf2gf.ps2pk cannot be used.I try gsftopk.gsftopk.exe cyberb5b 657gsftopk cannot be used.Next I try ttf2pk.ttf2pk.exe -q cyberb5b 657ttf2pk failed.Finally I try hbf2gf.hbf2gf.exe -q -p cyberb5b 657All trials failed. )!pdfTeX error: pdflatex.exe (file cyberb5b): Font cyberb5b at 657 not found ==> Fatal error occurred, no output PDF file produced!kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+57/600 --dpi 657 cyberb5bThe command name is D:/texlive/bin/win32/mktexpkkpathsea: Appending font creation commands to missfont.log.代码可以改成如下:
%/documentclass[11pt,a4paper]{article}/documentclass[11pt,a4paper,UTF8]{ctexart}/usepackage[left=3cm, right=2cm, top=2.5cm, bottom=2.5cm]{geometry}/usepackage{leftidx}%/usepackage{CJKutf8}%/begin{CJK}{UTF8}{song} /begin{document} some content here. 具体内容 %/end{CJK}/end{document}新闻热点
疑难解答