在安装了texlive 2011之后,我测试了一下,出现这样的问题: I can't find file `ptmr7t'
用google搜索了之后,发现出现问题的还真不少,最简单的一个tex文件也能引出同样的错误:
\documentclass{article} \usepackage{times} \title{Brief Article} \author{The Author} \begin{document} \maketitle This is a test! \end{document}
基本的判断是缺少一种字体,也就是texlive的某一个包没有安装,但到底是哪一个包呢?却没有找到答案。
搜索我发现了这样一类包: texlive-collection-* ,我们来看他们是什么:
名称 :texlive-collection-basic 构架 :noarch 版本 :2011 发布 :5.20120115_r25109.svn20730 大小 :0.0 仓库 :installed 来自仓库 :texlive 简介 : Essential programs and files 网址 :http://tug.org/texlive/ 协议 : Artistic 2.0 and GPLv2 and GPLv2+ and LGPLv2+ and LPPL and MIT and Public Domain and UCD and Utopia 描述: These files are regarded as basic for any TeX system, covering : plain TeX macros, Computer Modern fonts, and configuration for : common drivers; no LaTeX.
名称 :texlive-collection-latex 构架 :noarch 版本 :2011 发布 :5.20120115_r25109.svn25030 大小 :0.0 仓库 :installed 来自仓库 :texlive 简介 : Basic LaTeX packages 网址 :http://tug.org/texlive/ 协议 : Artistic 2.0 and GPLv2 and GPLv2+ and LGPLv2+ and LPPL and MIT and Public Domain and UCD and Utopia 描述: These packages are mandated by the core LaTeX team, or at least : very strongly recommended.
texlive-collection-pictures texlive-collection-bibtexextra texlive-collection-basic texlive-collection-mathextra texlive-collection-latexextra texlive-collection-latexrecommended texlive-collection-xetex texlive-collection-publishers texlive-collection-latex texlive-collection-fontsrecommended
OK,问题顺利解决。
当然,我并不确切的知道,是哪一个包解决了问题。不过这些包当然下来,下载量不过一百多M,安装量不过三百多M,没关系。