TeXstudio下使用IEEEtran模板的问题
使用环境:Win10 64位; TeXstudio; TeX Live 2016
问题背景:这是我第一次使用TeXstudio写学术论文,本着磨刀不误砍柴工的精神,先用article类型的文档练习了一下基本文档结构、公式、图片、表格、目录、交叉引用等功能是好使的。然后决定套用一下最新的IEEEtran模板,却遇到了不得不停下来的错误。
那么就有两种可能
- IEEEtran.cls 出现错误
- TeXstudio编辑的正文xxx.tex出现错误
鉴于本文的水平有限,姑且认为IEEEtran.cls是没问题的。然后就写了简单的.tex文件
\documentclass[10pt,journal,draftcls,a4paper,onecolumn]{IEEEtran}
\usepackage[utf8x]{inputenc}
\usepackage{cite}
\usepackage[dvips]{graphicx}
\graphicspath{{./eps/}}
\DeclareGraphicsExtensions{.eps}
\usepackage{amsmath}
\usepackage{algorithmic}
\usepackage{array}
\usepackage[caption=false,font=footnotesize]{subfig}
\usepackage{url}
\hyphenation{op-tical net-works semi-conduc-tor}
\title{My Title}
\author{liusan}
\begin{document}
\maketitle
\end{document}
在没加入 \maketitle 命令之前,编译是没有问题的,加入之后就出现了编译错误
Process started: xelatex.exe -synctex=1 -interaction=nonstopmode "myPaper".tex
Sorry, but miktex-makemf did not succeed for the following reason: The ptmr8r source file could not be found. The log file hopefully contains the information to get MiKTeX going again: C:/Users/liuju/AppData/Local/MiKTeX/2.9/miktex/log/miktex-makemf.log You may want to visit the MiKTeX project page, if you need help.
Sorry, but miktex-makepk did not succeed for the following reason: PK font ptmr8r could not be created. The log file hopefully contains the information to get MiKTeX going again: C:/Users/liuju/AppData/Local/MiKTeX/2.9/miktex/log/miktex-makepk.log You may want to visit the MiKTeX project page, if you need help.
xdvipdfmx:warning: Couldn't open font map file "dvipdfm.map". stdin -> myPaper.pdf [1 xdvipdfmx:warning: Could not locate a virtual/physical font for TFM "ptmr8r". xdvipdfmx:warning: >> There are no valid font mapping entry for this font. xdvipdfmx:warning: >> Font file name "ptmr8r" was assumed but failed to locate that font. xdvipdfmx:fatal: Cannot proceed without .vf or "physical" font for PDF output... Output file removed.
Process exited normally
出现了一个这样的问题:
The ptmr8r source file could not be found.
百度上搜索这个问题后还是很迷惑,决定自己去折腾。
尝试将IEEEtran文档类型改为article,可以正常编译和预览,那么xxx.texzhengwe题 。因此可以认定是因为使用了IEEEtran模板的问题,即使用IEEEtran.cls的时候出现了问题。