美文网首页
MacTeX 安装缺失 pcrr8t 、helvetica8、p

MacTeX 安装缺失 pcrr8t 、helvetica8、p

作者: 千羽之城88 | 来源:发表于2018-09-08 15:13 被阅读69次

2018-09-08

电脑上的 MacTeX 是精简版安装,用 Texworks 的模板新建 Beamer 的时候,默认设置居然编译通不过。

\package[T1]{fontenc}  % need helvetica font be installed in system if not will get an error

我们先看看系统是否安装了这个字体:

$: tlmgr info helvetic
% if font has installed will display as follow:
package:     helvetic
category:    Package
shortdesc:   URW "Base 35" font pack for LaTeX
longdesc:    A set of fonts for use as "drop-in" replacements for Adobe's basic set, comprising: Century Schoolbook (substituting for Adobe's New Century Schoolbook); Dingbats (substituting for Adobe's Zapf Dingbats); Nimbus Mono L (substituting for Abobe's Courier); Nimbus Roman No9 L (substituting for Adobe's Times); Nimbus Sans L (substituting for Adobe's Helvetica); Standard Symbols L (substituting for Adobe's Symbol); URW Bookman; URW Chancery L Medium Italic (substituting for Adobe's Zapf Chancery); URW Gothic L Book (substituting for Adobe's Avant Garde); and URW Palladio L (substituting for Adobe's Palatino).
installed:   Yes
revision:    31835
sizes:       run: 2377k
relocatable: No
cat-date:    2016-06-24 19:18:15 +0200
cat-license: gpl
cat-topics:  font font-type1 font-collection
cat-related: tex-gyre
collection:  collection-fontsrecommended

现在来解决没有安装字体的问题,以下命令在 Terminal 里面操作:

% 1. install necessary fonts
% 2. refresh texlive database
sudo  tlmgr install collection-fontsrecommended 
sudo texhash                                    
% install a font independently but not works well
sudo tlmgr install helvetica 

另外为了保险起见,在配置文件 texmf.cnf 添加一个变量 VARTEXFONTS:

% usr/local/texlive/2018basic/texmf.cnf
VARTEXFONTS = /usr/local/texlive/2018basic/texmf-dist/fonts

相关文章

网友评论

      本文标题:MacTeX 安装缺失 pcrr8t 、helvetica8、p

      本文链接:https://www.haomeiwen.com/subject/tdakgftx.html